XML Feeds

.

[javascript-dev] Re: gl orientation and "moving forward"

Joshua Kit Clayton jkc at musork.com
Wed Jan 9 14:08:11 MST 2008


On Jan 8, 2008, at 10:56 PM, jLubow wrote:

> erps-
> what i meant to write rather than glrotate was
> shapeorient(0,0,90);
>
> anyway; the point is that i'm trying to change the orientation of  
> the 'sketch perspective'
>
> could this be accomplished with gl command?

Yes with gltranslate()/glrotate(). You won't accomplish it with  
moveto/shapeorient as these just affect the specific drawing  
primitives rather than the OpenGL state. Please see the Jitter sketch  
tutorial (40), and even better, the OpenGL RedBook for more  
information on how to transform the modelview matrix. Changes are  
you'll want to use glmatrixpush/glmatrixpop. Search jitter mailing  
list archives for more details. The commands in the JS Sketch class  
and jit.gl.sketch are essentially the same.

-Joshua


More information about the javascript-dev mailing list