Sign in to follow this  

point light source

This topic is 3460 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

If I create a point light source, will it be seen on the screen? (I want to create stars in the space, so a point light source could be like a star?)

Share this post


Link to post
Share on other sites
Probably not.

What you need to do, and what results you can expect, depend heavily on what you're actually doing... what code are you writing, what graphics API are you using, et cetera. Answer some of those questions and we may be able to provide more detailed, useful answers.

Chances are, however, that you will not see the light source itself. Traditionally in computer graphics, light sources are mathematical in nature -- that is, they are placed and exist, but you only see their impact on other objects around them. If you want an effect whereby you can see the bloom of the light itself, perhaps diffused through some kind of god or whatnot, you will need to implement that yourself.

If you just want to make a starfield, the typical methods are to use a skybox with a starscape texture on it, or to render point primitives (or perhaps sprites) in a background layer.

Share this post


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