Re: Re: [plib-devel] ASE load/save
Brought to you by:
sjbaker
From: Dave M. <dp...@ef...> - 2000-02-23 21:23:23
|
>> Using the save.cxx SSG example with loading the tuxedo.ac and saving it >> then as tuxedo.ase I get >> >> ... >> *MATERIAL_AMBIENT -431602080.000000 -431602080.000000 -431602080.000000 >> *MATERIAL_DIFFUSE -431602080.000000 -431602080.000000 -431602080.000000 >> ... >> >> in all materials. This doesn't lok right (it looks like some unitialized >> floats). Is that correct? > >Doesn't look good to me - I think the problem is rather subtle. Those >certainly are uninitialised variables - but I think the REASON is that >the ssgState probably had those colours set with a "don't care" flag - >implying that the ambient and diffuse colours are coming from the >polygon colour (using glColorMaterial) - meaning that those colours >are just plain WRONG. > >What the correct fix is - I'm not sure - depends on the ASE file format. ASE supports vertex colors and ssgLoadASE passes them to ssgVtxTable if they are found. But vertex colors are optional and may not be present. So... is a fix needed and if so what should be done? |