Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: draw bird ..!!

  1. #1
    Junior Member Newbie
    Join Date
    May 2011
    Posts
    1

    draw bird ..!!

    hello...i am new to opengl programming..

    i am trying to draw a simple bird(flying with it's wings wide open..side view)..bt am not able to make it into the desired shape..using the basic primitves
    please help n draw a bird using the basic opengl primitives..!!

    thanx in advance

  2. #2
    Senior Member OpenGL Pro BionicBytes's Avatar
    Join Date
    Mar 2009
    Location
    UK, London
    Posts
    1,171

    Re: draw bird ..!!

    Perhaps use a dedicated modelling utility. For example Blender.

  3. #3
    Newbie Newbie
    Join Date
    Jul 2012
    Posts
    1
    I have the same requirement as Roheat is. I am working on a Mac OS X platform. I have generated the bird model in Blender. Now can someone help me proceed further so that I import that model into a C++ program. BionicBytes & Roheat please help me

  4. #4
    Member Regular Contributor
    Join Date
    Jan 2012
    Location
    Germany
    Posts
    302
    Export the mesh and look for an import library or write your own (obj is quite simple). Then just use standard draw calls.
    (There is no "OpenGL mesh format" that you just export and render with one call, you have to do the loading and rendering yourself)

  5. #5
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,421
    You can export your model as a OBJ file (File -> Export). I think the ASIMP library reads OBJ files if you don't want to write your own OBJ loader.
    You could export as 3DS. Write your own loader or use lib3ds from sourceforge.net.
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •