Questions tagged [assimp]

Open Asset Import Library (short name: Assimp) is a portable Open Source library to import various well-known 3D model formats in a uniform manner.

Open Asset Import Library (Assimp) is a portable open source library to import various 3D model formats in a uniform manner.

Written in C++, it is available under BSD license.

492 questions
2
votes
1 answer

Assimp mesh missing bones

I'm working on skeletal animation and got stuck on this really weird issue. Using ASSIMP to import a .dae model. I have loaded the model's bone hierarchy (nodes), but the mesh->mBones contains only 10 bones, while there are 29 total. I thought there…
Ryder052
  • 71
  • 6
2
votes
1 answer

Assimp access violation on existing aiVector3D

I'm using the following code to load in an .obj file using Assimp. Something goes wrong at the TextureCoordinates. The aiVector3D I try to access exists, but as soon as I store the values in a temp variable, it crashes my application. Here's the…
Ruben Rutten
  • 1,659
  • 2
  • 15
  • 30
2
votes
1 answer

Assimp with cmake

I want to include assimp to my project using CMake. I have Ubuntu 14.04 LTE and QTCreator. Project contain of main.cpp and linked libraries stored in libs directory. Main CMakeLists.txt cmake_minimum_required(VERSION 2.6) project(test) …
Szczepan
  • 365
  • 1
  • 6
  • 19
2
votes
1 answer

Loading mtl colors using assimp

I've been trying to load a Wavefront obj model with ASSIMP. However, I can't get mtl materials colors to work (Kd rgb). I know how to load then, but, I don't know how to get the corresponding color to each vertex. usemtl material_11 f 7//1 8//1…
A Cat
  • 629
  • 7
  • 20
2
votes
2 answers

Simple curiosity with wave front resource material format

I have integrated 'Assimp' librairy to load my OBJ/MTL files components. All works correctly. But let's have a focus on a following MTL file example: # Blender MTL File: 'plane.blend' # Material Count: 1 newmtl PlaneMtl Ns 96.078431 Ka 0.000000…
user1364743
  • 5,283
  • 6
  • 51
  • 90
2
votes
1 answer

Assimp vs. MeshLab Wavefront Object (.obj) import

I was wondering why when I use the Assimp library to import a Wavefront Object file (.obj) it doubles certain vertices and I found the following answer in the Assimp SourceForge discussion…
mrcointreau
  • 342
  • 5
  • 16
2
votes
1 answer

Ambiguous Symbol around int types between Assimp and SDL2

I am developping a small 3D engine, using SDL2 to manage the window, and loading the models using Assimp. When I compile my program, since I implemented Assimp, I have an "Ambiguous Symbol" error on the following integer types, linking to both…
Remy San
  • 525
  • 1
  • 4
  • 24
2
votes
2 answers

Assimp linking error

I just downloaded assimp 3.0 library and build the required make files with cmake, then compiled and build the library itself the process was successfull (with little modification to StepFile.h), my assimp header folder is located…
BulBul
  • 1,159
  • 3
  • 24
  • 37
2
votes
0 answers

I have an .obj containing UVW mapping and my assimp fail to load it

I am using assimp for ios from h t tps://github.com/cfr/assimp-ios these file are exported from 3d max: .obj h t t ps://drive.google.com/file/d/0B_Nuhl0WqfMjMUF5cks2YmR2Rlk/edit?usp=sharing .mlt h t t …
2
votes
1 answer

Understanding animation loading with Assimp

I have made a container class that basicly contains all the information I need for rendering an animation. I'm using the Assimp library to load the animation. Then assigning the data from the scene->mVertices etc. to my array buffers, what I'm…
Aleksander Fimreite
  • 1,439
  • 2
  • 18
  • 31
2
votes
1 answer

load different textures type using assimp

By default I load everything like this for(int g = 0; g < faces.size(); g++) { glMaterialfv(GL_FRONT, GL_SPECULAR, materials[g].Ks); glMaterialfv(GL_FRONT, GL_DIFFUSE, materials[g].Kd); glMaterialfv(GL_FRONT, GL_AMBIENT,…
lapots
  • 12,553
  • 32
  • 121
  • 242
2
votes
0 answers

Mingw-compiled Asset Importer linking slow

I'm using Asset Importer (assimp) to load in models. However, as soon as I started building my program, I found that the linking step was going extremely slow - ~55 seconds versus the sub-2 seconds that it took without including the assimp library…
theodore
  • 21
  • 4
2
votes
1 answer

Is it possible to use assimp to generate tangents IF you also use it to generate normals?

I’m pulling in models that, more often than not, have no normals and no tangents. I was disappointed to see this line in the comments for aiProcess_CalcTangentSpace: "Does nothing if a mesh does not have normals.” The problem here is, my mesh does…
Nico
  • 1,181
  • 2
  • 17
  • 35
2
votes
1 answer

OpenGL strange Rendering behaviour (flickering faces)

PRE: I'm using Assimp (Open Asset Import) library to import a .3ds file. Meshes are rendered with normals and materials. Using Qt. Drivers up to date on all the computers we tried. POST: When I rotate around the objects,using camera,I can see that…
Tcz
  • 661
  • 5
  • 18
2
votes
3 answers

Pointer addressing to invalid content after function return

I've got a problem with returning this const pointer. Using the debugger showed me that the scene is correctly imported and stored in variable scene. After returning scene, the content pointed by scene is lost and cannot be accessed by the class…
Kim'rak
  • 35
  • 4