OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Lightning


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Latha Rani
Newbie


Joined: 19 Nov 2016
Posts: 8

PostPosted: Thu Apr 13, 2017 4:51 am    Post subject:
Lightning
Reply with quote

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
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11238

PostPosted: Thu Apr 13, 2017 6:50 am    Post subject:
Lightning
Reply with quote

Hi Latha,

Have a look at the osglight example.

Robert

On 13 April 2017 at 05:51, Latha Rani Baddala <> wrote:
Quote:
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








------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
SMesserschmidt (Sebastian Messerschmidt)
Forum Moderator


Joined: 10 Sep 2013
Posts: 796

PostPosted: Thu Apr 13, 2017 7:05 am    Post subject:
Lightning
Reply with quote

Hi Latha,


Quote:
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
Quote:

Thank you!

Cheers,
Latha

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









------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts questions about lightning(thunder) kim jong bum General 2 Wed Jun 05, 2013 6:17 am View latest post
No new posts [Fwd: Re: Write to texture file for ... Ice-D General 0 Mon Dec 28, 2009 10:04 pm View latest post
No new posts Write to texture file for lightning Ice-D General 12 Mon Dec 28, 2009 2:20 pm View latest post
No new posts OSG lightning Ice-D General 0 Sat Dec 19, 2009 10:26 am View latest post
No new posts Need a hint on lightning Cervantes Pintor Pedro General 1 Tue Jun 23, 2009 1:06 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP