[osg-users] DXF file with text crashes on Intersect

Robert Osfield robert.osfield at gmail.com
Tue May 29 09:04:09 PDT 2018


Hi Brian,

Please update to 3.6.1.  There are many improvements between 3.5.6 dev
release and the latest stable release, in particular to osgText so
while I can't say specifically that the issue you have come across is
fixed, there is a good chance.  There are also so many other
improvements that it's worth having for it's own sake.

If the problem still exists then an example that reproduces the issue
would be really helpful.

Robert.

On 29 May 2018 at 16:15, Brian Hutchison <bhutchison at systra.com> wrote:
> Hi,
>
> We are using osg version 3.5.6 from VCPKG.
>
> When we load a DXF which includes text it loads and displays fine.  However if we then call GUIActionAdapter::computeIntersections on the scene whilst the mouse is over a piece of text within the loaded DXF it crashes here:
>
>
> Code:
>
> void Text::accept(osg::Drawable::ConstAttributeFunctor& af) const
> {
>   if (_coords.valid() )
>   {
>     af.apply(osg::Drawable::VERTICES, _coords->size(), &(_coords->front()));
>     af.apply(osg::Drawable::TEXTURE_COORDS_0, _texcoords->size(), &(_texcoords->front())); <<<<<<<<<<<<<
>   }
> }
>
>
>
>
> _texcoord would appear to be empty.
>
> We are simply loading the DXF via readRefNodeFile then placing them in a PositionAttitudeTransform within out scene.
>
> I can work around it for now as we do not want the loaded DXF's to be directly pickable so can exclude them via a NodeMask, but would prefer not to have to do so.
>
> I see that there is a more recent build of osg available - is this something which has been fixed since 3.5.6?
>
> I can post a copy of an affected DXF if it would help.
>
> Thank you!
>
> Cheers,
> Brian[/code]
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73890#73890
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


More information about the osg-users mailing list