Hi,
clone method is virtual and should return osg::Object*. you can dynamic cast
(or even static cast if you are sure) to PiGeometry*.
How can I force the program to call PiFaceGeometry::clone() if this is only a
child of object, on which I called clone()?
I am sorry If this question is
Shawn Kennedy writes:
Hi,
We use OSG for one of our products, and I recently upgraded it from
2.6.0 to 3.0.0. We are now running into a problem where a
Node-asGroup call which once returned non-zero is now returning zero.
I'm having difficulty debugging the issue and I'm wondering if
Hi,
if you check your program on memory leaks (for example with visual leak
detector) and don't find any leaks, it's probably fine.
The problem is in memory management. There are many things that can cause
increasing memory:
1) Creating any type of object or buffer on GPU is slow operation, so
On Dec 10, 2011, at 23:01 PM, Michael W. Hall wrote:
I have taken the OSGViewerQT example program and have tried to break it
into a nice example for myself.
I did something similar and put it here: https://github.com/kintel/QOsgWidget
Since it's a Qt app, it uses qmake, but apart from that I
Hi
IIRC osg by default tweaks projection matrix depending on window aspect ratio,
you can set desired behavior with camera-setProjectionResizePolicy(...)
Also you can check if viewport is actually same (there can be some difference
because of window decoration or something)
01.12.2011, 23:33,
Hi,
Short answer: there are no simple way,
You should get all drawables, grab all primitivesets and set instance count for
them, write shaders that make use of instanceID to calculate vertex position.
also with instanced drawing you should disable display lists, so for
performance reasons make
Hi
If you need to get same result as opengl FFP, you should add following line in
your vertex shader: gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;
IIRC you need #version 120 to use this. Then all clip planes enabled via
glEnable would work with shaders
07.12.2011, 22:36, Dave Jones
Hi all;
After several tries to post this mail to the group, i dont take it long: I
am developing a flight simulation. For some reason i have to create a chaff
flare just like an F-16 throws. It should be too bright but doesnt has to
lighten another objects in the scene. Smoke trail animation path
you caj also use the environment variable OSG_WINDOW, e.g.:
set OSG_WINDOW = 40 40 640 480
Note: space delimited.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44341#44341
___
osg-users mailing
Thanks for your input. I've upgraded from OSG 2.9.8 to 3.0.1 and the issue
seems to be gone...
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Filip Arlet
Sent: December-12-11 3:56 AM
To:
Object rotation is the last piece of this puzzle. When on object is placed on
a geocentric terrain using the methods outlined in this thread, the object
always appears to be oriented correctly upwards with respect to the center of
the earth. However I'm not sure how it is being oriented with
Hi All,
testing my code I realized the following code generates memory leaks.
Code:
osgWidget::Canvas w(test);
w.attachMoveCallback();
BOOST_CHECK_EQUAL(true, false);
If I remove the attachMoveCallback() line I don't have leaks.
Lookig at OSG code it seems the callback object is insert
Jaun,
A couple of suggestions here...
1) look at the source code for setViewMatrixAsLookAt(...) to understand
what it is doing with the input to create the view matrix. It calls a
method makeLookAt(...) which creates an orthonormal basis in the
rotation portion of the matrix from the
Hello everyone,
I've found three bugs while using OpenSceenGraph while running on Mac OS
X Lion (10.7.2). I'm posting them all in this message. Hopefully this is
ok.
1 - osgViewer::Viewer
Setting up a viewer without calling 'setUpViewOnSingleScreen()' will
display the current scene on
On 12/12/2011 8:37 AM, Ethan Fahy wrote:
Object rotation is the last piece of this puzzle. When on object is placed
on a geocentric terrain using the methods outlined in this thread, the object
always appears to be oriented correctly upwards with respect to the center of
the earth.
Hi Again
2. I use osgDB XmlPasser quite a bit for simple meta data stuff. Is there a
way to read an xml file from and archive? I usually read my xml files like
so
So I solved one of my problems, I used the present 3d plugin as inspiration to
write a simple plugin to wrap loading xmlinput
Hi Tom,
I now just have the issue that images referenced by .osg files are not loaded
from the archive, anyone have any advice? The images are referenced relative to
the .osg e.g. image\\diffuse.png
Have you seen Terry Welsh's thread on developing a virtual file system
plugin so that a zip
Hi,
Excuse me for posting this question as I'm just a beginner in the computer
graphics. Which threading model will give the best performance in a dual core
computer with Nvidia Quadro graphics card.
Also I have a doubt regarding the makeRotate for camera rotation. If I use
pitch,roll, yaw
18 matches
Mail list logo