Hi Jason, On Sat, Dec 20, 2008 at 4:13 PM, Jason Daly <[email protected]> wrote: > The Valve models are indeed natively in inches. I already went ahead and > scaled (0.0254) all the vertices as they're read from the file in both the > bsp and mdl plugins. I thought about using a global MatrixTransform as > well, but I've often found these annoying to deal with when writing > applications (you have to be careful what units you're working with any time > you have to do any processing on the geometry). Scaling the vertices > directly (essentially, just pushing the transform down to the leaves) always > seemed less problematic to me. That said, I'm not *strongly* opposed to a > MatrixTransform at the top, if you'd prefer it that way. > > A ReaderWriter option is definitely a good idea, though. We could replace > the hard-coded scale factor on both sides with a user-defined scale factor > that defaults to 0.0254.
Good to hear that you've already accounted for the scale. As ReaderWriter Options to make this scale controllable would be the next step. I'm happy for the scale to be applied at the local code level rather than a MatrixTransform, this was just a suggestion to make applying the scale easy, as you've already done this this suggestion is rather mute :-) Getting an ReaderWriter::Option in before 2.8 isn't critical. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
