3ds max object to opengl

前端 未结 4 2019
情书的邮戳
情书的邮戳 2021-01-12 15:41

I am trying to assemble a scene in opengl, using already made objects. The problem is that the object are in .max format and have no external textures. How could I import my

相关标签:
4条回答
  • 2021-01-12 16:04

    Another option could be Assimp, an open source asset import library for C or C++, which seems like a pretty good way to get 3DS assets into an opengl program. It'd be especially useful if you want it for skeletal animations, and supports embedded textures. Though at this point, this answer may be less for you than it is for other people coming across this question.

    0 讨论(0)
  • 2021-01-12 16:13

    You might want to check out lib3ds which will parse the 3ds binary format for you and give you access to all of the objects properties. I think Autodesk also has their own toolkit for doing this.

    0 讨论(0)
  • 2021-01-12 16:16

    You should look at this link. It is a 3DS viewer with source code that renders using OpenGL. The code is simple.

    0 讨论(0)
  • 2021-01-12 16:23

    If I remember correctly, the 3ds file does not store the vertex normals so you will probably have to calculate them yourself somehow or otherwise it will use the normal of the face itself which is will be quite ugly.

    0 讨论(0)
提交回复
热议问题