open ASSet IMPort library(ASSIMP) is a portable Open Source library to import various well-known 3D model formats

learn more… | top users | synonyms

16
votes
2answers
10k views

I can't figure out how to animate my loaded model with Assimp

I have loaded in a model to my C++ OpenGL game. It is a COLLADA file type that I have loaded, and I setup an animation under blender for the file. The problem is I don't know how to animate the model. ...
13
votes
1answer
1k views

Normals vs Normal maps

I am using Assimp asset importer (http://assimp.sourceforge.net/lib_html/index.html) to parse 3d models. So far, I've simply pulled out the normal vectors which are defined for each vertex in my ...
5
votes
1answer
1k views

Problem with Assimp 3D model loader

In my game I have model loading functions for Assimp model loading library. I can load the model and render it, but the model displays incorrectly. The models load in as if they were using a seperate ...
4
votes
1answer
895 views

Strange mesh import problem with Assimp and OpenGL

Using the assimp library for importing 3D data into an OpenGL application. I get some strange problems regarding indexing of the vertices: If I use the following code for importing vertex indices: ...
4
votes
1answer
175 views

How do I load a model through AssimpNet into Monogame?

I am new to MonoGame and to 3d and I'm stuck on how to import a model. It seems the best way to import a mesh model and 3d animations in Monogame in Windows 8 is through AssimpNet. I can't find a ...
2
votes
1answer
297 views

Multiple texture coordinates per mesh?

So far I've used the same texture coordinate for both the normal and diffuse textures on a mesh, yet when reading the Assimp documentation ...
2
votes
2answers
4k views

Using Assimp to load dae files

I've started looking into using Assimp to load in dae collada files into my game. I believe I've managed to load the file into aiscene. I am using c++, OpenGL and SFML. My problem lies with ...
2
votes
1answer
1k views

smooth shading vs flat shading, what's the difference in the models?

I'm loading the exact same model with Assimp, except one is exported from Blender, shaded smoothly, and the other was exported from Blender, shaded flatly. Here is my results from loading both into my ...
2
votes
1answer
103 views

Cross & dot product using ASSIMP's aiVector3t vector class

I'm using ASSIMP's built in aiVector3t class but I can't find any mention of dot product or cross product in the class documentation. Are these operations defined? If so what is the syntax?
2
votes
1answer
289 views

Assimp renders a partial amount of vertices

I'm building a 3D game, and i'm trying to load some assets with the nice Assimp library. The model should look like the one in the first picture, but instead, it takes the form of some kind of ...
2
votes
1answer
791 views

Skeletal animation with Assimp and glm

I'm trying to implement skeletal animation using assimp and glm. Everything seems to work, except for rotations. This is the code I use when packing assimp data into my own engine's format. I THINK ...
2
votes
2answers
793 views

ASSIMP in my program is much slower to import than ASSIMP view program

The problem is really simple: if I try to load with the function aiImportFileExWithProperties a big model in my software (around 200.000 vertices), it takes more than one minute. If I try to load the ...
2
votes
1answer
192 views

Assimp skeletal animation matrices

I startded to make an assimp only opengl skeletal animation demo. For that I used this: http://sourceforge.net/p/assimp/discussion/817654/thread/5462cbf5 And something is not correct in bone matrices. ...
2
votes
0answers
40 views

problem loading Collada DAE model using Assimp in OepnGL 4.4

I am loading a model in my OpenGL application using Assimp library like this : bool CGameObject::LoadModelFromFile(char* sZFilePath) { std::string fn = sZFilePath; std::string td = "\\"; std::string ...
1
vote
2answers
28 views

Convert trianlge mesh to group of Line segments

I have a 3D .OBJ model file, that is loaded in my OpenGL ES 2 android application using Assimp library. All the faces are triangulated. I want to draw the wireframe for my mesh. In OpenGL we have ...
1
vote
1answer
239 views

OpenGL / Assimp oddity or error?

A friend and I are working on developing a game engine in C++. He doesn't live anywhere near me, so we use Dropbox to sync our files. I opened his project to test his code, and I kept getting errors ...
1
vote
1answer
136 views

How to remove a node from a scene imported with Assimp?

I need to remove one object from the scene graph imported by Assimp and I can't. I've tried to change aiScene.h including a method called DelNode and I canĀ“t. How can I do it - is it possible?
1
vote
1answer
754 views

Child transforms problem when loading 3DS models using assimp

I'm trying to load a textured 3d model into my scene using assimp model loader. The problem is that child meshes are not situated correctly (they don't have the correct transformations). In brief: ...
1
vote
1answer
86 views

Render error in xna DrawPrimitive for Assimp Mesh

I am trying to render the vertices of a scene with a cube I exported as an OBJ from Blender. The 8 vertices become 24 when imported into XNA but when I render it I dont see all faces. This is not an ...
1
vote
0answers
237 views

Blender, Exporting to Collada, Assimp and Normal Maps

I have a simple model that uses a diffuse and a normal map - in this case just two textures applied to the same material, where for the normal map I uncheck all the options in the "Influence" section ...
0
votes
1answer
641 views

Direct3D11 + Assimp imported model corrupted/failed

I use Assimp library to import vertex and index data from model file. I don't know how to correctly create index buffer from mFaces array of aiMesh. Or something wrong, because i my model is ...
0
votes
1answer
472 views

OpenGL 2.1+ Render with data returned form assimp library

I have just readed this tutorial about load a 3D model file: http://www.lighthouse3d.com/cg-topics/code-samples/importing-3d-models-with-assimp/. Its render routine uses a recursive_render function to ...
0
votes
1answer
35 views

OBJ Model not being rendered properly in OpenGL ES 2 android app

I have an Android OpenGL ES 2 app that loads an .OBJ model using Assimp and renders the same. The vertices data is stored in a object declared like this : class CGameObject { public: struct _Mesh { ...
0
votes
1answer
289 views

Importing an object from Blender into a scene, rotation on X axis?

This is my situation: I save the scene with blender no export with any processing steps. Blender has x right y up -z into the scene for the view coordinates (OpenGL) I have x right y up -z into ...
0
votes
0answers
27 views

Assimp - Error loading .obj files

I'm trying to load .obj files in my little game. I decided to use assimp as tool to import those models. But it seems that assimp does not import them correctly. I looked for a simple cube mesh ...
0
votes
1answer
36 views

Problem rendering simple OBJ model using assimp in android app

I am trying to load an OBJ model (http://pastebin.com/usGFkf4e) into an Android app using Assimp 3.1.1 Assimp model loaded like this : bool CGameObject::LoadModelFromFile(AAssetManager *amgr, ...
0
votes
1answer
51 views

How to export FBX models to use in SharpDX?

I am trying to export a model from 3ds Max 2014 as a fbx file and use it in my SharpDX driven project. In the SharpDX example solution, there is a project named ModelRendering.Desktop. I just modified ...
0
votes
0answers
73 views

Rendering an Assimp Scene object in XNA without DirectX or OpenGL

Is there any site that explains how to render an imported Assimp Scene object in XNA/MonoGame using only the Frameworks available in those libraries? I realize that would be at the Vertex/Matrix level ...
0
votes
0answers
174 views

Why does Assimp appear to be loading vertices in the incorrect order in this code?

I'm getting a weird bug in my code that is reading in the vertices from an .obj file. The .obj file is just a cube, hence there are eight vertices. When I print out the vector it seems to work ...
0
votes
0answers
160 views

bones programmatically in assimp

I am trying to animate a 3d hand object programmatically in Assimp, I have the 3d model being export to collada using Blender. But I have no idea how to go from one bone animate it and then go to the ...
0
votes
0answers
313 views

load textures using assimp

I've got .obj model with .mtl materials.I load like this: When I get aiTextureType_DIFFUSE I create new texture object and then call glGenTextures, glBindTexture and etc. for (unsigned int i = 0 ; i ...
0
votes
0answers
310 views

Exporting 3DS Max animated biped character into Assimp

I've been having some trouble with MD5 meshes exported from 3DS Max into my C++ program, using Assimp to import the model and its skeletal animation. If the models were rigged manually with bones, ...
-1
votes
1answer
126 views

Opengl Obj with multiple textures. Jpg texture don't display

Hi i have problem with jpg textures. DDS is working good but jpg is not. This is my function to load JPG texture. In debuger i see that this works but i dont see anything. char * a =(char *) ...