Re: [osg-users] Lightning
Hi Latha, Hi, I am working on 'Lighting' to blink lights on a sphere by making osg::StateAttribute ON and OFF ,its working fine.But i am not able to make that sphere itself as light souce(means from sphere light is not diffusing,just it is blinking),how to apply different light properties. If you need the Sphere to be a self-illuminated geometry you need to set the emissive-material properties (osg::Material. Alternatively you might want to check osgSim::LightPoint. Cheers Sebastian Thank you! Cheers, Latha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70758#70758 ___ 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] Lightning
Hi Latha, Have a look at the osglight example. Robert On 13 April 2017 at 05:51, Latha Rani Baddalawrote: > Hi, > I am working on 'Lighting' to blink lights on a sphere by making > osg::StateAttribute ON and OFF ,its working fine.But i am > not able to make that sphere itself as light souce(means from sphere light is > not diffusing,just it is blinking),how to apply different light properties. > > Thank you! > > Cheers, > Latha > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=70758#70758 > > > > > > ___ > 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] Lightning
Hi, I am working on 'Lighting' to blink lights on a sphere by making osg::StateAttribute ON and OFF ,its working fine.But i am not able to make that sphere itself as light souce(means from sphere light is not diffusing,just it is blinking),how to apply different light properties. Thank you! Cheers, Latha -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=70758#70758 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Lightning problem with camera point of view
Hi, thanks for the help, but it still is not solved. i now generate the plane using some for loops that create triangle strips, but the result is the same (even if I set the distance between vertices to 1, which creates a ground plane of 2M polygons). any other ideas? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=7723#7723 attachment: renderingquestion2.jpg___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Lightning problem with camera point of view
Using 3ds max, applying modifier Edit Normal - Unify, I do not have my old lighting problem. (exported as .osg file with osgExp from 3ds max 9) Don't know why this is necessary ... because normals still exist before I decided to Unify them... Vincent. 2009/3/2 Jonatan osgfo...@tevs.eu: There must be a solution to it. If I load a wavefront file of a plane (4 vertices), the lighting works as it should. For now I will use that approach, but still I am wondering what is missing in my plane generation code. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=7739#7739 ___ 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] Lightning problem with camera point of view
jonim8or wrote: I have the same problem, with lights switching on and off for one shape in my scene. I have a similar problem in a scene with large flat terrain areas. When there is no vertex in close view it seems that OpenGL can't determine the appropriate lighting for the surface and therefore doesn't. Adding points with normals to the large area solves the problem. HTH, -- Steven Saunderson -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=7681#7681 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Lightning problem with camera point of view
Hi, 2009/2/24 Jason Daly jd...@ist.ucf.edu: Jean-Sébastien Guay wrote: I imagine that any modeling software should have a tool to generate/smooth normals. 3DS Max, Blender, Maya, ... It's pretty basic functionality. In Creator it's called Calculate Shading, but it may be called something else in other modeling software. I think 3ds Max calls them smoothing groups. I think smoothing modifier is just a normal auto-modifier to have a smooth illusion, but I'm searching at a way to be sure normal are created and exported in my OSG/IVE model from 3ds max with osgExp If you have any idea... It would be nice :-) Thanks Regards, Vincent. --J ___ 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] Lightning problem with camera point of view
Hi Vincent, I use 3 lights in the scene, but sometimes there is some lighting strange behavior, depending a very little camera orientation change... From the screenshots I can't say if this is your problem, but I have sometimes seen some cases where moving the camera just a little bit would make an object flash - i.e. the lighting would be dark then light then dark then light. I have found that this was often caused by the model not having vertex normals in it. In my case I would fix it by opening the model in MultiGen Creator and using the Calculate Shading tool, which calculates vertex normals for the model, and resaving it. In my case, this problem did not appear when using the fixed pipeline. I assume that's because the fixed pipeline can handle cases where the model has only face normals just fine, whereas my shaders assumed that vertex normals were available, and in the case of some models that wasn't true. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Lightning problem with camera point of view
Hi Jean Sebastien. I don't know anything about multi gen creator... it is not an OSG plugin right ? It a free one ? google give me answers but I don't see anything about a free product. Is there any equivalent in OSG ? Thanks. Regards, Vincent. 2009/2/24 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Hi Vincent, I use 3 lights in the scene, but sometimes there is some lighting strange behavior, depending a very little camera orientation change... From the screenshots I can't say if this is your problem, but I have sometimes seen some cases where moving the camera just a little bit would make an object flash - i.e. the lighting would be dark then light then dark then light. I have found that this was often caused by the model not having vertex normals in it. In my case I would fix it by opening the model in MultiGen Creator and using the Calculate Shading tool, which calculates vertex normals for the model, and resaving it. In my case, this problem did not appear when using the fixed pipeline. I assume that's because the fixed pipeline can handle cases where the model has only face normals just fine, whereas my shaders assumed that vertex normals were available, and in the case of some models that wasn't true. Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.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] Lightning problem with camera point of view
Hi Vincent, I don't know anything about multi gen creator... it is not an OSG plugin right ? It a free one ? google give me answers but I don't see anything about a free product. Is there any equivalent in OSG ? Hehehe... No, Creator is a 3D modeling software. What I was saying is that when a model has bad / inexistent normals, I have to go in the modeling software and generate normals for it. In my case, our models are in OpenFlight (.flt) format which is the native format of MultiGen Creator (which is a de-facto standard in simulation, and which is read natively by OSG too) so I use that software, but it was just an example. Sorry for misleading you... J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Lightning problem with camera point of view
Ok thanks Jean-Sébastien, I'll have a look if I have someting to edit/generate normals. maybe 3ds max can give a good result ... Thanks for you help :-) Regards, Vincent. 2009/2/24 Jean-Sébastien Guay jean-sebastien.g...@cm-labs.com Hi Vincent, I don't know anything about multi gen creator... it is not an OSG plugin right ? It a free one ? google give me answers but I don't see anything about a free product. Is there any equivalent in OSG ? Hehehe... No, Creator is a 3D modeling software. What I was saying is that when a model has bad / inexistent normals, I have to go in the modeling software and generate normals for it. In my case, our models are in OpenFlight (.flt) format which is the native format of MultiGen Creator (which is a de-facto standard in simulation, and which is read natively by OSG too) so I use that software, but it was just an example. Sorry for misleading you... J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.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] Lightning problem with camera point of view
Hi Vincent, I'll have a look if I have someting to edit/generate normals. maybe 3ds max can give a good result ... I imagine that any modeling software should have a tool to generate/smooth normals. 3DS Max, Blender, Maya, ... It's pretty basic functionality. In Creator it's called Calculate Shading, but it may be called something else in other modeling software. J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Lightning problem with camera point of view
Jean-Sébastien Guay wrote: I imagine that any modeling software should have a tool to generate/smooth normals. 3DS Max, Blender, Maya, ... It's pretty basic functionality. In Creator it's called Calculate Shading, but it may be called something else in other modeling software. I think 3ds Max calls them smoothing groups. --J ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Lightning strike effect
Anyone have tips or other thoughts on implementing a lightning strike effect? ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org