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 & HelpOpenGL and 3D Libraries › flipping the y axis.  good/bad
Page Index Toggle Pages: 1
flipping the y axis.  good/bad? (Read 426 times)
flipping the y axis.  good/bad?
Jan 12th, 2009, 6:35am
 
i'm obsessing over things as i learn processing.  after a little 3d investigation i realized (duh) it goes downward like 2d which is consistent.

however, i'm having a hard time visualizing and coding vertices when it's inverted like that so i plan to flip my sketch along the y.  currently that's simple camera call at the beginning of every draw.  

is this a good idea?  is this a dumb question?  whats the norm here? thanks for any help in advance.
Re: flipping the y axis.  good/bad?
Reply #1 - Jan 12th, 2009, 6:49am
 
You're not the only one. There is an easy way to flip - JohnG answered this well:
Quote:
scale(1,-1,1); should do it.


I think it wouldn't be difficult to reconvert as long as you stick to the convention.

source:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=OpenGL;action=display;num=1229904050

Re: flipping the y axis.  good/bad?
Reply #2 - Jan 12th, 2009, 9:45pm
 
Thanks sw01.  Making progress thanks to you, slowly but surely!
Page Index Toggle Pages: 1