Results 1 to 4 of 4

Thread: opengl project

  1. #1
    Join Date
    Mar 2009
    Location
    India
    Posts
    5

    opengl project

    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!!!

  2. #2
    Join Date
    Jun 2006
    Posts
    623

    Re: opengl project

    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.

  3. #3
    Join Date
    Oct 2008
    Posts
    54

    Re: opengl project

    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.

  4. #4
    Join Date
    Mar 2009
    Location
    India
    Posts
    5

    Re: opengl project

    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!!!!

Similar Threads

  1. Replies: 4
    Last Post: 20-04-2012, 11:22 PM
  2. Replies: 3
    Last Post: 10-11-2010, 07:27 PM
  3. Replies: 1
    Last Post: 20-08-2010, 01:27 AM
  4. How do I convert Project 2007 document to open in Project 2003?
    By nehal_serpa in forum Microsoft Project
    Replies: 6
    Last Post: 31-10-2007, 03:12 AM
  5. Project 2007 Client Cannot Connect To Project Server 2003
    By PARRISH in forum Microsoft Project
    Replies: 1
    Last Post: 21-02-2007, 10:24 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,491,785.25236 seconds with 16 queries