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 / [DBP] - Using boxes for primatives, using vertexdata UV to texture map

Author
Message
rik007
13
Years of Service
User Offline
Joined: 6th Jun 2012
Location:
Posted: 7th Jun 2012 00:08
This piece of code allows you to create a box, then texture it by updating the internal Vertexdata with the SET VERTEXDATA UV command. Usually when you texture a box, the texture is repeated and looks the same on each face. Not much good, if you want a door for example, where the top, bottom and sides look different to the front. Another example would be a library bookshelf, where the front of the box is a book texture and the sides are wooden.

You can use simple boxes for lots of uses, just by applying different textures. Hope this helps

Login to post a reply

Server time is: 2026-06-05 14:04:41
Your offset time is: 2026-06-05 14:04:41