• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 266
  • Last Modified:

Delphi 3D Engine Question

Hi all,

I recently downloaded TrueVistion3D Engine 6.5 but there's no documentation yet.

I need to know how to load a skybox using delphi.

I've searched their forum but there's not much for delphi and 6.5 version so I was wondering if someone here knew how to do this.

Thanks

ST3VO
0
ST3VO
Asked:
ST3VO
1 Solution
 
Steven-FernandezCommented:
Here's how it's done:

Private

 Atmos: TTVAtmosphere;

....

Then you just do this:

Atmos.SkyBox_SetTexture(
    TexFactory.LoadTexture('.\sky\front.jpg', 'SkyBoxFront', -1, -1, TV_COLORKEY_NO, false),
    TexFactory.LoadTexture('.\sky\back.jpg', 'SkyboxBack', -1, -1, TV_COLORKEY_NO, false),
    TexFactory.LoadTexture('.\sky\left.jpg', 'SkyboxLeft', -1, -1, TV_COLORKEY_NO, false),
    TexFactory.LoadTexture('.\sky\right.jpg', 'SkyboxRight', -1, -1, TV_COLORKEY_NO, false),
    TexFactory.LoadTexture('.\sky\top.jpg', 'SkyboxTop', -1, -1, TV_COLORKEY_NO, false),
    TexFactory.LoadTexture('.\sky\bottom.jpg', 'SkyboxBottom', -1, -1, TV_COLORKEY_NO, false));

    //Enable the Atmosphere
Atmos.SkyBox_Enable(True);

Don't forget to create it the object:

atmos := TTVAtmosphere.Create(self);

If you need more help just let me know.




0
 
ST3VOAuthor Commented:
Perfect!!! Thanks a million :o)

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now