[jitter] bug with jit.gl.sketch and glloadidentity
pelado
pelado-mail at pelado.co.uk
Mon May 5 18:05:00 MDT 2008
- Previous message: [jitter] bug with jit.gl.sketch and glloadidentity
- Next message: [jitter] Re: Cant use Jitter in max 5!!!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ooops! Of course. And I was neglecting that the camera position is also part of the modelview matrix. Sorry Wes. I guess I need to get back to the red book. pelado On Tue, May 6, 2008 at 12:36 AM, Wesley Smith <wesley.hoke at gmail.com> wrote: > Hi Pelado, > Here's what you need to do: > > reset, glclearcolor 1 0 0 1, glclear, glmatrixmode modelview, > glpushmatrix, glloadidentity, gltranslate -0.4 0 -2, glrotate $1 0 1 > 0, cube 0.2, glpopmatrix, gldisable depthtest, glenable blend, > glblendfunc 6 1, glcolor 1 1 0 0.5, glpushmatrix, glloadidentity, > gltranslate 0.8 0 -2, glrotate 90 0 1 0, cube 0.2,, glpopmatrix > > In your patch you were rendering the cubes exactly at z=0 i.e. at the > location with the camera. This is what happens when you cal > glLoadIdentity() without offsetting in the Z direction. > > wes > _______________________________________________ > jitter mailing list > jitter at cycling74.com > http://www.cycling74.com/mailman/listinfo/jitter > -- http://www.pelado.co.uk -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/jitter/attachments/20080506/193b8cda/attachment.htm
- Previous message: [jitter] bug with jit.gl.sketch and glloadidentity
- Next message: [jitter] Re: Cant use Jitter in max 5!!!
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
