Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Need Help With 3D Stuff

Author
Message
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 3rd Feb 2006 01:08
Ok im working on a world builder, and when I run this code, it appears that the file is loading ok since no message box comes up, but no model is showing up on the screen, and when not running in debug mode it freezes and it takes about 5 minutes for task launcher to close it.

Here is my code so far

Smithy
19
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 3rd Feb 2006 08:37 Edited at: 3rd Feb 2006 09:43
Hmmm, your code looks correct so far..
//edit: hmm, how do you exit the app?
I can't find the source where you set bBuilderLoop to FALSE (or even bAppLoop)...


Are you sure that the 3ds file is loading correctly?
Try to load a simple 3ds file with a simple app.
Then try to load your terrains with a simple app.
Maybe you have to convert to .x files...
(As you may know, 3ds doesn't work correct sometimes)

//Awards: Best DM at NeverwinterConventionIII (NWCon3)
//Sys: Pentium IV 3200E/Prescott;800Mhz FSB;HT;WinXPPro;ATIR9700PRO;1024MB RAM(2x512MB"DualChanneled";VC++7.net;Delphi6;ADSL512;
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 3rd Feb 2006 12:43
ahhh, where can I convert?
Can I open in blender and export as .x?
Smithy
19
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 6th Feb 2006 10:03 Edited at: 6th Feb 2006 10:04
I don't know, but I am sure its possible.
We use 3DSmax but they have no standard .x exporter
so we use one that is based upon the DirectX SDK exporter-plug-in-example.

But I am sure there is one for Blender too... somewhere.
Maybe you ask in the forum for 3d Models/Gfx.

//Awards: Best DM at NeverwinterConventionIII (NWCon3)
//Sys: Pentium IV 3200E/Prescott;800Mhz FSB;HT;WinXPPro;ATIR9700PRO;1024MB RAM(2x512MB"DualChanneled";VC++7.net;Delphi6;ADSL512;
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 12th Apr 2006 22:43
If you're willing to shell out $150, Right Hemisphere's Deep Exploration Standard Edition does a very good job converting .3ds files to .x. Here is the link:
http://www.righthemisphere.com/products/dexp/index.htm

Cheers,
Ancient Lady
Kaiyodo
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: UK
Posted: 13th Apr 2006 00:20
Not sure if this is related to your 3ds files not displaying, but you should be calling LoopSDK() at the start every frame to process any pending Windows messages.

I'm guessing the reason it appears to freeze when not in debug is that you have no actual way to exit your app. You don't check for dbEscapeKey() or exit if the return value of LoopSDK is false. Seems like it'll just sit there sync'ing until you kill it with the task manager

Kaiyodo.

Login to post a reply

Server time is: 2024-11-19 06:53:42
Your offset time is: 2024-11-19 06:53:42