Re: [osg-users] osgDB XmlParser and localization

2018-09-04 Thread Trajce Nikolov NICK
Thanks a bunch Robert!

I will check it first thing tomorrow morning

On Tue, Sep 4, 2018 at 4:40 PM Robert Osfield 
wrote:

> On Fri, 31 Aug 2018 at 08:06, Trajce Nikolov NICK
>  wrote:
> > can you fix this too when you get back to OSG dev please?
>
> This morning I have checked in UTF8 handling in XmlNode/Input to
> master and the 3.6 branch.
>
>
> https://github.com/openscenegraph/OpenSceneGraph/commit/afe5644b9fcf39a22a2ba0c8aefb26a340a5a457
>
> Robert.
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] GL profiles issues on Windows

2018-09-04 Thread Riccardo Corsi
Hi all,

I have some osg-based libraries that are addressing only GL3+ Core profile
functionalities, as I need them to work on Mac.

Now on Windows, I expected them to work just by compiling osg with the
OSG_GL3_AVAILABLE flag.
What happens instead is:
- if I build osg with GL core profile (no GL 1 and 2, no FFP enabled,
ecc...) everything works
- if I build osg just adding the OSG_GL3_AVAILABLE flag and launch the
application by specifying a GL 3.2 Compatibility profile, I get no errors
but nothing shows up

Are my expectations correct? Should I check some more compilation / runtime
settings to have it working?

My setup is:
osg 3.6.2
win 10
nvidia GTX card

Thank you,
Riccardo
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Please test OpenSceneGraph-3.6 branch, to help prep for 3.6.3 release

2018-09-04 Thread Robert Osfield
Hi All,

I have checked in fixes/improvements to 3.6 (also applied to master)
to address all of the issues that I recall having popped up  on
osg-users ML/forum since 3.6.2.  I have have missed an issue, if so
please let me know on this thread.

My plan this month is to make a OpenSceneGraph-3.6.3 maintenance
release, I am presently only working on a Linux dev system so need the
community to test out on other platform combinations and their own
applications to make sure that 3.6.3 is solid.

   https://github.com/openscenegraph/OpenSceneGraph/tree/OpenSceneGraph-3.6

Robert.

-- ChangeLog since 3.6.2

Tue, 4 Sep 2018 15:26:30 +0100
Author : Robert Osfield
Changed the ShapeDrawable::build() methpd so that it does run when the
ShadpwDrawabe is a KdTree.

Tue, 4 Sep 2018 14:13:32 +0100
Author : Robert Osfield
Updated SO version as XmlNode::Input changes change the ABI

Tue, 4 Sep 2018 12:19:14 +0100
Author : Robert Osfield
Added support for reading UTF-8 encoded of xml files

Mon, 3 Sep 2018 12:30:02 +0100
Author : Robert Osfield
Changed the logic for whether to call setUpThreading() in
setThreadingModel() to make it possible to changed threadings even if
the threading model starts of as SingleThreaded

Mon, 3 Sep 2018 11:19:50 +0100
Author : Robert Osfield
Updated version number to 3.6.3 in prep for next naintainance release

Mon, 3 Sep 2018 10:16:45 +0100
Author : Robert Osfield
Merge branch 'OpenSceneGraph-3.6-TexStorage' into OpenSceneGraph-3.6

Mon, 3 Sep 2018 09:37:36 +0100
Author : Robert Osfield
Added reset of _stateset to prevent the releaseGLObjects calling
release on th StateSet from the destructor

Mon, 3 Sep 2018 09:37:36 +0100
Author : Robert Osfield
Added reset of _stateset to prevent the releaseGLObjects calling
release on th StateSet from the destructor

Tue, 28 Aug 2018 11:22:57 +0100
Author : Robert Osfield
Replaced the glSGetProcAddressARB code with the dlsym() usage as the
NVidia driver looks to be returning non NULL pointers for invalid
function names.

Tue, 28 Aug 2018 11:22:57 +0100
Author : Robert Osfield
Replaced the glSGetProcAddressARB code with the dlsym() usage as the
NVidia driver looks to be returning non NULL pointers for invalid
function names.

Wed, 22 Aug 2018 11:13:11 +0100
Author : Robert Osfield
Enabled point sprite validty modes.

Wed, 22 Aug 2018 11:13:11 +0100
Author : Robert Osfield
Enabled point sprite validty modes.

Wed, 22 Aug 2018 10:42:18 +0100
Author : Robert Osfield
Merged fix for PointSprite modes validity checks from master.

Wed, 22 Aug 2018 10:42:18 +0100
Author : Robert Osfield
Merged fix for PointSprite modes validity checks from master.

Tue, 21 Aug 2018 09:38:03 -0400
Author : plevy
Change GL_RGBA16F to  GL_RGBA16F_ARB to fix Windows BuildChange
GL_RGBA16F to  GL_RGBA16F_ARB to fix Windows build.

Tue, 21 Aug 2018 09:38:03 -0400
Author : plevy
Change GL_RGBA16F to  GL_RGBA16F_ARB to fix Windows BuildChange
GL_RGBA16F to  GL_RGBA16F_ARB to fix Windows build.

Tue, 21 Aug 2018 09:19:50 +0100
Author : Robert Osfield
Replaced GL_RGBA32F with GL_RGBA32F_ARB to fix Windows build

Tue, 21 Aug 2018 09:19:50 +0100
Author : Robert Osfield
Replaced GL_RGBA32F with GL_RGBA32F_ARB to fix Windows build

Mon, 20 Aug 2018 10:08:09 +0100
Author : OpenSceneGraph git repository
Merge pull request #606 from
mp3butcher/OpenSceneGraph-3.6-TexStorageOpen scene graph 3.6 tex
storage

Mon, 20 Aug 2018 05:10:11 +0200
Author : mp3butcher
complete TexStorage support

Mon, 20 Aug 2018 04:50:14 +0200
Author : mp3butcher
add more extensions

Sun, 19 Aug 2018 22:46:10 +0200
Author : mp3butcher
remove redondant variable and test

Fri, 17 Aug 2018 16:51:55 +0100
Author : Robert Osfield
Removed check as this is better outside of the function

Fri, 17 Aug 2018 12:20:59 +0100
Author : Robert Osfield
Created a GLenum Texture::selectSizedInternalFormat(const osg::Image*
image=0) const method to help clean up set up of glTexStorage. Fixed
typo.

Fri, 17 Aug 2018 10:31:46 +0100
Author : Robert Osfield
Merged changes to InternalPixelRelations sizedInternalFormats[] from master

Thu, 16 Aug 2018 19:23:17 +0100
Author : Robert Osfield
Fixed memory leak associated with VertexArrayStte objects not getting
released on destruction of Geometry/Drawables.

Wed, 8 Aug 2018 14:42:04 +0100
Author : Robert Osfield
From Chris White, Cygwin build fix

Wed, 8 Aug 2018 15:05:53 +0300
Author : Vic-Min
Renamed USE_DEPRECATED_API to OSG_USE_DEPRECATED_API

Tue, 31 Jul 2018 16:58:41 +0100
Author : OpenSceneGraph git repository
Merge pull request #583 from emminizer/flt-registry-cacheOpenFlight:
Replace internal caches with osgDB::ObjectCache use.  Fix…

Tue, 31 Jul 2018 11:45:33 -0400
Author : Daniel Emminizer
OpenFlight: Replace internal caches with osgDB::ObjectCache use.
Fixes unbounded memory growth when using readNode(std::istream&, ...)
method.

Tue, 31 Jul 2018 09:13:20 +0100
Author : Robert Osfield
Removed unneccessary FIX ME statement.

Fri, 27 Jul 2018 17:34:30 +0100
Author : Robert Osfield
Fixed check

Re: [osg-users] osgDB XmlParser and localization

2018-09-04 Thread Robert Osfield
On Fri, 31 Aug 2018 at 08:06, Trajce Nikolov NICK
 wrote:
> can you fix this too when you get back to OSG dev please?

This morning I have checked in UTF8 handling in XmlNode/Input to
master and the 3.6 branch.

https://github.com/openscenegraph/OpenSceneGraph/commit/afe5644b9fcf39a22a2ba0c8aefb26a340a5a457

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] RayIntersector with KdTree causes a crash

2018-09-04 Thread Robert Osfield
Hi Ale,

I have invested the issue further, focusing on why the sphere appears
fine when the KdTree isn't build, but disappears when it is.  I
tracked this issue down to the ShapeDrawable::setShape() being invoked
by the KdTreeBuilder that creates a KdTree for a ShapeDrawable then
assigns this KdTree to the ShapeDrawable via the Drawable::setShape()
method which in turn invokes the ShapeDrawable::build() method that
attempts to build a geometry from the KdTree.  It's a bit of circular
reference - KdTree wasn't ever meant to work with ShapeDrawable, it's
only now working because of the change of ShapeDrawable from
subclassing from Drawable to subclassing from Geometry.

To prevent the unintended rebuild I have disable the
ShapeDrawable::build() from doing anything when the shape assigned is
a KdTree.


https://github.com/openscenegraph/OpenSceneGraph/commit/5f9c6a01704e26e6760cc023e09ab1dcf0da1a15

There is still a bit of mismatch in that KdTree is a special case of a
Shape, but still a valid use.  Shape's were always intended to be used
for intersection testing and physics, but never originally intended to
support a ShapeDrawable.  The ShapeDrawable was a quick and easy thing
to add to help visualize primitive shapes but in hindsight I should
never have implemented it as it's misused too much by the community as
a serious means for drawing objects.  It's not possible to remove
ShapeDrawable without breaking lots of user applications so it's still
part of the OSG.  Please consider it just there for backwards
compatibility.

The above change is now checked into master and the OpenSceneGraph-3.6
branch. so it will be part of the 3.6.3 release I'll make this month.

Testing of these changes would be appreciated.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] RayIntersector with KdTree causes a crash

2018-09-04 Thread Ale Maro
Hi Robert,


I attached the stack trace for the modified osgPick example.

We analyzed the LineSegmentIntersector::intersect code (see below) and we saw 
that if we build KDTree AND the transofmation matrix has negative scale then 
"geometry->getVertexArray()" returns an empty array and "settings._vertices" 
becomes empty.
In debug an assert stops the execution (see stack trace), in release the 
execution continue but the geometry is not shown


Code:

void LineSegmentIntersector::intersect(osgUtil::IntersectionVisitor& iv, 
osg::Drawable* drawable,
   const osg::Vec3d& s, const osg::Vec3d& e)
{
if (reachedLimit()) return;

LineSegmentIntersectorUtils::Settings settings;
settings._lineSegIntersector = this;
settings._iv = &iv;
settings._drawable = drawable;
settings._limitOneIntersection = (_intersectionLimit == 
LIMIT_ONE_PER_DRAWABLE || _intersectionLimit == LIMIT_ONE);

osg::Geometry* geometry = drawable->asGeometry();
if (geometry)
{
settings._vertices = 
dynamic_cast(geometry->getVertexArray());
}






Cheers,
Ale

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74635#74635




Attachments: 
http://forum.openscenegraph.org//files/stacktrace_370.txt


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org