We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › texture mapping onto primitives
Page Index Toggle Pages: 1
texture mapping onto primitives (Read 749 times)
texture mapping onto primitives
Sep 11th, 2007, 1:14pm
 
I've done quite a bit of searching across the site, but please forgive if this question has been answered and my search-fu is weak:

Am I right in thinking that there is no way to map texture images onto a box or sphere object? I see how it can be done onto an arbitrary shape, but am I going to need to rewrite all of my code to create boxes from scratch just because I want textures on them?

Re: texture mapping onto primitives
Reply #1 - Sep 11th, 2007, 5:40pm
 
yes it is possible.. search on sphere mapping and box mapping.

mapping a box is mapping each face with the texture and render them normally.. youll need to do it all yourself and not use box() from processing..
same for sphere
Re: texture mapping onto primitives
Reply #2 - Sep 11th, 2007, 6:47pm
 
for reference, would you see code of MappedPrimitives in
http://www.geocities.jp/classiclll_newweb/CanvasesforKAME/applet/index.html
Page Index Toggle Pages: 1