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 / can anyone load this blender model in gdk?

Author
Message
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 13th Jun 2008 22:54
I cannot seem to load this model in gdk. Could someone try please?
I will attach the .blend file.

Attachments

Login to view attachments
Slayer 706
16
Years of Service
User Offline
Joined: 18th May 2008
Location:
Posted: 14th Jun 2008 00:54 Edited at: 14th Jun 2008 00:55
You need to export the model as something else, such as *.x (the format for Direct X models).
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 01:13
I did. I just attached the .blend file so you can check whether there is something wrong with it.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 14th Jun 2008 01:20
I think it all has to be one object.

Your signature has been erased by a mod - 120 high maximum please
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 01:24
ok thank you. will try that tomorrow
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 15:01
I joined the three rooms ctrl+J but the model still does not load. I tried to load it with DXViewer.exe from the directX sdk. It loads but without texture and the normals seem to have been flipped since the cubes are transparent from the inside.
DXViewer.exe says:
Loading model - F:\blender\office extrude scale joined.x
Binormals do not exist on mesh. Attempting to calculate.
Tangents do not exist on mesh. Attempting to calculate.
'' material 0 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
'' material 1 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'
'' material 2 - No effect instance specified.
Reverting to the default effect.
SAS: Loading effect 'Resource:#103'

I will attach he new .blend file.
I used this texture http://photoshoptextures.com/stone-textures/concrete-texture.jpg

Attachments

Login to view attachments
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 14th Jun 2008 15:20
If you can see it, that is good, even though there is no texture.

what you have to do is open the .x file in notepad, and do a search for texturefilename The texture filename is wrong, so just change it.

As for the normals, in the game just use dbSetCull, and it will work out fine

Good luck.

Your signature has been erased by a mod - 120 high maximum please
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 15:25
maniac, thank you for your help!

I read about the texture export problem. Forgot to mention I checked that and the line
TextureFilename { "concrete-texture.jpg"; }
is in place and seems to be correct.

I can see the model in DXViewer.exe but not in GDK.

What does dbSetCull do? I found nothing about it in the documentation. Not even in google.
tobi453
19
Years of Service
User Offline
Joined: 28th Apr 2005
Location:
Posted: 14th Jun 2008 15:25
try "recalculate normals outside" in blender

FINAL VERSION RELEASED!!!!
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 15:35
tobi, thank you! It is strange though. In blender 3d view after "recalculate normals outside" it looks the way I dont want it to. the cubes are textured outside but transparent inside. When I render it though or export it and view it in DXViewer.exe it looks right.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 14th Jun 2008 15:35
Quote: "What does dbSetCull do? I found nothing about it in the documentation. Not even in google. "


It might not be dbSetCull, look in the information file for DGDK, do a search on cull, it will enable the object to be seen at al angles, from the inside or outside.

Your signature has been erased by a mod - 120 high maximum please
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 15:38
maniac: ah ok you mean dbSetObjectCull(id, 0)? That would turn off back-face culling? Will try that.
manu
16
Years of Service
User Offline
Joined: 7th Jun 2008
Location:
Posted: 14th Jun 2008 15:53
it worked, thank you to both of you! Dont know what did it in the end.

....
..
might even have been the wrong directory the model was in LOL

Login to post a reply

Server time is: 2024-09-29 23:25:48
Your offset time is: 2024-09-29 23:25:48