[info-performer] multipass rendering on SGI Onyx?

Date view Thread view Subject view Author view

rick.van.haasen++at++philips.com
Date: 02/17/2005 03:28:51


i'm trying to apply 2 textures to a geoset.
The geoset is "part" of a geode, loaded from file and added to the scene.
Because the Onyx (more specific the IR4) doesn't support multi-texturing i
have to render the
geoset 2 times, each time with a specific geostate.

The first pass uses a fixed texture.
The second pass uses a texture out of a texture-set (an array of about 100
pfTexures)

Performer 2.5 had the pfShader class, which makes it easy to setup
multipass rendering
for a specific geoset in the scene. With the pfShader i would define 2
geostates (representing
the 2 textures and a blending method) and associate these states with a
first and second pass
of the pfShader. By changing the texture of the second geostate every
frame, i achieve the desired effect.

This pfShader isn't present in the 3.x releases (probably deprecated...)

I looked into the islShader class. One problem there is that the binding
of a texture in an isl-program
is fixed (filename). In my case the binding has to be dynamic (each
frame).

What is a good approach to implement this multipass rendering on an Onyx?

The "old" pfShader, which supports multipass rendering, thereby only
applying specific
openGL states for each pass would result in very clean solution for my
case.

thanks,
Rick

----------------------------------------------
Rick van Haasen
Philips Research
5656AA Eindhoven
The Netherlands
+31 40 2744357
----------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Feb 17 2005 - 03:32:33 PST