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

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

purbeast0

No Lifer
Sep 13, 2001
53,646
6,528
126
Originally posted by: pulse8
You can make an openGL program but you can't compress a bmp file? :)

LoL i know how to make a .gif and .jpg files out of a .bmp. But I was on a computer in the lab at school and we don't have all the access in the world on there, so i couldn't make one. Trust me ... i know how to do it w/photoshop but i was having problems when i went to save it, I got some error. Same thing happened for .gif and .jpg. So :p
 

element

Diamond Member
Oct 9, 1999
4,635
0
0
nice work. i used to mess around with openGL, I should get back into that again. i wrote a .jpg loader for my openGL app, so I could finally use jpeg textures instead of those huge ass BMPs. Course writing a BMP loader was tons easier than the jpg loader. I even had some assembler code mixed in with the C code to optimise the loading of the jpg.

I also wrote an internet chat client in open gl....it was supposed to be the chat portion of the game I was writing. Course you could not only chat but send commands back and forth to make the game multiplayer. but I never fully finished it.

I still have all those projects on a CD too. I also had an encryption/decryption algorithm going on to secure the chat somewhat. It was kind of a cheesy algo though. But it worked. Also had a model loader going on.

I learned most of the stuff off websites and books like the OpenGL Superbible.

We ATOT programmers should all collaborate one day and make a game or something.

oh yeah Purbeast I wantd to ask you, did you use any OOP or is your program all procedural? I did all my Open GL apps procedurally although I know how to do OOP also.
 

XZeroII

Lifer
Jun 30, 2001
12,572
0
0
Originally posted by: WinkOsmosis
I give it 1/10. The gameplay is horrible.

Expect a call from the makers of Mortal Kombat. You are infringing on their game.
 

Descartes

Lifer
Oct 10, 1999
13,968
2
0
Originally posted by: djNickb
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 ...............

He said his box is running slow, so you talk about email being "run" on the server? I can absolutely guarantee you that that programmer knows more about how applications utilize memory than you.
 

bleeb

Lifer
Feb 3, 2000
10,868
0
0
Yes. This game sucks. People at our school made 3D programs with the introductory beginning courses SUCKY graphics package and we had guys making 3d rendered games in the next class.

Good Job though.
 

dmcowen674

No Lifer
Oct 13, 1999
54,889
47
91
www.alienbabeltech.com
Originally posted by: XZeroII
Originally posted by: WinkOsmosis
I give it 1/10. The gameplay is horrible.

Expect a call from the makers of Mortal Kombat. You are infringing on their game.

Nice job PB. Unfortunately these days you can never tell, more like expect a call from the makers of Pong.
rolleye.gif
 

littleprince

Golden Member
Jan 4, 2001
1,339
1
81
My dad has a degree in eng, and cs... I still gotta go to his place every couple of weeks to remind him how to check his email from outlook...
Programmers dont neccessarily= computer users
=)

Had a few profs, same thing. Could program circles around a majority of ppl, but how the heck to use windows, or do anything the rest of us treat as normal...
 

oLLie

Diamond Member
Jan 15, 2001
5,203
1
0
Heh, the brick walls are only an illusion! I moved the characters outside of the arena (took a long ass time though... why is it so huge? Oh to prevent people from goin outside?). Anyway, if you want your game to become a big hit, you can't allow wallhacking like that! :cool: :p jk
I was wondering why the other guy was getting hurt when I was walking into him, then I realized damage is probably just connected to collision detection.

Here is a project I just did in our openGL class. It's not a game :(, it's just a little interactive application. T for texture mapping, E for environment mapping if texture mapping is enabled, 1-8 number keys load the different textures (so long as texture mapping is on you'll see them). l (lowercase L) lowers the tesselation of the torus, capital L (shift+l) increases it. r reduces the minor radius of the torus, R (shift +r) increases it. p and shift+p change some shape parameters for the torus. C disables openGL lighting and does software lighting (to achieve a bronze effect). f key toggles between flat shading and smooth shading. w key toggles wireframe or solid mode. 0 was my failed attempt to do a sphere using the torus equation (at high tesselations and with smooth sharding on it looks ok). Q quits the program. Oh yeah, and I know the rotation is sort of messed up :(.

 

dfi

Golden Member
Apr 20, 2001
1,213
0
0
Cool stuff. Graphics stuff is fun. I been messing around with opengl/directx on and off for a while now, but I haven't had time to touch my code since april. Personally I like opengl but everyone seems to use directx nowadays. My programming knowledge is completely self taught, and as such there are often gaping holes in my knowledge. I seemed to recall realizing that my code was horribly wrong and that I should scrap major portions of it, but now I look at it and I can't remember why, heh. You've inspired me to start messing around again, should be fun.

Btw, let's start getting a list of good sources of information for graphics programming. Here's a couple I know of:

flipcode.com
gamedev.net
nehe.gamedev.net (the code's messy but the explanation is detailed)

dfi