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 aiString empty when compiling for Linux

I'm working on a simple OpenGL project and I'm new to C++. I've been slowly adding features to a very simple primitive 3D "engine" and I've worked to make sure it compiles cross-platform. I have a make file that I run for OSX and Linux (Ubuntu) and…
KTF
  • 1,349
  • 2
  • 14
  • 21
2
votes
1 answer

"assimp/config.h" not found, It's in the folder though

I'm using Visual Studio 2019 to make a simple scene with OpenGL. The libraries and includes seem to be correctly configured since I can access the header files and the assimp folderstructure. When I try to include any assimp headers though I get…
Bearowl
  • 67
  • 1
  • 7
2
votes
1 answer

Loading a Collada (dae) model from Assimp shows incorrect normals

SOLUTION: Thanks to Rabbid76, I needed to update the Normal vector in the vertex shader with the model matrix. Updated vertex shader: #version 330 core layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aNormal; out vec3 FragPos; out…
Aaron Z
  • 258
  • 2
  • 9
2
votes
0 answers

Calculating the final bone transformation for a skeletal animation

I have a simple model with a simple skeletal structure that I made in blender. Here's how it looks: And here's the hierarchy in blender: As you can see it has two bones: One that goes halfway up the rectangular box ("Bone"), that is completely…
Dan
  • 257
  • 1
  • 3
  • 11
2
votes
1 answer

Can glDrawElements be used independently from polygon type?

Is the only solution grouping vertices into separate glDrawElements(GL_TRIANGLES, ...) and glDrawElements(GL_QUADS, ...) draw calls or is there a way of sending data describing no of polygon sides into geometry shader and sorting out type of polygon…
Gen0me
  • 115
  • 8
2
votes
2 answers

Building ASSIMP with MinGW causes file too big error

I am building ASSIMP using cmake and mingw-w64 on windows 10 and it gives me "file too big" errors while creating the object code. I tried using MinGW and MinGW-w64 and both give me the same error. I am using the default settings, I configure the…
Tim Horton
  • 23
  • 4
2
votes
0 answers

How to export an fbx file with assimp that can be used in Unity?

I use Assimpnet to export an fbx file with a skinned mesh, skeleton and animation from Unity at runtime. The fbx file works perfectly well when imported into Blender or Maya, but when in open Unity editor to import the file the positional values on…
Miss_Jones
  • 21
  • 3
2
votes
1 answer

OpenGL texture not rendered properly on model

In my opengl application, texture is not rendered correctly on the model. Here is a screenshot of the result: Here is what the bunny should look like: expected result Here is the code to load the texture. stbi_set_flip_vertically_on_load(1);…
Joyce Chen
  • 31
  • 4
2
votes
1 answer

assimp model loading doesn't load all meshes

I'm struggling to load model via assimp with multiple meshes, here is code for loading model: bool loadAssImp( const char * path, std::vector & indices, std::vector & vertices, std::vector &…
2
votes
2 answers

Error in building Assimp in Cmake

Hi I'm trying to build Assimp with Cmake but the following error message appears everytime I try to configure Assimp. The version of Cmake is 3.11.0 and assimp is 4.0.0. Looking for DirectX... DirectX_PREFIX_PATH changed. Found DirectX: C:/Program…
Peter
  • 460
  • 6
  • 23
2
votes
0 answers

How to export in the Collada dae format using the Assimp?

I can't get how to use Exporter to export my scene in dae format. Now, I am doing it so: void Model::save(const std::string &path) { // Create a new scene aiScene scene; scene.mRootNode = new aiNode(); // Create a material …
Denis Sologub
  • 7,277
  • 11
  • 56
  • 123
2
votes
1 answer

how to use assimp by fixed function pipeline?

I have learned how to import a .obj with assimp by shaders However, is it possible to import a .obj with assimp by fixed-function-pipeline. so that I can program by OpenGL API easily.
W.X.Qiang
  • 21
  • 2
2
votes
0 answers

pyassimp how to create new scene?

I can load scene from file and export scene, scene = pyassimp.load('test.obj','obj') pyassimp.export(scene,'test.3ds','3ds') but unable to create new scene for modify. how to create new empty scene?
J T
  • 21
  • 2
2
votes
1 answer

ASSIMP - Android NDK toolchain

I have a problem with the compilation of ASSIMP for Android. I use the Android NDK (and JNI) to call my C++ code in a JAVA activity. Gradle calls my CMakelist to compile my shared library. In this CMakelist I target my .cpp files and my library…
nicolasl
  • 21
  • 2
2
votes
1 answer

PyAssimp ignores all modification before the export

I loaded a 3d File with PyAssimp then I changed some vertices position and when I exported it all modification were ignored This is an example of what I wrote: >>> import pyassimp >>> scene = pyassimp.load('D:/test.3ds') >>> v =…
YKacem_LUX
  • 41
  • 2