Re: Problem with OpenGL calls

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Fri, 11 Dec 1998 17:38:05 -0800


Rasterpos is transformed through the modelview and projection
matrices so 0,0,0 may not be where you expect unless you have
controlled the content of those matrices.

Cheers,Angus.

Javier Muņoz Lagaron wrote:
>
> Hello,
>
> We are developing a Performer application.
> In this application, we want to make OpenGL
> calls in the draw process.
>
> But it doesnīt work if I use certain calls as
> glRasterPos2i. I donīt know if I must change
> something in the configuration of pfWindow
> or pfPipeWindow for working with that
> calls.
>
> For example these lines donīt work:
>
> GLint vals[4];
> GLboolean val;
>
> glGetIntegerv(GL_CURRENT_RASTER_POSITION,vals); <-1
> glGetBooleanv(GL_CURRENT_RASTER_POSITION_VALID,&val);
> glRasterPos4i(0,0,0,1);
> glGetIntegerv(GL_CURRENT_RASTER_POSITION,vals); <-2
> glGetBooleanv(GL_CURRENT_RASTER_POSITION_VALID,&val);
> glDrawPixels(nave->ns,nave->nt,GL_RGB,GL_UNSIGNED_BYTE,nave->imagen);
>
> 1 and 2 returns the same values, and the imagen isnīt displayed.
>
> Can anyone give us any clue?
>
> Many thanks
>
> =====================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Fri Dec 11 1998 - 17:38:10 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.