[osg-users] Meteor falling

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Fri Apr 15 00:39:39 PDT 2016


Hi Tony
> Hi Sebastian,
>    In my case I am trying to simulate an illumination shell dropping from a height and lighting the scene below for a given duration so I don't have a model. Is it just a case of creating a node at the desired position and add a lightsource to it as per the osglightsource example? The shell is a ball of light. Can I specify the size of the light? And how do I make it self illuminating?
If you don't need a modelled shell you simply need a group with a 
osg::Lightsource and an associated osg::Light. A light is not 
represented by a geometry, so if you need this, simply use a textured 
billboard with lighting disabled or a sphere/whatever with emissive 
colors defined. The lightsource example can show you the light source 
part. The rest is basic OpenGL knowledge and there are a lot of examples 
for this. If you have further osg-centric questions feel free to ask.

Cheers
Sebastian







More information about the osg-users mailing list