check out my cool lil openGL program I made for school!

purbeast0

No Lifer
Sep 13, 2001
53,424
6,269
126
Linky to project

I PROMISE there is no virus on this, but scan it before you run the .exe if you wish. I took my first graphical programming course this semester. it was fun, but now I give MUCH more props to the people who make these huge games for us to enjoy :)

This is a little program but it sure as hell took me a long time to figure out how to do all this :). And yes ... I KNOW that the shadows mess up when they are near the walls. Also, press the SPACE bar and in the console window you will see what the button controls are. enjoy :)

EDIT: I don't know why but paint won't let me save a .jpg ... only .bmp. here's a link to the bmp

PIC
 

purbeast0

No Lifer
Sep 13, 2001
53,424
6,269
126
Originally posted by: dighn
pics

no pics. it's just a little 3d fighting thing that shows texture mapping, shadows, lighting, and camera rotation. also the people are made up of all these matrix multiplications, transformations, and rotations. pretty fun stuff :)
 

purbeast0

No Lifer
Sep 13, 2001
53,424
6,269
126
lol oh okay. im tryin now but for some reason it won't let me save pics on my local webspace on my computer in the lab here, still tryin though ...
 

royaldank

Diamond Member
Apr 19, 2001
5,440
0
0
Pretty cool. What did you write this in? Sounds interesting. I've never messed with graphics at all.
 

purbeast0

No Lifer
Sep 13, 2001
53,424
6,269
126
Thanks for postin the pics man :)

I could only post a pic of the .bmp, i dont know why paint wouldn't let me save in gif or jpg.

I programmed this in openGL. We also used the glut library (Graphics Library Utility Toolkit) which is used with openGL. It was programmed using visual C++ however.
 

purbeast0

No Lifer
Sep 13, 2001
53,424
6,269
126
try holding SHIFT and pressing UP and DOWN ... it rotates the camera angle 10 degrees up or down, stopping at 10 (the starting position) and going to 90.
 

royaldank

Diamond Member
Apr 19, 2001
5,440
0
0
How much code are we talking about on something like this? I've always been interested in how this stuff works. You got a class webpage or something with lectures maybe?
 

purbeast0

No Lifer
Sep 13, 2001
53,424
6,269
126
The code itself is not too hefty, but its just how you do it that is harder. the lighting thing you have to manually calculate normals for every face of the polygon so that the light reflects correctly. There is alot of linear algegrae in this course. i am going to my last course of hte day right now thougn, so i'll check messages later and talk to you more then.
 

Joker81

Golden Member
Aug 9, 2000
1,281
0
0
your r33t openGL. I hope you aren't referrering to r33t.org or thats pretty mesed up.
 

royaldank

Diamond Member
Apr 19, 2001
5,440
0
0
Cool stuff. From what I've been told, graphics is where all the matrix classes and algebra really kicks in. Thanks for sharing.
 

AMCRambler

Diamond Member
Jan 23, 2001
7,711
30
91
Hey nice job! I took a computer graphics course and we had to do pretty much the same thing using Open GL. He gave us a list of what he wanted like had to use so many key frames, texture mapping, skinning, etc. It was a while ago so I forget exactly all the things. I know mine was pretty sucky I don't think I did everything he asked for. It was still pretty cool though. I did a hand and put a metallic texture on it so it would look like a robot. Then I made it make a fist for the animation. Pretty straight forward, just a bunch of transformed and scaled cylinders for the fingers and palm, and with spheres stuck on the end of the fingers to look like finger tips. I've still got it if I can find it to post it. I think you need to have the open GL libraries installed to watch it though. We used C++.
 

Chadder007

Diamond Member
Oct 10, 1999
7,560
0
0
OMG !!! Best game ever since Mario Kart!!

j/k but thats pretty cool. Better than anything I could do. What books have you read on this? Using C++ ??
 

AMCRambler

Diamond Member
Jan 23, 2001
7,711
30
91
Originally posted by: pulse8
You can make an openGL program but you can't compress a bmp file? :)

Dude, you'd be surprised how little most programmers know about using windows and all that knowledge we consider basic. Think about it, if they are studying programming, all they use is their compiler. As long as that puppy opens up, that's everything they need right there. If their program needs to access files on the machine they'll know about paths and navigating windows explorer, but other than that, that's pretty much all they know unless they are avid pc users at home. Most of the people who program where I work in couldn't tell you what a gif or a bitmap is. I'm lucky because I started out messing around with our computer at home, and first worked a helpdesk position while I was in school studying CS. Now I'm working as a programmer so as someone who has seen both sides of the fence I have a lot more respect for both professions now.
 

AgentEL

Golden Member
Jun 25, 2001
1,327
0
0
looks pretty good.

for my graphics class, I tried to make a cloud simulation. It condensed, evaporated, moved. The simulation was pretty good.

It was really tricky to make them transleucent to keep them from looking like cotton balls.

In the end, they looked like marshmallows :-(
 

TubStain

Senior member
Apr 19, 2001
935
0
0
That's pretty cool. We had a similar project in UofM, called blobby man. A man made of spheres stretched out. Was pretty cool, how we could control his hands and feet etc.

For our final project my partner and I made an animation of a flower growing from seed to full plant with the petals extending and then a bee flew in the room and landed on it. When we were done, we both agreed it was the most satisfying project we had worked on.

Our prof once worked at Pixar, was a pretty cool fellow.
 

djNickb

Senior member
Oct 16, 2003
529
0
0
Originally posted by: AMCRambler
Originally posted by: pulse8
You can make an openGL program but you can't compress a bmp file? :)

Dude, you'd be surprised how little most programmers know about using windows and all that knowledge we consider basic. Think about it, if they are studying programming, all they use is their compiler. As long as that puppy opens up, that's everything they need right there. If their program needs to access files on the machine they'll know about paths and navigating windows explorer, but other than that, that's pretty much all they know unless they are avid pc users at home. Most of the people who program where I work in couldn't tell you what a gif or a bitmap is. I'm lucky because I started out messing around with our computer at home, and first worked a helpdesk position while I was in school studying CS. Now I'm working as a programmer so as someone who has seen both sides of the fence I have a lot more respect for both professions now.

This is so true I work for a software company and the programmers here know so little about pc's and client/server computing that it baffles me how they even do their own jobs. I.E. a programmer asked me for more memory in his brand new machine saying that things were running slow -- I had to sit down and explain to him that his email runs off of a mail server and not his PC, yet these people program software that we sell for millions to local government agencies. like my sig says ...............