Lesson 19 need help with ....

Started by
2 comments, last by boldyman 21 years, 7 months ago
I am playing around with lesson 19 the particle engine. I like to make a smoke effect. But i can''t get de color''s set to gray (scale). All the particles become white. Can someone help me. thx Boldy
Advertisement
glColor3f(0.5f,0.5f,0.5f);
// Draw your particles

========================
Leyder Dylan
http://ibelgique.ifrance.com/Slug-Production/
========================Leyder Dylan (dylan.leyder@slug-production.be.tf http://users.skynet.be/fa550206/Slug-Production/Index.htm/
Just an addendum to Leyder''s post: the number that represents a color component in a color index, is the component''s intensity - if all of the components are zero, the color turns out pitch black. Anything between zero (generally) and the maximum (generally 1 or 255), only affects the brighness of the color. If you keep all of the components equal throughout the intensity scale, you get grayscale.

Hope I''m not missing the point by presuming you''re a newbie

Crispy
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared
thx
Ill try it !!

This topic is closed to new replies.

Advertisement