How to fake a perfectish sphere?

Started by
3 comments, last by TheAdmiral 17 years, 6 months ago
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
Advertisement
It might be worth having a look at the Blobs SDK example for this. Not sure about the shadows though.

Dave
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.
Sirob Yes.» - status: Work-O-Rama.
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
You could get pixel-perfect dynamically shaded spheres using a rough mesh in concord with displacement mapping.

Regards
Admiral
Ring3 Circus - Diary of a programmer, journal of a hacker.

This topic is closed to new replies.

Advertisement