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
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
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
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
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
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
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
_
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
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
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
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 /
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
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
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
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
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
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
17 matches
Mail list logo