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.

Newcomers DBPro Corner / How do I change the texture of an object once I assign one to it?

Author
Message
Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 13th Aug 2006 06:38 Edited at: 13th Aug 2006 14:28
Quote: "
TEXTURE OBJECT Object Number, Stage Index, Image Number
"


There seems to be a limit to how many times I can change a texture back and forth.


The first time I press it, it'll change them. But not the second time.

I need to be able to change the texture of an object back and forth. How do I do this?

The last sane human being in a world gone mad.
If you were a cockroach, what type of cockroach would you be?
Wolf Dreamer
19
Years of Service
User Offline
Joined: 13th Sep 2005
Location: the land of chaotic dreams
Posted: 13th Aug 2006 14:04 Edited at: 13th Aug 2006 17:24
Also, can anyone give me an example of the Stage Index being used?

The last sane human being in a world gone mad.
If you were a cockroach, what type of cockroach would you be?
D Ogre
21
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 13th Aug 2006 17:28 Edited at: 13th Aug 2006 17:29
If you're not using shaders or multi-texturing, don't bother using the stage
index parameter when texturing an object.

The DBPro help file states the following for the TEXTURE OBJECT command:

Quote: "
An additional texture stage index can be provided to the command to specify
multi-textures directly, and is required when using shaders that take pixel
data from secondary textures.
"


I believe if you use the texture stage parameter in the way you are and make
it work correctly, you must have the object set up for multi-texturing
outside of DBPro in a Modeller first. Load the object and apply textures/shaders.
David iz cool
19
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 14th Aug 2006 00:48
all u have to do is use 'texture object'

try this code,should work fine,just replace the images with your own.



Login to post a reply

Server time is: 2024-11-26 13:33:01
Your offset time is: 2024-11-26 13:33:01