Alon Rosenfeld 18 Hatzedef street Jaffa (alon++at++bvr.co.il)
Tue, 10 May 94 09:40:22 GMT
My application involves a two pass rendered scene. The first pass the application
draws the scene as it is (i.e. as it was modeled in MultiGen with textures, rgb colours
for each vertex, etc.). In the second pass I would like to draw the scene with a single
texture (using texgen) and a single colour. To draw the scene twice I have cloned the
database. Enforcing the database to use a single texture is easy, using the an override
command as shown bellow:
pfApplyTEnv(env);
pfApplyTex(missjan);
pfOverride(PFSTATE_ENTEXTURE | PFSTATE_TEXTURE, PF_ON);
/* draw the scene */
pfOverride(PFSTATE_ENTEXTURE | PFSTATE_TEXTURE, PF_OFF);
However can I do the same for the colour? It would be nice if I could call
say "pfApplyColor()" and then use pfOverride() to lock the colour in the GeoSets.
Meanwhile I am loading the database twice. On the second loaded db I run a pre-process
traversal which alters the existing colours in the GeoSets to the desired uniform colour.
Thanks
\________ \___ \_________
\__________ \___ \__________
\___ \___ \___ \___ \___ Alon J Rosenfeld
\___ \___ \___ \___ \___ BVR Technologies Ltd.
\__________ \___ \___ \_________ 1 Korazim st. Givatayim, Israel
\__________ \___ \___ \_________ Tel: 972-3-571 5671
\___ \___ \__________ \___ \___ Fax: 972-3-571 5668
\___ \___ \________ \___ \___ Home: 972-3-683 6020
\___ \___ \______ \___ \___ Email: alon++at++bvr.co.il
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:16 PDT