From: Allan Schaffer (allan++at++sgi.com)
Date: 05/24/2002 00:19:27
[HTML post with nonwestern charset, caught by the spam filters --
forwarding]
-------- Original Message --------
Subject: about opengl call in performer
Date: Fri, 24 May 2002 15:15:24 +0900
From: "bumdai" <bumdai++at++grmanet.sogang.ac.kr>
To: <info-performer++at++sgi.com>
CC: "bumdae LEE" <bumdai++at++grmanet.sogang.ac.kr>
hi, performer family
I'm graduate student. and I have just begun performer programming.
I have some confusion. if you know, please reply to me.
========================================================
I want to integrate "OpenGL" code to "Performer".
as you know, you can do camera setting like this,
pfChanNearFar(chan, 1.0, 10.0);
pfChanFOV(chan, 60.0f, -1.0f);
pfChanView((chan, view.xyz, view.hpr);
pfChanTravFunc(chan, PFTRAV_DRAW, drawHUD);
and in the "drawHUD" function, when I programmed like this,
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
gluOrtho2D(-x/2, x/2, -y/2, y/2);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoadIdentity();
gluLookAt(0.0f, 0.0f, 10.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f);
If I programmed like this, I'm confusing,
Is camera setting with "performer function" disregarded by "gl camera
function" ?
Do "performer function" and "gl function" make problem?
please help me..
-- Allan Schaffer allan++at++sgi.com Engr. Manager, Core Rendering 1-650-933-2160 Silicon Graphics http://www.sgi.com
This archive was generated by hypermail 2b29 : Fri May 24 2002 - 00:22:49 PDT