shading???

Started by
4 comments, last by Squirrel 22 years, 5 months ago
is there a way to have shading on shapes? Also, how do I make a light fog? Thanks.
Ryan
Advertisement
???

Sorry, I don''t understand your question... What do you mean by ''shading on shapes'', and what is a ''light fog'' ?

- AH
light fog == light glow/rays ...i think, dunno how to do it tho.
my guess: "shading on shapes" means shadows
"light fog" is most probably volumetric light

...for great justice !
I ment shading as in this: let''s say I make any shape. A cube for example. On the sides that I''m seeing at a diffrent angle, it would be darker but the color would not have to be changed. So if it moves, the shading changes. I''m sure there must be a way. And as in fog, I ment something like the farder an object is, the less you can see it. Hope this clarifies things more. Thanks
Ryan
OK, I got it I already thought that you were talking about some of those new and arcane GF3-only effects using tons of pixel-shaders...

What you mean by shading on shapes is simply called ''lighting'' in OpenGL Eg. you put a lightsource infront of a cube and the cube rotates, then the incident light will automatically calculated.

And about the fog thing: What you want is simple linear/exponential fog, a very basic OpenGL operation.

I suggest you take a look at nehe.gamedev.net, you will find very good OpenGL tutorials explaining all this from the beginning on in very understandable form (including the commonly used OpenGL and computer graphics terms).

- AH

This topic is closed to new replies.

Advertisement