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 4 of 4

Thread: sample code wanted

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Prague, Czech rep.
    Posts
    9

    sample code wanted

    Hi there,

    I need a sample code in which there is used glDrawElements and loading 3D objects from 3DSMax . These two must be together in one example.

    I'm now solving a problem with texture coordinates.

    Thanks

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    29

    Re: sample code wanted

    I don't think you can directly load from 3dsmax files because that's at least in ascii-output many things are just stored with parameters which are then whacked into the 3dsmax engine. try 3ds, would be better. I think there should be enough information on the net about it.

  3. #3

    Re: sample code wanted

    The biggest thing you have to be careful of when parsing for texture coordinates is that shared vertices will not be repeated; so you'll end up with a number of vertices less then you expect.
    /*
    Cinematix Studios (www.cinematix.com)
    Engine/game programmer
    */

  4. #4
    Junior Member Newbie
    Join Date
    Jun 2001
    Posts
    2

    Re: sample code wanted

    check out www.openscenegraph.com there is source code of how to load 3DS files

Posting Permissions

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