Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

JafferAB

Creating A Sun!

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

Im gonna attempt to create a sun in opengl, with all relevant physics and such, i was just wondering about what the best way to do this would be? i could create a helluva lot of particles, add the gravity and rules etc and let it do its thing, but that would take alot of processing power no doubt, so what dyou think the best way would be ? (to draw a sun) thanks

Share this post


Link to post
Share on other sites
Advertisement
Model the greater part as a sphere, and use some sneaky volumetric techniques for solar flares, corona, etc.

Share this post


Link to post
Share on other sites
quote:
Original post by JafferAB
Im gonna attempt to create a sun in opengl, with all relevant physics and such

Thousands of articles have been written on the Sun. It's much more complex than you may think. I'm working with my teacher on the solar cycle this summer, and really, there are dozens of major approximations in the simulation, we're not trying to model "everything", but a very specific aspect, the code is thousand of lines long, and it fails to be accurate on many, many accounts.

If you want something that looks good (this is what you should want), you'll have to use some tricks, which are dependant on the context of your game. What are you creating?

Cédric

[edited by - Cedric on July 27, 2003 10:30:13 PM]

Share this post


Link to post
Share on other sites
Yeah do you want a graphical representation (reasonably straight-forward), a long distance physical representation (easy), a short range physical representation (pretty complex to get surface shape) or an internal representation (very tough and requires reading on Uni-level astrophysics)?

Share this post


Link to post
Share on other sites

  • 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!