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.

DarkBASIC Professional Discussion / differents pics on one cube

Author
Message
leo877
17
Years of Service
User Offline
Joined: 6th Mar 2008
Location: san antonio, tx
Posted: 7th Mar 2008 04:52
new to programming.. hello programmers..i am trying to make a game.
i wound like to put 6 different pics on one cube alomost like a dice but with pics.....can anyone help thanks

darkbasic software is cool
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Mar 2008 10:25
You can't do it with the MAKE OBJECT CUBE command, because the UV coordinates are identical on every face. You must create a cube model in a modelling application with the correct UV data and load it.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 7th Mar 2008 10:36
One other option would be to make a plain, then make that into a mesh, and add it to an object 6 times as limbs, rotating and offsetting each limb to suit the face of a cube. With that you could then texture each limb however you like.

But that's a lot of work compared to just making a cube object with a decent UV map layout.


less is more, but if less is more how you keeping score?
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 7th Mar 2008 10:56 Edited at: 7th Mar 2008 10:56
This other solution seems quite elegant :

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

Well done, Chafari !

Ideas: memories of things which did not occur yet...
http://keleb.free.fr/codecorner
leo877
17
Years of Service
User Offline
Joined: 6th Mar 2008
Location: san antonio, tx
Posted: 7th Mar 2008 13:59
Quote: " @batvink You must create a cube model in a modelling application with the correct UV data and load it. "
do u know any programs that does uv data / modeling application. thanks for the help every one. i think i will try chafari codes

darkbasic software is cool
Roxas
19
Years of Service
User Offline
Joined: 11th Nov 2005
Location: http://forum.thegamecreators.com
Posted: 7th Mar 2008 22:15
This is far more better.. http://forum.thegamecreators.com/?m=forum_view&t=104675&b=6


Click For Details!

Login to post a reply

Server time is: 2025-08-09 01:37:24
Your offset time is: 2025-08-09 01:37:24