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 / Problem loading and showing a X file

Author
Message
ogourietz
16
Years of Service
User Offline
Joined: 29th Feb 2008
Location:
Posted: 29th Feb 2008 19:18
Hi all,
I'm completely new to DGDK / DB.
I've made a very basic level, with textures, and exported it as a X file (directx 9).
When I double click on that X file, directx viewer loads and displays it correctly.

I then wanted to "play" with my level using Dark GDK.
I opened the "Game level" solution, replaced the "universe.dbo" by "test.x", copied my model "test.x" and its textures in the media folder where is actually "universe.dbo" ...

I then have built the solution and executed the program.
Only the skybox appears on the screen but not my level, that's the problem

Here's my code :



What could cause my model not to show up ?
Could it be its position, its scale, the camera position ... ?

I'm a bit lost, I've read and tried many things with no luck at all.

Any help, ideas ?
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 29th Feb 2008 21:16
it could just not be in the view of the camera, like if it was not exported at 0,0,0, or if the camera is simply pointing away from the object. If you can adjust the z axis of the camera back and see if the model comes into view

[href]mod2software[/href]
Kurt
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location:
Posted: 29th Feb 2008 21:29
If CattleRustler's tip didn't work. Try to write like:



If it prints 1, you aren't facing the object. Or the object is either too small to see. If zero, check that you have written the correct file name and that it is the "media" directory
ogourietz
16
Years of Service
User Offline
Joined: 29th Feb 2008
Location:
Posted: 29th Feb 2008 21:36
Many thanks both of you.
I think with trying many things and many things my code was a bit weird ... especially the camera position.
I've solved my problem, I must say I'm very happy.

Here's the new code just in case :


Thanks again

Login to post a reply

Server time is: 2024-11-20 03:34:03
Your offset time is: 2024-11-20 03:34:03