Re: pfShadeModel -> segmentation faults and geostate info after iv loader

New Message Reply Date view Thread view Subject view Author view

Juan R. \ (yuri++at++accesocero.es)
Sat, 17 Oct 1998 22:07:40 +0100


Marc Erich Latoschik wrote:
[munch]
> Another question arises. I load the geometrie using the iv loader. When
> i attach a geoset with a specific front/back material and a specific
> color
> the settings are ignored. Does that mean: Once the verts in the geosets
> have color bindings, the attached state properties are ignored? In other
> words do
> i have to color all the vertices instead of using Geostates? (This is
> how
> i did it before)

If you want to control the overall lighting/color of your object
overriding its own colors per vertex, you can also do this (I did this
to a flt node just after loading it): create a pfmaterial with your own
settings that, additionally, sets its color mode to off. Then set up a
pre-draw callback for your iv node that pfapplies this pfmaterial and
pfoverrides any further material settings (I do this to my flt just in
case it comes with its own material, and then de-pfoverride in a
post-draw callback, but you might not need that).

Sorry for the lack of real code and tokens -- I'm retrieving this from
my own memory ++at++ home, but I hope it helps.

Regards,
Yuri.

-- 
Por favor, acuse recibo de este mensaje // Please acknowledge receipt
-- 
Juan R. "Yuri" Saenz-Diez
Tel: ++34 - 91 420 40 80
mailto:jrsdm++at++hotmail.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Sun Oct 18 1998 - 13:07:50 PDT

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