Thanks a lot for your hint about the viewer.
In batch mode the viewer wasn't completely initialized and I initially looked
at the wrong place.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64607#64607
Hi Sebastian,
the sample code is called asynchronously from several compute threads.
When I make sure that only one thread at a time calls accept() everything is
rock solid (millions of calls). But it's running slowly and doesn't scale well
with the number of cores.
Without the lock the
Hi folks,
should the IntersectionVisitor and LineSegmentIntersector be threadsafe?
With the multithreaded pseudocode below everything works fine with the
ScopedLock. If I disable the ScopedLock I get wrong results.
Thank you!
Cheers,
Matthias
Code:
osg::Vec3d dummy;
Hi,
I'ld like to have the triangles in the code below drawn colored on both sides.
As the normals are pointing towards the triangles one side gets painted black,
even though osg::Material::FRONT_AND_BACK is specified.
Do you have an idea how I can achieve this?
Thank you!
Cheers,
Matthias
//
This works with the sample listing provided for the forum.
Thanks!
Now I have to check what I'm doing differently in my main application where it
still doesn't work.
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51189#51189
After playing around a bit I notice that I get some triangles in clockwise
order.
If you replace the first 3 vectors of osg::Vec3 myCoords[] with
// note in clockwise order.
osg::Vec3(-1.11644, 9.18133e-09, -0.716827),
osg::Vec3(-0.95165, -2.15188e-09, -0.840418),
osg::Vec3(-1.12056,
A further investigation reveals that I get the winding order of the vertexes
and the orientation of the normals (towards or away from the triangle)
completely random from an upstream system.
And I somehow need to display this nicely. Has anybody an idea how I can do
this easily without
Did you try to strip your generated binary?
The command is just:
Code:
strip programfile
in the commandline.
If you're building dynamic you might strip the generated libs too. I'm not sure
if you can still dynamically link against stripped dynamic libs though. So keep
the original lib
Hi folks,
I got a similar problem. Some parts of my model are always black. Despite
setting the front and back color.
@Shayne: I've enabled both ambient and diffuse color. And turning the model
around (which changes the direction to the light source) doesn't change the
color of the black
9 matches
Mail list logo