From: Bram Stolk (bram++at++sara.nl)
Date: 07/11/2005 01:50:52
Hello,
Is there a special trick I should use, if I store a scenegraph
with lightsources in it?
If I plainly do a pfdStoreFile(scene,"foo.pfb") ...
then foo.pfb will contain the lightsource nodes.
However, after loading them in either perfly, or my own app,
I see no light from those sources.
Ofcourse perfly adds its own lightsource, and only perfly's
lightsource works.
If I enable the graph-viewer in perfly, and have my mouse over
the lightsource from perfly, then the scene darkens, as the
lightsrc is disabled. If I have my mouse over the lightsource
that is stored in the file, nothing happens.
I've investigated the pfb file, by converting it to pfa, and
then cross-referencing it with write_lsource code from
pfdbpfpfb/pfpfb.c and it looks just fine: all parameters of
the source are as I expected.
Bram
This archive was generated by hypermail 2b29 : Mon Jul 11 2005 - 01:50:56 PDT