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 / textures

Author
Message
Tiborko
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location: In front of computer
Posted: 19th Apr 2011 01:17
Ok, I heard blender has many problems with exporting models to dbpro/gdk. I have this problem:
- I made simple terrain model and textured it in blender 2.57.
- I loaded the .x file to my dark gdk project. When i run my program, I get this:

and i used this texture:

what should i do?

Repetitio est mater studiorum!
Tiborko
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location: In front of computer
Posted: 19th Apr 2011 01:23
i also put texture image in the game folder...

Repetitio est mater studiorum!
WLGfx
17
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 19th Apr 2011 03:49
.X files have their textures in the same directory.

Warning! May contain Nuts!
Para _Charlie
18
Years of Service
User Offline
Joined: 31st May 2006
Location: Wisconsin
Posted: 19th Apr 2011 05:04
Looks like a u v problem.

Like 30 different TGC products. Cause I get bored easy.
Asus P5Q MB, P3.0 dual core, 8gigs ram, SATA HD, GTX 260
Win 7.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 19th Apr 2011 11:52
If you post the model it could be tell

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 19th Apr 2011 14:55
as Para _Charlie said, probably a uv problem (problem with exporting uv data)

Tiborko
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location: In front of computer
Posted: 19th Apr 2011 18:03
Here's the model. And what should i do if it is to uv? I tried to use blender's default cube and flat map input, it gets all the same.

Repetitio est mater studiorum!

Attachments

Login to view attachments
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 19th Apr 2011 20:10 Edited at: 19th Apr 2011 20:13
check the .x file. Find the "materials" section and make sure the path is correct. DGDK/DBP doesn't fail if it can't find the texture, it just loads the object with no texture.

EDIT: make sure this is correct
TextureFilename {"IvyTexture.bmp";}

The "IvyTexture.bmp" will be expected to be in the same directory as .x file unless otherwise specified like:
TextureFilename {"\textures\IvyTexture.bmp";}

The fastest code is the code never written.
Dodga
14
Years of Service
User Offline
Joined: 12th Dec 2009
Location:
Posted: 19th Apr 2011 20:26
Looks like the texture either isnt tiling, or it's having some uv problems, cause obviously the landscape is green, so thats a good sign that the texture is loading, if it wasn't it'd be gray.
try:
dbScaleObjectTexture ( int iObject,.1, .1 )

Login to post a reply

Server time is: 2024-11-19 12:40:44
Your offset time is: 2024-11-19 12:40:44