i am creating a ship and want it to look metallic. i have not used any textures so far. only some lighting, shading etc... what is the best way to make it look metallic? anybody has any sample codes?

Nutty

06-30-2003, 07:05 AM

You want to look at environment mapping for reflectivity, and specular highlights for shininess.

Andrew Jameson

07-01-2003, 12:01 AM

Hi,

I hope that this helps and is what you're looking for ... it's an example in Delphi but it's only API calls so you shouldn't have any problems converting the idea ...
there are two examples of specular highlights using environment mapping here ...
http://www.sulaco.co.za/opengl5.htm

You'll also find many other useful examples here and there's a nice one on spherical environment mapping ...

Good luck ...

Andrew

07-01-2003, 04:44 AM

thanx a lot. will try the program soon. regarding environment mapping... any suggestions for a good book or sample pgms to look up?