Author |
The Face! |
Kanman Grand Admiral Pitch Black
Joined: August 26, 2005 Posts: 1017 From: Virginia, United States
| Posted: 2007-08-23 12:38  
Since I have yet to find out why my polygons were laying over each other, even though they were spacially behind other things, I have moved on to a new project. I wanted something 3D but with nothing behind it to cause trouble. I went with a face.
It has no controls and really doesnt do anything at all, except randomly get surprised or angry at you.
Controls: (Keyboard numbers only, not numberpad numbers)
1 = Points On/Off
2 = Lines On/Off
3 = Polygons On/Off
4 = Invert Red Color Use
5 = Invert Green Color Use
6 = Invert Blue Color Use
LMouse & RMouse = Rotate Face
Hold T = ZOOM in and Adjust position (resets to normal when you release T)
SPEED CONTROL: (For you fast computers out there)
O = Slow program down
P = Speed program up (program starts on fastest setting)
0 = Set to Fastest setting
9 = Set to Slowest setting
Face
FaceLight uses glLighting ratherthan glColor to define brightness. It is my first attempt at trying to understand and use Lighting. I never bothered to finish with the eyelids, eyes or mouth. Simply too many Normal vectors to calculate for such a small surface area shown.
Controls: You can move the light around with a s d w q & e. I have a point showing to denote the light location if it in the field of view. L and R mouse still rotate the world.
FaceLight
[ This Message was edited by: Kanman *FC* on 2007-08-24 17:32 ]
_________________
|
Drafell Grand Admiral Mythica
Joined: May 30, 2003 Posts: 2449 From: United Kingdom
| Posted: 2007-08-23 14:16  
If you can add a few more expressions, how about trying to get it to respond with a random face to audio input...?
_________________ It's gone now, no longer here...Yet still I see, and still I fear.rnrn
rnrn
DarkSpace Developer - Retired
|
Sardaukar Admiral Raven Warriors
Joined: October 08, 2002 Posts: 1656
| Posted: 2007-08-23 14:26  
Putting it in in polygon mode, no lighting, makes me want to do a barrel roll.
_________________
|
Kanman Grand Admiral Pitch Black
Joined: August 26, 2005 Posts: 1017 From: Virginia, United States
| Posted: 2007-08-23 16:30  
Yes, polygon coloring took up a large amount of space in code as well as time. I have come online just now to research how to control lighting and viewports better. Perhaps I can upgrade my face with some new skils.
PS. Updated Link, as I have adjusted minor things, such as making the forehead move with the angry expression.
_________________
|
Little Pet Slinki Admiral
Joined: April 16, 2006 Posts: 836 From: United Kingdom, South West.
| Posted: 2007-08-23 16:32  
I wanna attack Audio and have it Speaking >.>
Program Expressions or such, Or be able to Move the Points so you could change the face?
_________________
|
Kanman Grand Admiral Pitch Black
Joined: August 26, 2005 Posts: 1017 From: Virginia, United States
| Posted: 2007-08-23 16:34  
I would LOVE to know how to make there be sound in my programs. With that, I could really blossom and make some good stuff.
EDIT: Found a lovely little webpage that seems to explain OpenGL Lighting quite well. I will see if I can do something with this information.
[ This Message was edited by: Kanman *FC* on 2007-08-23 16:48 ]
_________________
|
Fattierob Vice Admiral
Joined: April 25, 2003 Posts: 4059
| Posted: 2007-08-23 17:43  
Quote:
|
On 2007-08-23 14:26, Sardaukar wrote:
Putting it in in polygon mode, no lighting, makes me want to do a barrel roll.
|
|
best comment ever.
_________________
|
Enterprise Chief Marshal Raven Warriors
Joined: May 19, 2002 Posts: 2576 From: Hawthorne, Nevada
| Posted: 2007-08-24 04:41  
I like the nice optical illusion when rotating the face, it makes it look like that no matter which way you turn, you cannot see the interior of the face.
-Ent
_________________
|
Kanman Grand Admiral Pitch Black
Joined: August 26, 2005 Posts: 1017 From: Virginia, United States
| Posted: 2007-08-24 07:48  
Well, it took me 3 hoursto figure out and another 3 hours of coding, but I figured out Lighting and converted MOST of the face to use that. The Eyes, Mouth and eyelids dont yet have Normal vectors declared though.
It looks Blocky now, like characters from Beast Wars or Reboot. I figured out a way to make it perfectly smooth in appearance while I was sleeping, but it would be rather complex (calculating all Normal vectors a single point would have and then adding and dividing) and too difficult to code without it getting messy.
Ill upload the Light-using version later.
_________________
|
Kanman Grand Admiral Pitch Black
Joined: August 26, 2005 Posts: 1017 From: Virginia, United States
| Posted: 2007-08-24 14:34  
added the Light-using version. I think the original looks better, but I have never used Lighting before so that might be why it looks so blocky.
_________________
|
Light-of-Aurora Grand Admiral
Joined: December 01, 2003 Posts: 602 From: NJ, USA
| Posted: 2007-08-24 15:57  
How can you stand making 3D stuff? I found it way too difficult to learn all of the concepts... Or maybe I'm just too impatient.
GJ with this!
_________________
|