Jump to content
  • Advertisement
Sign in to follow this  
kaizmpal

sphere emitting light

This topic is 4007 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, i'm trying to position a positional (point) light source inside a solid, moving sphere to make it seem as if the sphere is emitting light (i can't just use the emissive light property since this won't illuminate the rest of the scene), but i can't make the light from the light source escape the sphere. any help would be great. thanks

Share this post


Link to post
Share on other sites
Advertisement
OpenGL doesn't have built in shadowing for it's lighting solution (you have to specifically implement your own shadowing logic). So, whether or not the light is inside some object shouldn't make a difference.

If you move the light outside of the object does the scene light correctly?
Do you have a shadowing algorithm running?
If so, disable shadow casting by that object.

-me

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!