Erik Hofman wrote:
> Could you elaborate on that one a bit, since FlightGear depends heavily
> on plib's ac3d loader and I don't want to convert all models just
> because of this.
Ok,
When the AC loader loads a file, it will parse
ac materials.
From these materials, ssgSimpleStates are constructed.
These ssgSimpleStates had their GL_SPECULAR, GL_EMISSION
values set, but not the GL_DIFFUSE.
This causes the un-intialized diffuse value of
0,0,0,0 being used in the ssgSimpleState node.
The un-initialized data may even be random, but
on my machine I observed 0,0,0,0 diffuse values
which make no sense.
That you dont see this weirdness normally, is probably
caused by the colour-per-vertex values that often overide
it.
Keeping un-initialized values in ssgSimpleStates is
bad anyway, because of PLIB's approach on vectors,
(which are float arrays, and not classes), plib
will not set a colour to a sane default.
The change I made in the loader is described here:
http://sourceforge.net/mailarchive/forum.php?thread_id=5647230&forum_id=7201
I dont think that it affects the loading of ac models by
flightgear in any negative way.
If it does, let me know, and I will investigate it further.
At least dog.ac and tuxedo.ac show no problems.
Bram
> Erik
|