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.

Author
Message
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 12th Oct 2010 20:45
How to use more then one texture one one object?
I made my character model that uses diffuse/normal/height maps
but i can load only one texture and not 16 of them for one model as I have planed.
I tried to use texture object and set texture object commands but problem still remains.

If anyone wants to join my team and help me with development of my sci-fi fps game, please send me an e-mail.
bergice
19
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 12th Oct 2010 21:07
Make the model automatically load the textures and dont use the texture object command. Most programs will export texture data with the object.

51fa1db0ec7c4af52d93a6f5d0e86bc5
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 12th Oct 2010 21:39
how can i do that?

If anyone wants to join my team and help me with development of my sci-fi fps game, please send me an e-mail.
Rich Dersheimer
AGK Developer
17
Years of Service
User Offline
Joined: 1st Jul 2009
Location: Inside the box
Posted: 12th Oct 2010 22:10
What program did you use to make your model?

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 13th Oct 2010 00:37
3ds max 8, but i don't think this is the best way to do this. I want to load textures from disk but i don't know how to make multi textured object.

If anyone wants to join my team and help me with development of my sci-fi fps game, please send me an e-mail.
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 13th Oct 2010 15:44
people can someone tell me how to use more then one texture on a character model?

If anyone wants to join my team and help me with development of my sci-fi fps game, please send me an e-mail.
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 14th Oct 2010 04:42 Edited at: 14th Oct 2010 04:45
Well id try

Load object "media/whatever.x",1
Load image "media/texture1.bmp", 1
Load image "media/texture2", 2
...

Do
If whaterver = 1
Texture object 1,1
End if
If whatever = 2
Texture object 1,2
Endif
...
Loop

EDIT:
Oh sorry I miss understood, I saw a thread on lighmaping w/ catograpy shop try searching
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 14th Oct 2010 12:21
1st way: To automatically load the textures, the textures must be described inside the model file, along with the materials. At load time those textures must be in the right relative folder, as described in the model file.

2nd way (recommended): DBPro doesn't handle model materials but rather object limbs. Name the different parts of the model inside 3ds max (that should make a limb), and then use Texture Limb from DBPro to texture each individual part. Use texture stages to load the different maps (diffuse, normal, etc.), but you'll need to apply a shader to use these extra maps.

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 14th Oct 2010 16:03
2nd way works but is not exactly practical how can i get name of the limb? There is potential problem with this in 3ds max I have 8 object like armor, torso, boots, etc, in one order but in dbp this objects are listed in different order?

If anyone wants to join my team and help me with development of my sci-fi fps game, please send me an e-mail.
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 14th Oct 2010 23:49
Why exactly would you need 16 textures?
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 15th Oct 2010 00:08
Model is character that will appear in sci-fi FPS, i modeled this character from more objects he has head, arms with hands,pelvis and knees as one, two separate eyes, upper and lower teeth, torso armor,thigh pads and boots. Every object has its own diffuse/normal/height maps (i also have some problems with height maps when using parallax shader). This is totall of 16 files that are in dds format and have 1024x1024 resolution.
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 15th Oct 2010 07:19
You mean each limb of the character is divided into components that can be customized or something?
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 15th Oct 2010 12:53
Quote: "in dbp this objects are listed in different order?"

Yes this can happen.

Quote: "how can i get name of the limb?"

LIMB NAME$ : Return String=LIMB NAME$(Object Number, Limb Number)

Also, you'll need to use Set Limb Effect for the normal maps. I don't think those height maps are going to be used.
I recommend you to dig in the forum for limbs, multi-texturing animated objects, and normal map shaders. Good luck

nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 15th Oct 2010 16:11
Here is the code:



Now what i want is to find a way of texturing this character model
with these textures, but there is the problem of finding limbs and texturing limbs. This way works but this is time consuming I want to make the game that will know how to find limb number and names and paste right textures on them.
nruser
18
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: Serbia
Posted: 16th Oct 2010 18:37
bump

Login to post a reply

Server time is: 2026-07-22 12:41:39
Your offset time is: 2026-07-22 12:41:39