[osg-users] ShadowedScene with CastsShadowTraversalMask

2011-10-25 Thread Katja Oechsner
Hi, 

I am using osgShadow::ShadowedScene to render shadows. This works fine with 
every technique as long as I am not using a castsShadowTraversalMask. If I 
set the mask to anything diffrent than 0x the shadow looks like a 
quad.The correct nodes casts shadows but the shadow looks wrong. It seems 
that the shadow is the quad around the shadow. I tried diffrent techniques 
but it is the same result. 

Any suggestions what I am doing wrong? Here is the part of my code:

   // add shadowed scene 
   osgShadow::ShadowedScene *shadowedScene = new osgShadow::ShadowedScene();
   shadowedScene-setReceivesShadowTraversalMask(receiveShadow);
   shadowedScene-setCastsShadowTraversalMask(castShadow);
   shadowedScene-cleanSceneGraph();
...
   osg::Box* boxGeometry = new osg::Box(osg::Vec3(0.0f, 0.0f, 0.0f), width, 
length, height);
   osg::ShapeDrawable* boxDrawable = new osg::ShapeDrawable(boxGeometry);
   osg::Geode* boxGeode = new osg::Geode();
   boxGeode-addDrawable(boxDrawable);
   boxGeode-setNodeMask(Visible | castShadow);
   shape-setGeometryNode(boxGeode);

I defined 
receiveShadow=1
castShadow=2
visible=32

The NodeMask is set to visible ( 0x ) and to castShadow. If I am not 
setting the mask to visible, my render will hide this object but the shadow 
looks the same. 

Thanks in advance
Katja


-- 
VISUAL ENGINEERING SOLUTIONS - Wir machen Innovation sichtbar!

_
Katja Kristin Oechsner  |  VISENSO GmbH  | Nobelstr. 15 | D-70569 Stuttgart

Fon Office   ++ 49 - 711 - 849 700 0
Fon Direct   ++ 49 - 711 - 849 700 24
Fax Office   ++ 49 - 711 - 849 700 79

k...@visenso.de | http://www.visenso.de
__
Geschäftsführer: Dr. Andreas Wierse, Martin Zimmermann
Registergericht: Amtsgericht Stuttgart
Registernummer: HRB 720380
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] map text to geometry

2010-09-28 Thread Katja Oechsner

 Hi,

I want to map a osgText to a geometry, for example a sphere. My idea was 
to get a texture out of osgText and map the texture to a geometry. Is 
there a better way to do this? And how do I get a texture out of osgText?


thanks in advance
Katja

--
VISUAL ENGINEERING SOLUTIONS - Wir machen Innovation sichtbar!

_
Katja Kristin Oechsner  |  VISENSO GmbH  | Nobelstr. 15 | D-70569 Stuttgart

Fon Office   ++ 49 - 711 - 849 700 0
Fon Direct   ++ 49 - 711 - 849 700 24
Fax Office   ++ 49 - 711 - 849 700 79

k...@visenso.de | http://www.visenso.de
__
Geschäftsführer: Dr. Andreas Wierse, Martin Zimmermann
Registergericht: Amtsgericht Stuttgart
Registernummer: HRB 720380

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Displaysetting CHECKERBOARD

2009-08-06 Thread Katja Oechsner

Hey everyone,

I have a problem with the Displaysetting CHECKERBOARD. I have a dpl-tv with 
stereo glasses and need to use the checkerboard-option for this. I am using 
one window with two channels, one for each eye. The StereoMode is for both 
channels checkerboard, stencil is 8 and the quadbuffer is true. The problem 
is, that I see both views (left and right) on the same channel and nothing 
on the other channel. I used the same configuration with stereomode 
vertical_interlace and it worked fine.
If I set quadbuffer to false, I see the same picture on both channels (no 
stereo separation), but at least there is a picture on both channels.
I think that I just configured something wrong. Which traits-option could be 
wrong? Maybe someone could send me an example, where checkerboard works.


I allready checked the example osgViewerQT and couldn't find any difference.

Thanks in advance
Katja


VISUAL ENGINEERING SOLUTIONS - Wir machen Innovation sichtbar!

_
Katja Kristin Oechsner  |  VISENSO GmbH  | Nobelstr. 15 | D-70569 Stuttgart

Fon Office   ++ 49 - 711 - 849 700 0
Fon Direct   ++ 49 - 711 - 849 700 24
Fax Office   ++ 49 - 711 - 849 700 79

k...@visenso.de | http://www.visenso.de
__
Geschäftsführer: Dr. Andreas Wierse, Martin Zimmermann
Registergericht: Amtsgericht Stuttgart
Registernummer: HRB 720380 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org