how can I draw a simple apartment
an apartment that includes windows and their colors are changing yellow to black then yellow againg like lights are closing and opening again.
Just draw the apartment using quads, from whatever source you want, and then have the colors stored in variables and change the variable every frame, assuming I understand what you mean.
-~-The Cow of Darkness-~-
Maybe he's talking about having the windows transparent but still have some color, in which you should look up alpha blending. Otherwise I'm not really sure what you mean. Maybe you want to know how to create lights? Please be a little more specific.
assume that we have a rectangle(apartment) that includes smaller rectangles(windows) in it. I want to change the color of this smaller rectangles(windows). That's my question. If you write some code it would be better.
The way I'd do windows is make the apartment in a modeller and cut out areas where the windows would be, then I'd put translucent quads for the windows.
Quote: Original post by Tonyukuk
assume that we have a rectangle(apartment) that includes smaller rectangles(windows) in it. I want to change the color of this smaller rectangles(windows). That's my question. If you write some code it would be better.
Simply have an array called something like "color" with three elements (for red, green, and blue) and then, inside your drawing loop, have code that incriments the color's values.
-~-The Cow of Darkness-~-
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement