[info-performer]Problem with multitexture in pfb

Date view Thread view Subject view Author view

From: RJM Smeenk (r.j.m.smeenk++at++fel.tno.nl)
Date: 07/23/2004 08:33:10


Hello,

there seems to be a problem with loading/saving multitexture from/to a
pfb.

See the attached pfb files that contain a simple quad with multitexture
applied.

WORKS OK:
multitexture1.pfb
-primary texture red/blue checker
-secondary texture b/w checker

FAILURE:
Generates a segmentation fault under Windows and Linux when loading in
Perfly.
multitexture2.pfb
-no primary texture
-secondary texture assigned (bw checker)

The second file can be viewed if created directly inside the Performer
tree although it does not produce any usefull result. (black square)
When saved with pfdStoreFile and loaded again Perfly (and my app)
crashes.
The problem can be solved by explicitly setting
-texturecoordinates for stage 0
-gstate->setMultiMode(PFSTATE_ENTEXTURE, 0, PF_OFF )
-gstate->setMultiAttr(PFSTATE_TEXTURE, 0, tex ); // where tex is a dummy
that texture that is not used
This will result in the second stage becoming visible.

WORKS OK:
multitexture3.pfb
-primary texture (red/blue checker), but disabled
-seconday texture bw checker

These files were saved under Windows and can be viewed in Perfly under
Windows just fine (NVIDIA GF4). Perfly under Linux seems to load them
with the same success and failure, but nothing is visible (ATI 9700). I
did not test it under Irix.

kind regards,

Roland Smeenk

-- 
------------------------------------------------------------------------------
The disclaimer that applies to e-mail from
TNO Physics and Electronics Laboratory
can be found on: http://www.tno.nl/disclaimer/email.html
------------------------------------------------------------------------------





Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Fri Jul 23 2004 - 08:36:44 PDT