I want to add light such as headlamp which moves with camera in my scene.
I'm finding available topics for this now. But if any body can teach me, I would appreciate it.
Can I add OSG light on any location(lon/lat/alt)? or Any other solutions? How can I do that?
Please teach me!
I added phong light of osgearth_light into my scene.
It works fine. But textures of some objects was disappeared. Please look my screenshot.
- All green texts were displayed as green rectangles
- All textures of the ship(*.obj) was disappeared, shown as gray
How can I fix it? Please teach me.
Thanks for your quick response. It's very interesting.
The ship texture was rendered normally, but not text. Please look my attached screenshot.
Texts were still displayed as green rectangles. My code:
osg::ref_ptr<osg::Geode> geoText = new osg::Geode();
When I turn on osgearth_lights, all texts are displayed as rectangle and are bright.
When I turn on/off this light, all osg::Boxes are bright, illuminate.
How can I fix it?
Is this issue of osgearth_lights?
I've fixed my issues. Thanks for your teaching.
And I have a question about "osgEarth::Registry::shaderGenerator().run( myNode );"
I want to run and stop register shader generator.
How can I stop shaderGenerator?
I want turn on/off osgearth light.
But when I turn on/off light, some texts was oddy.
How can I fix it? So now I removed child node for texts from map node and light.
But texts are always bright.
Thank you for your teaching.