PDA

View Full Version : multiple textures



danz
04-07-2010, 03:11 PM
I'm starting to learn about WebGL, there are many examples of rotating cube with a single texture. But how do you create multiple textures and bind them to different faces of a cube? (image01=front, image02=back, etc) Are there examples available?

Thanks,
Dan

giles
04-12-2010, 12:14 PM
Hi Dan,

You can probably extract the code you want from QBox, by Sandro Paganotti: http://sandropaganotti.com/qbox-a-webgl-photo-slideshow-for-your-website/


Cheers,

Giles