[osg-users] [osgPlugins] Lua: deterministic destruction of the script engine / leaks caused by circular references

2019-09-19 Thread Hannes Pabst
Consider the following Lua script: Code: function makeObjectWithCallback() local object = new "osg::Object" function object:process() print "Hello" end return object end The function makeObjectWithCallback will create an osg::Object which has a LuaCallbackObject nam

Re: [osg-users] Custom cursor problem?

2019-09-19 Thread Remo Eichenberger
Hi Tom When you use windows you can look on such code: graphicsWindowWin32->setCursor(osgViewer::GraphicsWindowWin32::MouseCursor::LeftArrowCursor); https://github.com/openscenegraph/OpenSceneGraph/blob/master/src/osgViewer/GraphicsWindowWin32.cpp#L2364 and try to understand Win32 of Microsoft

Re: [osg-users] glClampColor with GL CORE profile

2019-09-19 Thread Chris Djali
Hi, Somehow I missed the several parts about you intentionally using a core profile. I guess the most reasonable thing to do is submit an issue report that https://github.com/openscenegraph/OpenSceneGraph/blob/OpenSceneGraph-3.6/src/osg/ClampColor.cpp#L52-L53 should be fenced off so they don't

Re: [osg-users] glClampColor with GL CORE profile

2019-09-19 Thread D. Christopher Fennell
Hello, I am using the core profile bit. It is my intention be be completly GL core, with no deprecated behavior. The libraries are compiled with OSG_GL3_AVAILABLE enabled. The glClampColor is the only problem I've seen so far with the invalid enumerant. Thanks, DC -- Read this

Re: [osg-users] glClampColor with GL CORE profile

2019-09-19 Thread Chris Djali
Hi, Are you definitely creating an OpenGL context with either a version less than or equal to 3.0, or as a compatibility profile? This sounds to me like you've got a core profile, so don't have access to old deprecated stuff, but are trying to use it anyway. Cheers, Chris -- R

Re: [osg-users] Custom cursor problem?

2019-09-19 Thread Robert Osfield
Hi Tom, The osgPresentation::Cursor is a textured quad geometry rendered as part of the 3D scene, it's not a conventional desktop cursor. You should use a image format like .png or .jpg to specify the image. Robert. On Thu, 19 Sep 2019 at 17:53, tom joe < akilan.arokiasw...@community.isunet.edu

Re: [osg-users] Custom cursor problem?

2019-09-19 Thread tom joe
Hi, my code sample is, std::string cursorFileName = "./crosshair.cur"; osgPresentation::Cursor*cur = new osgPresentation::Cursor(cursorFileName, 20.0f); -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=76712#76712 _

Re: [osg-users] questions about developing drivers for osg/osgEarth

2019-09-19 Thread speter...@idealaero.com
So, I theorize that you are loading a 2d vector field as a data layer, that represents the 2D wind velocity vector at every data grid point covering the area, and then you use some kind of shader to display that as a colorfield and displays the moving flow lines? And then you update the 2d vecto

[osg-users] glClampColor with GL CORE profile

2019-09-19 Thread D. Christopher Fennell
Hello, I get an "invalid enumerant" when running glClampColor in GL core profile. This occurs when GL_CLAMP_VERTEX_COLOR and GL_CLAMP_FRAGMENT_COLOR are applied. GL reference page says this will happen if anything but GL_CLAMP_READ_COLOR is used, but that may be old info. Also, I do not see tho

Re: [osg-users] questions about developing drivers for osg/osgEarth

2019-09-19 Thread Chris Hanson
Ok. That helps a lot. Thanks. So, I theorize that you are loading a 2d vector field as a data layer, that represents the 2D wind velocity vector at every data grid point covering the area, and then you use some kind of shader to display that as a colorfield and displays the moving flow lines? And

Re: [osg-users] [OSG 3.6.3 Core Profile GL 3+] Weird clipping behaviour in Fragment Shader

2019-09-19 Thread Glenn Waldron
GL_CLIP_PLANE0 is deprecated in GL3+ and unavailable in CORE profile. Instead, use GL_CLIP_DISTANCE0, pass your clip plane into your shader in a uniform, and use it to set gl_ClipDistance[0]. Example: https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/ClipPlane.glsl Glenn Waldron /

Re: [osg-users] questions about developing drivers for osg/osgEarth

2019-09-19 Thread speter...@idealaero.com
Oh also need to add this needs to be updated dynamically over time. 15-30 min intervals based on new data that gets pushed into the driver we are making and have the effects updated dynamically instead of having to reload from files and earth files. We have accomplished this via files but it i

Re: [osg-users] questions about developing drivers for osg/osgEarth

2019-09-19 Thread speter...@idealaero.com
https://www.ventusky.com/?p=36;-104;2&l=wind-10m&t=20180324/0600 Something similar to the wind on this website displayed on osgearth. Can be placing different calculations of trails and animations of the trail progress etc. To show the possible routes generated and data calculated. This is th

Re: [osg-users] questions about developing drivers for osg/osgEarth

2019-09-19 Thread Chris Hanson
You're still describing what you're trying to to do solve the problem, but not what the problem is. Your solution seems to involve a traveling dynamic piece of geospatial data. But generally, geospatial data is not traveling or dynamic. So, you're possibly fighting limitations in the design of th

Re: [osg-users] questions about developing drivers for osg/osgEarth

2019-09-19 Thread speter...@idealaero.com
Hi Chris, Well just trying to get something simple to work first so let’s just continue with what I was attempting with that code I posted before. There will be a periodic chunk of data that comes in. This data will be programmically used to generate a bitmap or bitmap array in memory. Goal i

Re: [osg-users] Custom

2019-09-19 Thread Robert Osfield
Hi Tom, There isn't any way for us to know what might be amiss as you haven't given any info about what you are assigning as a custom cursor. Could you create a small example code that illustrates the problem you are having. Robert. On Wed, 18 Sep 2019 at 20:04, tom joe < akilan.arokiasw...@com

Re: [osg-users] [build] Building OSG 3.6.4 in Win64 TDM GNU.

2019-09-19 Thread Raymond de Vries
Hey Zachary, You could do yourself a favor and check how many messages you sent about this subject. And therefore how much time you have been asking from the people in the (very friendly and patient) community of the OSG. Let's speak for myself, answering one of your questions "Are there even