Re: [info-performer] pfDraw callback on a pfSwitch node

New Message Reply Date view Thread view Subject view Author view

From: Dirk Scheffter (scheff++at++appss.de)
Date: 06/02/2002 09:23:10


Hi there,

for those who may concern: some additional thoughts about pfSwitch...

A few weeks ago I played around with pfSwitch to achieve
something similar like Multipass Rendering. (That's of course not for
what they had been invented. However...)

My idea was to setup:

pfSwitch
 |
 +- pfNode (pass 1)
 |
 +- pfNode (pass 2)
 |
 +- pfNode (pass 3)

To select the node according to pass I attached a draw callback
to each pfSwitch setting switch value to index of pass - 1.
The channel draw callback draws scene three times incrementing pass
each time.

...
pfClear();
pass = 0;
pfDraw();
pass = 1;
pfDrawScene();
pass = 2;
pfDrawScene();
...

(Culling can not be the problem because all pfNodes have same bounding
sphere - for my luck).

This resulted in a very funny but undesired flickering.

OK. Switch value could be not MP save.

Thus, I used a fluxed switch value. This enabled me to remove the draw
callback from pfSwitch and to set the switch value directly in channel
draw callback.

However, the result was a similar funny but still undesired flickering.

It seems, that I have a different imagine about switch nodes and flux
buffers than SGI... ;-)

I didn't grab deeper into this.
The originally desired effect I have achieved now using other tricks...

Greetings,
Dirk.

====================================================================
Dirk Scheffter

applied software solutions (appss) GmbH
Sandtorstr. 23
D-39106 Magdeburg
Germany

Phone: +49-(0)391-54486-19387
Fax: +49-(0)391-54486-19222
E-mail: scheffter++at++appss.de
URL: http://www.appss.de

Managing Director: Uwe Hess, Dietmar Schäfer
Register: HRB12386, AG Mageburg

"Virtual business becomes reality!"

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail
in error) please notify the sender immediately and destroy this
e-mail. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
===================================================================


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Jun 02 2002 - 07:42:40 PDT

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