hi mates i need to do a simple project in opengl with dev-c++
showing the effect of 3-d and 2-d shadowing!!!
plz tell me where i will find such a project!!!!
thankz in advance!!!
hi mates i need to do a simple project in opengl with dev-c++
showing the effect of 3-d and 2-d shadowing!!!
plz tell me where i will find such a project!!!!
thankz in advance!!!
I have a working project of 2D texturemaps.
Here's what I ended up with so if anyone else has this same problem. Also if anyone has a refinement or alternate please post.
No need to enable depth buffers since I was sorting them. I offset the viewpoint and not the texture maps.
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60, (GLfloat)320.0f/480.0f, 0.5f, 1500.0f);
// routine I found on web which calculates glFrustumf as:
// glFrustumf (-.1924, .1924, -.2886, 0.5f, 1500.0f);
glTranslatef(-160, -240,-430); // correctly center
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
I would assume there's a math formula to get the correct Z distance to match the default ortho but I haven't looked into it yet.
You can download Nigel’s opengl devpak from Here. From the list on the page Download glut.3.7.6+.DevPak to a local folder.In Dev C++,open the package manager: Tools->Package Manager.Here,you can see the pre-installed packages that came with your distribution of dev-cpp.To Install the glut package,click on Package->Install Package.Browse to the location where you’ve downloaded the glut devpak.Once you done with adding,it will appear in the package manager list.
hey mates i compiled my first open-gl project using dev-c++
i got the following error
" [Linker error] undefined reference to `glmLoadTexture(char*, unsigned char, unsigned char, unsigned char, unsigned char, float*, float*)'
[Linker error] undefined reference to `WinMain@16'
ld returned 1 exit status"
can someone plz plz plz tell me in advance wat does this mean??
plz tell me asquickly as u can
i need to submit the project on monday
i will be very very thankful to you!!!!
Bookmarks