Hi Paul,

I've merged all the changes except for the line:

    viewer.addEventHandler(new KeyboardEventHandler( stateset ));

Pressing - and + changes the size of points, even for "osgpoints
--points dumptruck.osg".  I don't need to merge the above line for
this to work.  When you mention "comment out the distance attenuation
setting" I don't know what you mean.  Could you send modified example
that reproduces the problem you are seeing?

Robert.

On Wed, Dec 31, 2008 at 3:27 PM, Paul Martz <[email protected]> wrote:
> Hi Robert -- Two changes...
>
> With the unmodified example, I was seeing _no_ point size change when
> hitting the + and - keys. I changes the code to pass the loadedModel's
> StateSet into the event handler, rather than the Camera Node's StateSet, and
> this fixed the problem. I don't understand why this was broken. Please try
> to reproduce it before making this modification. (To reproduce, comment out
> the distance attenuation setting, then run the example and hit + several
> times. I did not see point sizes increase. When I changed the StateSet
> passed into the event handler, it worked fine.)
>
> The second change allows you to use any model, not just a model containing
> GL_POINTS. It is a "--points" command line parameter. So now you can run,
> for example, "osgpoints --points dumptruck.osg".
>
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> +1 303 859 9466
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to