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 / Objects are transparent

Author
Message
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 28th Feb 2009 19:01 Edited at: 28th Feb 2009 19:45
Hey! I'm working on a building and i made it in 3DWS and it looked like this:

I exported it as a .dbo to the location of my code and it has all of the light maps and textures with it. But when i load it up using this code:

the building looks like this:


I decided to make a brand new map just to test so i put 2 boxes and gave each a texture and exported both as a .dbo and .x and they are still transparent. Could this be a result of my graphics card or some other hardware/software problem?
I also discovered that all of the models i make no matter what i use (including coding boxes and such with Dark GDK) are transparent like that.
Sharp Bullet
16
Years of Service
User Offline
Joined: 5th Feb 2008
Location: Pluto
Posted: 28th Feb 2009 19:49
The mistake is that you wrote :

dbSetCameraRange ( 1500, 0 );

instead of:

dbSetCameraRange ( 0, 1500 );

dbSetCameraRange ( NearVal, FarVal );



First say to yourself what you would be; and then do what you have to do.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 28th Feb 2009 20:19
The second mistake is that you used 0 as the near value, it must be at least about 1/3000th of the far value.

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 28th Feb 2009 21:15
Sweet thanks! I got it working
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 28th Feb 2009 21:23
ive noticed that lightmaps exported from 3dws are "duller" ingame, any reason for this?

Login to post a reply

Server time is: 2024-09-30 19:34:06
Your offset time is: 2024-09-30 19:34:06