Re: [info-performer] Draw TravFuncs problems

Date view Thread view Subject view Author view

From: Alexander Lechner (alexander.lechner++at++vertigo-systems.de)
Date: 10/14/2004 08:01:34


On Thursday 14 October 2004 16:30, GAILLARD alexandre wrote:
> HI,
>
> I'm doing a project in witch I need to integrete Cg in Performer to
> implement dynamic lighting. So this part of the job is done ... and now I
> have to take care of the materials.
>
> I fond 2 solutions for that particular problem :
> o 1 : Get them back from OpenGl .. but it seems that the material is not
> bind o 2 : Get them from Performer .. but my pfTraverser parametre always
> give me the top-level node (pfGroupe), the pfPath has his list empty and
> the Index from, GetIndex is always 0 ....
>
> So how can I do to get the material of the currenty rendered geometry if
> that's possible ....
>
> Thanks in advance ..
> Alexandre Gaillard
>
You could also compile your Cg program to arbVP1, arbFP1 and you´ll get access
to the current OpenGL state. Of course this is especially useful if you apply
your Cg program in the pfGeoState´s apply function, which is called after PF
has setup the OpenGL state.

> -----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
> -----------------------------------------------------------------------

-- 
Alexander.Lechner     ++at++        vertigo-systems.de
Engelbertstraße 30    |    phone: +49-221-2405472
D-50674 Köln          |      fax: +49-221-34892616


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Oct 14 2004 - 08:00:48 PDT