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 / Assign different texture to each face of the box/cube?

Author
Message
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 2nd Mar 2009 21:12
Let's say i make a

Well just box, any size, or cube, it doesn't matter.


Is it possible to texture each side of the box with different textures?

Simple cube has 6 faces, so let's say i have 6 bitmaps or jpg's that contain numbers 1-6. So each face has it's own nr? It's not important.



Most important thing is that: is it possible?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Mar 2009 22:04
yes it is possible, there a demo on how to do it, if I find the link will post it.

Dark Physics makes any hot drink go cold.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 2nd Mar 2009 22:05
Not if you create a cube/box in that way, but yes it is possible.

Each mesh/limb of an object can only have one texture assigned to it. The only way to get multiple textures is to use multiple limbs.

Here's an example dice:


It can be done a little easier with commands from my plug-ins, but only a little.

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 2nd Mar 2009 22:18
link to spookys code snippets.


http://forum.thegamecreators.com/?m=forum_view&t=53538&b=6

Dark Physics makes any hot drink go cold.
Mulderman
20
Years of Service
User Offline
Joined: 8th Jan 2004
Location: C:\\
Posted: 3rd Mar 2009 10:03
Thanks alot for these snippets.

Login to post a reply

Server time is: 2024-09-28 02:20:26
Your offset time is: 2024-09-28 02:20:26