> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> 
> I'm open to fixes, but it'd be good to put them in a generally
> accessible place in appropriate.
> 
> I do wonder if we could add a traversal into osgUtil::Optimizer that
> detects transforms that scale their subgraphs and then add the
> GL_NORMALIZE for these.  This visitor could then be run after the
> flatten static transforms traversal and be applied only when
> necessary.  Fancy writing such a Visitor :-)
> 
> Robert.

Robert,

I had not intended that snippet to be taken as a fix. I was going to submit it 
via the normal route. I just wanted to ascertain if it was an approach you 
would support. I gather from your comment that you are not happy about my cheap 
and cheerful approach and would prefer something more sophisticated.

My only comment would be that be that in osgconv at that point you _know_ the 
transform is going to scale the subgraph so what I suggest might be a useful 
interim solution until something more sophisticated was developed, and it might 
stop un-observant idiots like me wasting the time of the list!

I will submit the fix anyway then you can decide at your leisure.

I will look at the visitor in the not too distant future :-)

Cheers

Roger

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to