Hi,
I am trying to use the SmoothingVisitor to generate the normals. I am not
explicitly setting the normals array. However, when rendered it appears as
though the normals generated are flipped. The geometry consists of triangle and
quad primitives.
I tried it in two ways.
Code:
Hi,
I got it to work. There were a number of things that I was doing wrong.
- The frames were going by too quickly. So a simple wait timer of 500 ms slowed
it down.
- There was an extra instance of MatrixTransform which was really a typo. That
is why the the initial position didn't seem to
Hi,
Thanks for the suggestions. I think the idea in both the responses was to get
enough frames so that it doesn't complete in a fraction of a second. So I tried
it but it still doesn't seem to work. I even inserted a wait time of a few
seconds between the frames but it didn't help.
However,
Hi,
I'm trying to simulate a rigid body motion (translation and rotation) based on
some Physics. Basically I have a number of bodies and a solve returns new
positions for these bodies. I'd like to update the MatrixTransform associated
with the bodies' nodes for each step which I'm hoping will
Hi Mourad ,
I got it to work. Thank you very much for your prompt responses.
Regards,
Ash
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18788#18788
___
osg-users mailing list
Hi,
I'm using PositionAttitudeTransform to add multiple instances of a geometry
node. It appears that the rotation and translation are specified with separate
methods, setAttitude() and setPosition() respectively. Is that correct?
Can it somehow be done with a single matrix like in homogeneous
Hi,
So I tried the MatrixTransform but it seems to skew the geometry.
When I tried a matrix shown below, I was expecting a simple rigid body
translation. But instead I got a display with massive extents.
osg::Matrixd mat;
mat.set ( 1, 0, 0, 0
0, 1, 0, 20,
0, 0, 1, 0,
Hi J.P. Delport,
Thank you. That was very helpful.
Cheers,
AP
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18185#18185
___
osg-users mailing list
osg-users@lists.openscenegraph.org
Hi,
I'm new to the OSG and just starting out with some simple examples.
The osgViewer::Viewer by default displays in full screen mode. But in my
application I want it to be a smaller window by default. How do I do that?
I found the event handler WindowSizeHandler which has the facility to
9 matches
Mail list logo