Results 1 to 4 of 4

Thread: include animation of 3d object to GL code

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    9

    include animation of 3d object to GL code

    Who can tell me the best way to include an animation of 3ds file into my OpenGL code? Is it possible anyway?

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    8

    Re: include animation of 3d object to GL code

    Yes, of course!

    If you program uing GLUT you can use a callback function called glutIdleFunc() which is called while the program is Idle and there you may add code to, for example animate your 3D object (or 2D).

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2005
    Posts
    9

    Re: include animation of 3d object to GL code

    I want to know how to include an animated 3DS file into my openGL code and I want it to move as it could.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: include animation of 3d object to GL code

    That's not exactly an easy task. You'll either have to find a library to use, learn the 3ds format, learn another format like ASC, or have the data exported in your own format. OpenGL doesn't have a magic Load3dsAndAnimate function.

    Basically, you need to load the data from the file yourself in some way and then use use that data to tell OpenGL how to render it.
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. Help example C ++ code skeletal animation
    By giorgik in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 01-25-2018, 04:17 PM
  2. Include OpenCV in OpenCL kernel code
    By nirosekhan in forum OpenCL
    Replies: 1
    Last Post: 08-04-2013, 06:47 PM
  3. How to include GLSL code in a release product
    By paulk124 in forum OpenGL: GLSL
    Replies: 4
    Last Post: 12-07-2012, 12:13 PM
  4. looking for 3D Page Flipping Animation code
    By quoctuan in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-16-2003, 01:49 PM
  5. include an animation of a 3DS file into the OpenGL code
    By OpenGLer in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 03-21-2001, 01:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean