lines and points so if you want to export to .obj then you'll need to
stick to these types of objects in your scene graph.
Robert,
On Wed, Nov 25, 2009 at 5:34 AM, Ben Axelrod wrote:
> I have a scene that has some primitive shapes in it created with
> ShapeDrawables. When i save the
I have a scene that has some primitive shapes in it created with
ShapeDrawables. When i save the scene to a .obj file using
osgDB::writeNodeFile() the ShapeDrawables don't show up in the file, but the
floor plane i created with simple geometry does. If i save it to a .osg file
instead, then e
I am trying to view transparent objects inside of other transparent objects.
My objects are simple ShapeDrawables with some color and alpha transparency. I
am seeing strange behavior where the inner object is sometimes completely
hidden by the outer object depending on camera angle. Also, som
Thursday, March 26, 2009 5:07 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VRML Normal Issue
-BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ben Axelrod wrote:
> Can normals per primitive and normals per vertex both be used in a
> single shape?
Not that I am aware of.
>
>
SSAGE-----
Hash: SHA1
Hi,
Ben Axelrod wrote:
> Thanks for the info.
>
> I took a look at the code. Adding crease angle support does seem
> tricky since I think we would have to create new vertex points on the
> fly to accommodate 2 or more different normal vectors at that point.
ph Users
Subject: Re: [osg-users] VRML Normal Issue
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ben Axelrod wrote:
> Just to clarify, the way the normals *should* work is sketched in the
> attached image. Please verify.
>
> When the angle between 2 faces is sharper than the crease a
ph Users
Subject: Re: [osg-users] VRML Normal Issue
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ben Axelrod wrote:
> Just to clarify, the way the normals *should* work is sketched in the
> attached image. Please verify.
>
> When the angle between 2 faces is sharper than the crease a
Ben Axelrod wrote:
> Thanks for the info. Is this standard procedure with mesh files?
> Because I have noticed similar affects with a variety of file
> formats.
>
> I agree that when no normals are specified, the proper behavior for
> the parser is to use one normal per face,
...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jan Ciger
Sent: Saturday, March 21, 2009 12:23 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] VRML Normal Issue
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Ben,
Ben Axelrod wrote:
> I h
...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason Daly
Sent: Monday, March 23, 2009 3:24 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] ShadowMap Required OpenGL Extensions
Ben Axelrod wrote:
Thanks,
Do you think that changing the shadow texture size
-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason Daly
Sent: Monday, March 23, 2009 1:40 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] ShadowMap Required OpenGL Extensions
Ben Axelrod wrote:
I should probably specify the graphics cards in
...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ben Axelrod
Sent: Friday, March 20, 2009 12:42 PM
To: OpenSceneGraph Users
Subject: [osg-users] ShadowMap Required OpenGL Extensions
My application checks for the existence of some OpenGL extensions before
allowing ShadowMap to
I have noticed a very strange issue regarding VRML file rendering. This issue
happens in OSG viewer version 2.6, with openVRML version 0.14.3.
Please view the two attached vrml files and observe very different shading on
the 2 cubes. The only difference between the files is that in goodbox.vml
My application checks for the existence of some OpenGL extensions before
allowing ShadowMap to be turned on. So far, I have been using this test:
if (GL_EXT_framebuffer_object &&
(GL_ARB_fragment_program || GL_EXT_fragment_program) &&
(GL_ARB_fragment_program_shadow || GL_EXT_fragment_prog
I just get them right out of OpenGL. But you have to have the current OpenGL
context.
const char* extensions = (const char*)glGetString(GL_EXTENSIONS);
-Ben
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On
I have been using osgUtil::PickVisitor for a while now to pick objects in my
tree under the mouse. But now I need to cast a ray into the scene under the
mouse and manually intersect it with an imaginary plane. Is there some helper
function to do this mouse ray cast for me? Specifically, somet
...@lists.openscenegraph.org] On Behalf Of Robert Osfield
Sent: Thursday, March 05, 2009 3:48 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] strange object clipping
HI Ben,
On Thu, Mar 5, 2009 at 2:01 AM, Ben Axelrod wrote:
> Well, i tried it in osgviewer and there was no clipping. any ideas as
g box calculation of ShapeDrawable, but it could certainly be
an area to look into. Could you output the model to .osg, test this
in osgviewer to see if the problem still exists and if it does then
post this model so others can test against it.
Robert.
On Fri, Feb 27, 2009 at 9:10 PM, Ben Axelrod wrote:
&
if (light != NULL)
{
light->setAmbient(osg::Vec4(0,0,0,1));
light->setDiffuse(osg::Vec4(0,0,0,1));
light->setSpecular(osg::Vec4(0,0,0,1));
}
-Ben
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] O
I cannot seem to turn off the light in osg::View. I can change it between
headlight and sky light, but when I try NO_LIGHT, I still get the headlight.
_viewer->getCamera()->getView()->setLightingMode(osg::View::SKY_LIGHT); //works
_viewer->getCamera()->getView()->setLightingMode(osg::View::HE
When I don't have any lights in my scene, and my viewer's lighting mode is set
to no_light:
osgViewer::Viewer() ->
getCamera()->getView()->setLightingMode(osg::View::NO_LIGHT)
there is still some default lighting in the scene. Where does this light come
from, and how can I change it to be bri
Hi Jean,
Thanks for the list of extensions that you test for in the ShadowMap. However,
I have a graphics card that meets those requirements yet still does not render
ShadowMap shadows. Can you tell me if any of these extensions look like the
'smoking gun' as to why this card does not display
Thank you Jean and Gordon. I put those functions in my draw callback and now I
get some information. However, the behavior is very strange. It only works
the first time through. The rest of the time, they return null. Even weirder
is that if I click on another window, they work again for on
On Thu, 18 Sep 2008, Ben Axelrod wrote:
> When I try to load a VRML 1.0 file in OpenSceneGraph, it segfaults. I am
> using OpenSceneGraph 2.6, and OpenVRML 0.14.3. I have attached the file that
> causes the segfault, as well as the same file with some minor changes to make
> i
I would like to detect if the user has the appropriate openGL extensions in
order to do shadowing. However, when I do:
glGetString(GL_VERSION)
glGetString(GL_EXTENSIONS)
They return null. How can I get a list of the available extensions? Is there
an easy way to get this info from OSG?
Also,
I am seeing strange shadow artifacts on my model when I use a ShadowMap. The
artifacts get worse as I increase the size of my ground plane. You can see the
artifacts get progressively worse in these images:
http://www.benaxelrod.com/temp/3x3.png
http://www.benaxelrod.com/temp/5x5.png
http://ww
When I try to load a VRML 1.0 file in OpenSceneGraph, it segfaults. I am using
OpenSceneGraph 2.6, and OpenVRML 0.14.3. I have attached the file that causes
the segfault, as well as the same file with some minor changes to make it run
properly.
The segfault happens inside: osgDB::readNodeFile
Thank you for the tip. That environment variable flag helped me see that OSG
found the osgdb_vrml.so plugin, but then failed when loading the openvrml.so
library. I added that dir to my LD_LIBRARY_PATH and all is well!
(I don't seem to have the osgdb_wrl.so plugin by the way, but it does not l
I am trying to load a VRML file, but I get the error message:
Warning: Could not find plugin to read objects from file "foo.wrl".
I tried this in OSG code, as well as with osgconv and osgviewer. I have the
OSG lib and osgPlugins directories in my LD_LIBRARY_PATH.
I compiled OSG 2.6.0 from src
Hi,
I am trying to use a triangle mesh. And for some reason, it always shows up
black. Here is a snipit of code:
osg::ref_ptr _geode;
_geode = new osg::Geode();
osg::ref_ptr _trimesh;
_trimesh = new osg::TriangleMesh();
osg::ref_ptr _SD;
_SD = new osg::ShapeDrawable(_trimesh.get(
I noticed that OSG 2.2 does not properly calculate the normals of VRML files.
It seems like it points all the normals at (0, -1, 0). This is only when the
normals are not explicitly specified in the file. If you open a VRML file like
this in osgviewer, you can see that the coloration of the m
31 matches
Mail list logo