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.

Code Snippets / cube with each face textured with different image

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Jun 2004 09:15
Use the function to create a custom made cube. Use the texture_cube() function to texture each side of the cube with a seperate image. Cube sides range from 1 through 6.



"eureka" - Archimedes
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 7th Jun 2004 11:22
That works a treat mate, cheers.

How would I alter that to make a flat box.

Maybe the sides 1/4 or 1/5 the size of the top and bottom ?

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th Jun 2004 13:22
You could scale the object.
Make a cube of size 100. Then scale it. The reason for using a default size of 100 is that the percentage numbers you use to scale it by end up matching exact size.

make_cube(1, 100)
scale object 1, 100,20,100

Now the cube is 100x100 square, but only 20 units high.

"eureka" - Archimedes
scottige
21
Years of Service
User Offline
Joined: 11th May 2003
Location: United Kingdom
Posted: 7th Jun 2004 15:35
Thanks alot, I appreciate it.

Everybody, I've got something to say !
It's better to burn out than to fade away !
http://www.scottige.co.uk
PantheR RIP
20
Years of Service
User Offline
Joined: 7th Jul 2003
Location:
Posted: 7th Jun 2004 18:56
Heh! So simple and so interesting... Thanks! I have some ideas

Login to post a reply

Server time is: 2024-05-12 17:42:54
Your offset time is: 2024-05-12 17:42:54