Hi Neil,
Sorry this mail first went to you personally - I don't know why but the
message I replied to defaulted to send to you personally instead of
going back to the list, generally e-mails coming from the list go back
to the list automatically when you reply to them... Weird.
I've now had chance to have a look at your suggested optimisations, and I think
they form the basis of a solution for me, so thanks for that. However there is
one thing which troubles me a little, which is that the
FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS optimisation, whilst
flattening the static scalings, applies those scalings to the normals as well
as the vertices. Whilst I can understand that this might be desirable for some
strange effects, would you agree that the normals should at least be normalised
after this process, else undesirable lighting anomalies can occur?
Possibly - you could change it and submit the change to see what other
people will have to say. I have never personally used these optimizer
settings so it would be better if the actual users of it could comment
as to whether this is desirable in the general case or whether it should
be an option instead. I personally think normals should be normalized by
default and the reverse case (not normalizing them) should be an option,
but as I said I'm not one of the users of this visitor so the decision
is not mine to make.
As a workaround I think you could use the osgUtil::SmoothingVisitor (or
using osgconv add the --smooth command line option), this give you
unit-length normals but will also smooth them so it may not be exactly
what you want. You could check the code of the SmoothingVisitor to make
a similar one that does what you want.
Hope this helps,
J-S
--
______________________________________________________
Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org