498 questions
0
votes
0
answers
74
views
Animation not animating correctly in assimp [closed]
I'm using assimp in my C game engine (which uses Vulkan) to try and animate a model but it's animating extremely weirdly. The animation implementation is based off the learnopengl.com skeletal ...
2
votes
2
answers
59
views
What is the purpose of the pkey parameter?
I want to read a diffuse texture like this:
aiGetMaterialString(material,
AI_MATKEY_COLOR_DIFFUSE, // this is the pkey parameter
aiTextureType_DIFFUSE,
...
0
votes
1
answer
76
views
Reading a 3D model with lwjgl-assimp failes in Clojure
This is my Clojure code:
(ns learnopengl.mesh-model
(:import [org.lwjgl.assimp Assimp AINode AIMesh]))
(defn read-model
"read a 3D model from a file"
[path]
(let [scene (Assimp/...
1
vote
1
answer
179
views
Failing to load FBX meshes with correct transform. Assimp 5.2.5
I exported a model to fbx format inside 3ds max. Inside Max the scene look like this:
When i import it in my software i get this:
https://youtu.be/WPQnkxzL24g
The meshes transform is wrong. But if I ...
1
vote
0
answers
162
views
Visual Studio 2022 OpenGL Project: 'assimp/Importer.hpp' Not Found Despite Correct Include Path
I keep getting below error during build at #include <assimp/Importer.hpp>
Error: C1083: Cannot open include file: 'assimp/Importer.hpp': No such file or directory
I have tried to clean the ...
0
votes
1
answer
150
views
Texture mapping issues with Assimp and OpenGL: Some meshes have incorrect UV mapping [closed]
I am trying to load and render 3D models using C++, modern OpenGL (glfw 3.4.0, glad, glm), and the newest Assimp. My model loader is mostly working, but I am encountering an issue where some meshes ...
2
votes
1
answer
883
views
how to generate assimp .so in android ndk i am using assimp 3.0
I am facing this error in android studio 2.2.1
Error:Shared library link file E:\path\3dmodelndk\AssimpAndroid-master\app\src\main\externals\assimp-3.0\libs\armeabi-v7a\libassimp.so does not exist for ...
0
votes
1
answer
946
views
How to link C program with assimp MinGW-w64
I've got a basic assimp example copied from the assimp site (with some minor modifications to make it work with C). Now the problem is that when it tries to link, assimp complains that it can't find ::...
0
votes
0
answers
132
views
C++/Raylib - Unable to load mesh with Assimp
I want to preload 3d obj files before I run InitWindow from Raylib by preloading with assimp. So I have the following code:
std::vector<Mesh> preloadedMeshes; // Store preloaded meshes
std::...
1
vote
0
answers
28
views
Assimp .NET Model Animation went wrong (DEFAULT VALUES?)
I made today a skinned mesh, and i tried out my Blockbench model with a animation and saw that the keyframes of this model that set to 0 not set into the model, so my question is now how can i ...
10
votes
1
answer
3k
views
Load 3D Model in Unity using Assimp
is it possible to load a 3D model in Unity using Assimp?
When i search for code samples with Assimp, i only find c++ samples using Virtual Studio.
I can load 3D Models with AssimpNET version 3.0 ( c#...
2
votes
1
answer
78
views
Strange relative paths containing "*0\0" or "*1\0" cutting off the first 3 characters of path while working with Blender, Assimp.NET and FBX files
I am trying to make a program to merge fbx models. Each model have multiple nodes. Some of the nodes have a specific name meaning that those are functioning as connection points for other models.
I ...
4
votes
4
answers
21k
views
Assimp does not import textures
I am using assimp to import 3d models in my game engine. For some reason, no matter what model or model format I use, assimp does not report any textures whatsoever. Why is this?
The following is the ...
1
vote
1
answer
96
views
What am I doing wrong when loading a skeleton and animation?
I am trying to load an animation and skeleton using assimp. Im not sure if im doing the matrix multiplication correct or if I'm missing a Inverse or transpose somewhere.
My engine is using a ...
0
votes
2
answers
1k
views
assimp compile error: DirectX_D3DX9_LIBRARY not found although directX is installed
cmake -G "MinGW Makefiles"
gives following error:
Looking for sys/types.h
Looking for sys/types.h - found
Looking for stdint.h
Looking for stdint.h - found
Looking for stddef.h
Looking for stddef.h - ...
2
votes
1
answer
1k
views
How to export an fbx from an imported obj using assimp
I am creating my C++ game engine and I wanted to be able to export my scenes using the FBX format.
So, when I tried to export an FBX from a previously imported OBJ file, that actually renders ...
0
votes
1
answer
1k
views
Add embedded texture to Assimp matrial
I want to add texture to my material and export it.
I added texture to scene->mTextures. and my question is how can I add this texture reference to my material?
0
votes
1
answer
81
views
How can I use assimp's aiMeshMorphKey to animate a character's facial expressions?
I'm trying to implement facial expressions using morph animation in my 3D application. I've been looking into the assimp library and found the aiMeshMorphKey structure within the aiAnimation. Could ...
2
votes
0
answers
825
views
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 ...
3
votes
2
answers
6k
views
"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 ...
0
votes
1
answer
613
views
building assimp using MinGW64
I am trying to build assimp-5.0.0 using MinGW64.
CMake CMakeLists.txt -G"MinGW Makefiles" ran without issues.
But when I call mingw32-make, I get the following issue at
[ 73%] Linking CXX ...
-1
votes
1
answer
69
views
What is aiAnimation in assimp library?
What is aiAnimation in assimp library?
I learned about implementing skeletal animation using assimp at the link below.text
Therefore, I loaded a 3D model file intended to be used in Unity and an FBX ...
0
votes
0
answers
15
views
Miscalculating skeleton matrices from assimp
After loading a model with assimp, all the bone data, nodes, etc, I went on a two step task to implement skinning.
If I use just the vertex data with the node hierarchy, I am able to render the model ...
2
votes
2
answers
2k
views
Wrong UV mapping applied on object OpenGl
I just want to load a object via Assimp (that works) - vertices, uvs and normals. Then I load a texture via SOIL library - through many tutorials, that work also fine, but when the texture is applied ...
0
votes
0
answers
39
views
CMake: including assimp header files and linking to shared library [duplicate]
I am trying to include the assimp library to import models. When I went to compile the code using CMake I got a series of errors. I followed the build instructions to build a dynamic library on Assimp'...
0
votes
0
answers
239
views
Helix Viewport + SharpDX - Loaded models not visible in viewport
For some reason I can't see any of the models I'm importing into this Helix viewport I've set up. I've tried a thousand code combinations, drawing from the examples in the HelixToolkit git as well. ...
1
vote
0
answers
47
views
How to convert UTextureRenderTarget2D to Assimp embaded texture?
I'm using Assimp to export FBX with embedded textures.
Reading an image from a png file (into the built-in aiTexture*) works fine.
But when I try to convert UTextureRenderTarget2D to aiTexel* pcData I ...
0
votes
1
answer
37
views
Getting a lot of "Duplicate class ... found in modules assimp.jar"
I'm creating an Android app using Kotlin to read PLY files and render them using OpenGL. I found about the Assimp library and tried some approaches like building from its source (had issues creating ...
2
votes
0
answers
2k
views
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 ...
0
votes
2
answers
536
views
Unresolved external symbol _aiGetMaterialTextureCount when trying to compile Assimp
I am trying to use Assimp in my C++ game engine but it fails to link. I know that "unresolved external symbol" means that the linker is unable to find the functions, but I know that I've set ...
0
votes
1
answer
2k
views
The best way to include assimp library using cmake
I build my project using cmake (It is important for me to work both generators: Ninja and Visual Studio). And I need to add assimp library to my project. So, I added assimp from git to my project as ...
0
votes
1
answer
295
views
PyAssimp error for any loaded file - Scene has not attribute meshes, materials or textures
I am trying to get any sample (including the ones found in the Assimp repo) to work. Using pyassimp 5.2.5 with Python 3.11.6. Below there is an example for a very basic call. I am loading an OBJ of a ...
0
votes
1
answer
91
views
Using rapidjson and assimp together causes rapidjson to behave unpredictably
I have the following test program (test.gltf is a file containing just "{}"):
#include "assimp/Importer.hpp"
#include "assimp/postprocess.h"
#include "assimp/scene.h&...
0
votes
1
answer
76
views
UV texture mapping issue in .X file using assimp
Describe the bug
UV texture mapping issue in .X file, sometimes it loads perfectly but in some rare cases it happens.
To Reproduce
Steps to reproduce the behavior:
Try loading Land_Objects_WareHouse....
2
votes
2
answers
1k
views
How is NormalTexture represented in the Wavefront 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 ...
0
votes
1
answer
717
views
Converting local space normals into world space
I need to convert a local space mesh into global space.
The resulting normal vectors don't seem to be correct.
I got the world transform matrix for the vertex (Which works, because the position of the ...
1
vote
1
answer
418
views
DirectX12 Problems with skeletal animation and Assimp library
I'm trying to implement skeletal animation in my game engine but I'm running into problems when animating the bones in C++. The character animates but the torso and arms appear twisted. I'm following ...
0
votes
1
answer
226
views
Issue Linking Assimp Windows 11
I am having issues with linking assimp in c++ for windows 11. I am working the the LearnOpenGL tutorial however I cannot get assimp to link correctly. I am able to make, and generate the assimp .dll ...
0
votes
1
answer
1k
views
OpenGL Assimp C++ Access Violation Reading Location 0x00000000
I have encountered a problem trying to run a simple model loader/displayer based off some tutorials. Whenever I compile the following code, I get this error:
Unhandled exception at 0x77ad15de in Test....
0
votes
1
answer
115
views
Bind different 3d models to a main model with opengl and assimp
I hope you're doing well. I am starting with OpenGL, and currently, I have been implementing Assimp to load 3D models and animations, and so far, everything is going well. However, now what I want to ...
0
votes
1
answer
75
views
cookTriangleMesh access exception
PxTriangleMesh* PhysX::CreateTriangleMesh(const PxVec3* verts, const PxU32 numVerts
, const PxU32* indexs, const PxU32 numIndexes, PxPhysics* physics, PxCooking* cooking)
{
// Create ...
3
votes
1
answer
981
views
How to load transparent materials using assimp?
I've got a simple scene with a transparent wall and 2 cubes.
The the base color of the transparent wall in Blender is set to: RGBA = {0.8, 0.2, 0.6, 0.3}
I've exported the scene to the gltf format ...
0
votes
2
answers
83
views
Improve mesh geometry serialization performance
I want to improve the serialization time of my 3D application.
I use the following scene for testing:
https://www.dropbox.com/scl/fi/j8ays9phm2xs45icla4bo/TestScene.zip?rlkey=qy8jpwgz3s8b95mz62l8axcug&...
0
votes
1
answer
134
views
getting multiple -fpermissive errors when trying to build assimp from makefile
I've downloaded the assimp source code from git using git clone https://github.com/assimp/assimp.git. I then used cmake, but I had to add the flag -DASSIMP_WARNINGS_AS_ERRORS=OFF in order to sidestep ...
0
votes
1
answer
514
views
Can Qt QSceneLoader object load and render GLB (3D model) file
I am using Qt6.5.2. My expectation is to load GLB file and render it in Qt window. As per Qt documentation for QSceneLoader class, QT supports GLB file but on loading GLB file in my Qt application, I ...
0
votes
1
answer
202
views
How to check that extracted FBX indices are correct?
I am trying to import FBX file using FBX SDK. Reference was "ImportScene" sample of FBX. I've extracted vertices (control point in FBX) and indices. I wanted to check whether the extracted ...
0
votes
1
answer
478
views
How can I get texture file by using assimp?
I am developing FBX model viewer using directx and assimp library. For loading texture, I called function like below. (I got FBX from mixamo)
aiString path;
mat->Get(AI_MATKEY_TEXTURE_DIFFUSE(0), ...
0
votes
1
answer
100
views
Unknown type name with Assimp library
I'm using the assimp library within my C project. I installed the library with sudo apt install libassimp5 and included the following headers:
#include <assimp/cimport.h>
#include <assimp/...
0
votes
1
answer
1k
views
How do I compile cmake generated binaries in 64bits using MinGW (Windows, GCC)?
I've been trying to compile the model loading library Assimp for my project using cmake and then MinGW. However, I don't know how to do that for 64bits which is what I'm using on my project. I used ...
1
vote
0
answers
62
views
Can you check if there are any errors in the collada (.dae) models that I extracted?
I used the Assimp loader in my DirectX 11 engine to open my .dae model files, but it's not functioning correctly.
My team and I don't believe there are any errors in my code, so I asked others for ...