[osg-users] question about black-out(BO) of airport runway(light control)

2013-10-31 Thread Kim JongBum
Hi, guys

i m trying to develop flight simulation with osg.

for the airport, i load .txp(terrain) with .flt(airport).
and there are black-out(BO) at the airport runway.
for more information, i attached the pciture of black-out(BO) of airport runway.

so my question is 
is it possible to control the black-out(BO) of airport runway(light control)?
i want to turn on(or off) the light.

Thanks in advance guys ; )

Cheers,
Kim

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57036#57036




Attachments: 
http://forum.openscenegraph.org//files/blackout_airport_runway_211.jpg


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


Re: [osg-users] [osgPlugins] Plugin vrml

2013-10-31 Thread Jan Ciger
On Thu, Oct 31, 2013 at 11:06 AM, Mathieu MARACHE  wrote:

> Hi,
>
> Old topic but I ran into the same issue. Browsing the OpenVRML code it
> NEEDS the environnement variable OPENVRML_DATADIR set to the path
> containing the components directory (which has all the xml files for the
> nodes). It can also be set in the registry key
> "HKLM\SOFTWARE\OpenVRML\OpenVRML\Datadir"
>
> HTH
> Regards,
>

What issue are you referring to? The compilation error with Visual C++ 2010
I was commenting on? I doubt that would require the above-mentioned env.
variable.

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


Re: [osg-users] Troubles with shadows migrating on 3.2.0.

2013-10-31 Thread Wojciech Lewandowski
I am an author of LISPSM and I do not totally agree with your Robert. I
know cases where LispSM or MSM still works better (flight sims with
sparsely filled frustum). I admit LispSM has many weak points so usually do
not respond to your comments but I just snapped. On that particular issue I
believe that commented line 60 in StandardShadowMap.cpp may be the culprit.
And no, I did not comment that line. Somebody else did and it was commited
into OSG source then.

Wojtek


2013/10/31 Robert Osfield 

> Hi Dario,
>
> I'm not the author of the LSPSM technique so can't really help debug it
> specifically.  From looking at the two images it looks like the 3.2.x
> version is not providing an ambient component for lighting.  In general
> with shadows you will need to provide your own shaders, so I'd guess with
> the right shader this issue would go away.
>
> I am the original author of the VDSM technique though so would have a
> better chance of doing support with it.  It's been extended a bit by Rui
> Wang since I wrote it too, so he might also be able to help with debugging
> of VDSM usage. The VDSM technique was written because of weaknesses in the
> LSPSM approach that couldn't be resolved so works better across a great
> range of datasets.  I would recommend that you move across.
>
> Robert.
>
>
> On 31 October 2013 16:10, Dario Minieri  wrote:
>
>> Hi,
>>
>> No, in this example I have no custom shadersif I try to use my own
>> custom shaders based on 3.0.1rc3 lspsm I receive a "Warning: detected
>> OpenGL error 'invalid operation' at after RenderBin::draw(..)" and the
>> screen comes obviously black. So, right now, I'll be happy if shadows
>> re-work without others complications.
>>
>> Sorry for low quality attach, but this one give you the idea.
>>
>> Thank you!
>>
>> Cheers,
>> Dario
>>
>> --
>> Read this topic online here:
>> http://forum.openscenegraph.org/viewtopic.php?p=57030#57030
>>
>>
>>
>>
>> ___
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Troubles with shadows migrating on 3.2.0.

2013-10-31 Thread Robert Osfield
Hi Dario,

I'm not the author of the LSPSM technique so can't really help debug it
specifically.  From looking at the two images it looks like the 3.2.x
version is not providing an ambient component for lighting.  In general
with shadows you will need to provide your own shaders, so I'd guess with
the right shader this issue would go away.

I am the original author of the VDSM technique though so would have a
better chance of doing support with it.  It's been extended a bit by Rui
Wang since I wrote it too, so he might also be able to help with debugging
of VDSM usage. The VDSM technique was written because of weaknesses in the
LSPSM approach that couldn't be resolved so works better across a great
range of datasets.  I would recommend that you move across.

Robert.


On 31 October 2013 16:10, Dario Minieri  wrote:

> Hi,
>
> No, in this example I have no custom shadersif I try to use my own
> custom shaders based on 3.0.1rc3 lspsm I receive a "Warning: detected
> OpenGL error 'invalid operation' at after RenderBin::draw(..)" and the
> screen comes obviously black. So, right now, I'll be happy if shadows
> re-work without others complications.
>
> Sorry for low quality attach, but this one give you the idea.
>
> Thank you!
>
> Cheers,
> Dario
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=57030#57030
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Troubles with shadows migrating on 3.2.0.

2013-10-31 Thread Dario Minieri
Hi,

No, in this example I have no custom shadersif I try to use my own custom 
shaders based on 3.0.1rc3 lspsm I receive a "Warning: detected OpenGL error 
'invalid operation' at after RenderBin::draw(..)" and the screen comes 
obviously black. So, right now, I'll be happy if shadows re-work without others 
complications.

Sorry for low quality attach, but this one give you the idea.

Thank you!

Cheers,
Dario

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57030#57030



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


Re: [osg-users] Problem showing a dashed line in the scene

2013-10-31 Thread Adri CS
Hi!

Thanks Robert for pointing out the OpenGL docs. I managed to show the
"dashed" line.

Here's the final code:

osg::ref_ptr dash_points = new osg::Vec3Array;

osg::ref_ptr dash_color = new osg::Vec4Array;

osg::ref_ptr dash_geometry( new osg::Geometry);

dash_color->push_back(osg::Vec4f(0.0,0.0,1.0,1.0));

dash_points->push_back(P1);

dash_points->push_back(P2);

dash_geometry->setVertexArray(dash_points.get());

dash_geometry->setColorBinding(osg::Geometry::BIND_OVERALL);

osg::ref_ptr linestipple( new
osg::LineStipple(2, 0x) );


dash_geometry->getOrCreateStateSet()->setAttributeAndModes(linestipple.get(),
osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE );

dash_geometry->addPrimitiveSet( new
osg::DrawArrays(GL_LINES,0,dash_points->size()) );

dash_geometry->getOrCreateStateSet()->setAttributeAndModes( new
osg::Point(5.0f) );

dash_geometry->addPrimitiveSet(new osg::DrawArrays(GL_POINTS, 0,
dash_points->size()));

dash_geometry->setColorArray(dash_color.get());
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Troubles with shadows migrating on 3.2.0.

2013-10-31 Thread Robert Osfield
HI Dario,

Are you providing your own shaders?

Could you post pictures of 3.0.1-rc3 for comparison.

Have you tried the new ViewDepedentShadowMap, this is now the most robust
and powerful shadow technique we have, it's not part of 3.0.x.

Robert.


On 31 October 2013 12:19, Dario Minieri  wrote:

> Hi,
>
> I attach a snapshot for example...This is the actual situationwith
> 3.0.1rc3 looks correctly
>
> Thank you!
>
> Cheers,
> Dario
>
> --
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=57026#57026
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Disabling shadows for text

2013-10-31 Thread Trajce Nikolov NICK
Hi Anders,

Try putting an empty osg::Program in the stateset for the text geodes

Nick


On Thu, Oct 31, 2013 at 11:24 AM, Anders Backman  wrote:

> Hi all.
>
> Assume I want to add text following an object in the scenegraph, so I
> create a geode with text below a MatrixTransform in the scene.
>
> Now assume I want to disable shadows (when ShadowMap) for the text
> (obviously).
> Is the only way to do that, to have a separate graph for the text (without
> a ShadowedScene node above)?
>
> The setReceivesShadowTraversalMask does not apply for ShadowMap (which I
> noticed after some testing).
> But is there any other way?
>
> /Anders
>
>
> --
> __
> Anders Backman, HPC2N
> 90187 Umeå University, Sweden
> and...@cs.umu.se http://www.hpc2n.umu.se
> Cell: +46-70-392 64 67
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


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


[osg-users] Disabling shadows for text

2013-10-31 Thread Anders Backman
Hi all.

Assume I want to add text following an object in the scenegraph, so I
create a geode with text below a MatrixTransform in the scene.

Now assume I want to disable shadows (when ShadowMap) for the text
(obviously).
Is the only way to do that, to have a separate graph for the text (without
a ShadowedScene node above)?

The setReceivesShadowTraversalMask does not apply for ShadowMap (which I
noticed after some testing).
But is there any other way?

/Anders


-- 
__
Anders Backman, HPC2N
90187 Umeå University, Sweden
and...@cs.umu.se http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPlugins] Plugin vrml

2013-10-31 Thread Mathieu MARACHE
Hi,

Old topic but I ran into the same issue. Browsing the OpenVRML code it
NEEDS the environnement variable OPENVRML_DATADIR set to the path
containing the components directory (which has all the xml files for the
nodes). It can also be set in the registry key
"HKLM\SOFTWARE\OpenVRML\OpenVRML\Datadir"

HTH
Regards,

--
nǝıɥʇɐƜ


On 1 February 2013 22:08, Jan Ciger  wrote:

> On 01/31/2013 10:20 PM, lucie lemonnier wrote:
>
>> I compiled openvrml-0.17.12 with visual studio 2008 without problem.
>> When I try to compile  openvrml-0.17.12 with visual studio 2010, I have
>> this error in compilation several times :
>> "typename cannot be used outside a template declaration"
>> Does that tell you something?
>>
>
> That sounds like some non-standard C++ code in OpenVRML. However, that
> version is quite old, try a more recent one. That particular bug may have
> been fixed since then - the version 0.18.7 has this in the changelog: "This
> release includes changes to build against XULRunner 2.0, project files for
> Visual C++ 2010, and minor bug fixes."
>
> Regards,
>
> Jan
>
> __**_
> osg-users mailing list
> osg-users@lists.**openscenegraph.org 
> http://lists.openscenegraph.**org/listinfo.cgi/osg-users-**
> openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem showing a dashed line in the scene

2013-10-31 Thread Robert Osfield
Hi Adri,

The naming convention used for OSG state classes is the same as OpenGL, so
for osg::LineStipple maps to glLineStiple.  To search for the meaning of
the associated functionality you can then simply look up OpenGL docs on
glLineStiple.

Robert.


On 31 October 2013 09:17, Adri CS  wrote:

> Hi Lauren!
>
> Thanks for your comment. Now I can see a solid line.
>
> A few questions:
>
> 1) What are the "factor" and "pattern" attributes in the LineStipple? In
> the doxygen docs (
> http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00466.html)
> there's no explanation about them.
>
> 2) Now, to show a dashed line, is that the correct code? Am I missing
> something?
>
> Thanks and best regards!
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Problem showing a dashed line in the scene

2013-10-31 Thread Adri CS
Hi Lauren!

Thanks for your comment. Now I can see a solid line.

A few questions:

1) What are the "factor" and "pattern" attributes in the LineStipple? In
the doxygen docs (
http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00466.html)
there's no explanation about them.

2) Now, to show a dashed line, is that the correct code? Am I missing
something?

Thanks and best regards!
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org