Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Delphi 3D Engine Question

Posted on 2007-10-16
2
Medium Priority
?
250 Views
Last Modified: 2011-09-20
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
Comment
Question by:ST3VO
2 Comments
 
LVL 5

Accepted Solution

by:
Steven-Fernandez earned 2000 total points
ID: 20088900
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
 

Author Comment

by:ST3VO
ID: 20088933
Perfect!!! Thanks a million :o)

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month13 days, 1 hour left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question