Graphics project

:
GLA45
Here is the project I had to do for my graphics class. I think it ended up coming out pretty cool. What we started with was a program that showed 3d models in all white written in OpenGL in C++. our job was to add shaders to the program using nvidia's Cg language, which is programming that is done on the GPU. We had to add different types of shading and texture mapping in this way and set everything up the right way to pass to the GPU. The coolest one I think is the environment mapping, which I did as basically making the object be a mirror and reflect what's around it. I didn't show the actual environment though, just mapped data from it onto the object. I think it came out pretty cool

Commands for the program:
N or n = next 3d shape
P or p= previous shape
q or esc= quit
right click = menu to change between different shading types
left click = can rotate the object

link: http://users.wpi.edu/~jck15243/program.zip

some pictures of the results are attached, 2 environment mapping, 2 texture mapping. the shading ones aren't that interesting, just different highlights and stuff, so no need for pictures of those :)
 

Attachments

  • apple.webp
    apple.webp
    13.5 KB · Views: 724
  • beethoven.webp
    beethoven.webp
    16.8 KB · Views: 711
  • lamp.webp
    lamp.webp
    23.4 KB · Views: 708
  • light.webp
    light.webp
    14.7 KB · Views: 711
Last edited:
oh yea, not all computers support programming on the GPU (need a geforce3 or later or whatever the equivalent ATI card is), and im not sure if you need Cg installed on your computer to run the exe (i dont think so, but who knows).

if you're interested i can send you the code, but i doubt anyone is :)
 
yea def. doesn't work unless you have Cg installed, which you can get on nvidia's web site if you really want it
 
im in drafting and i just do a few begginer drawing but next year for adv drafting we'll be doing 3D. i might spend a couple months to make a 3D model of my protege5. but thats next year.

*edit*We're using microstation from Bently, next year we will be using TriForma
 
sweet, im learning how to make programs like that and make games that look good but still get a decent frame rate :)

i took a cad class a few years ago, now i could write a basic cad program :)
 

Similar Threads and Articles

Back