Jump to content
  • Advertisement
Sign in to follow this  
johnnyBravo

How to fake a perfectish sphere?

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

I want to draw fake spheres in my game, eg a billboarded circle. But I want it to look like it is 3d, for example when light shines on it I would get the appropiate shadows. Is this possible? thx

Share this post


Link to post
Share on other sites
Advertisement
It might be worth having a look at the Blobs SDK example for this. Not sure about the shadows though.

Dave

Share this post


Link to post
Share on other sites
Just making a mesh shaped like a sphere would probably work out just fine. You could even use D3DXCreateSphere if you're too lazy to actually write the code to generate one.

Hope this helps.

Share this post


Link to post
Share on other sites
Another two options are:

1. Render a sphere to texture in the loading phase of your program.

2. Have a prerendered greyscale sphere as a texture, then colourise this in a shader and apply it to a billboard.

Dave

Share this post


Link to post
Share on other sites
You could get pixel-perfect dynamically shaded spheres using a rough mesh in concord with displacement mapping.

Regards
Admiral

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!