497 questions
0
votes
0
answers
67
views
wrong transformes for model loaded with assimp in opengl
Im trying to apply the model's transforms by walking the node heirarchy, but the poses are wrong (im not trying to animate it, just load it in a pose by using the transforms given in the gtlf file)
...
2
votes
2
answers
66
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
92
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
235
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
206
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
215
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 ...
0
votes
0
answers
160
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
37
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 ...
1
vote
1
answer
128
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 ...
2
votes
1
answer
100
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 ...
0
votes
1
answer
99
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 ...
-1
votes
1
answer
76
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
41
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
319
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
69
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
40
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 ...
0
votes
1
answer
114
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
331
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
830
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 ...
0
votes
1
answer
94
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....
0
votes
1
answer
284
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 ...
1
vote
1
answer
497
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
126
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
85
views
cookTriangleMesh access exception
PxTriangleMesh* PhysX::CreateTriangleMesh(const PxVec3* verts, const PxU32 numVerts
, const PxU32* indexs, const PxU32 numIndexes, PxPhysics* physics, PxCooking* cooking)
{
// Create ...
0
votes
2
answers
85
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
581
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
228
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
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
75
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 ...
1
vote
0
answers
74
views
The .dae model loaded with Dx11 assimp looks strange
(The Pictures are at bottom)
I am currently using assimp in my DX11 engine to load models, but I am facing difficulty in concatenating two models together.
I am recreating Super Mario Odyssey for my ...
0
votes
1
answer
578
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
153
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
247
views
Assimp, BGFX and C++ trouble matching vertices to indices
I have been trying to make a generic model class in c++ that can use any underlying data type, defined by it's BGFX layout. To do this I have been using assimp to import the model data. Unfortunately ...
0
votes
1
answer
706
views
MinGW's linker (ld.exe) gives dozens of errors regarding the glfw3.lib static library file. Unlike the Visual Studio's (link.exe)
I'm not using any IDE.
Here is my only cmake file :
cmake_minimum_required(VERSION 3.8)
project(App VERSION 1.3)
file(GLOB_RECURSE APP_SOURCES
${PROJECT_SOURCE_DIR}/*.cpp
${PROJECT_SOURCE_DIR}/...
0
votes
1
answer
114
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
302
views
When do I use aiNode.mTransform
I'm writing a program that will load an animation from a file using assimp. According to this answer "The transform we use for skinning is (B_keyframe * offsetMatrix), where B_keyframe is the ...
0
votes
1
answer
1k
views
How can I load a model with assimp.net and C# when my current code isn't working?
I'm trying to import a model with assimp.net and c# but the my code doesn't work any help?
Here is my code:
public void LoadModel(string model, out float[] vertices, out int[] indices) {
...
0
votes
1
answer
714
views
Building Unreal Engine 5 project with Visual Studio for Linux - ld.lld : error
I am trying to build a Dedicated Server for an Unreal Engine 5 Project for Linux from Visual Studio.
The project contains a Plugin (UE4_Assimp) that relies on an external library (Assimp) for the ...
0
votes
1
answer
485
views
Importing 3d model(fbx) using Assimp creates higher number of vertices than original 3d model
I have a simple human face 3d model with 468 vertices. In blender stats also shows 468 vertices and 898 faces, when I import/read using Assimp, it becomes 2694 vertices(which I think 3×number of faces)...
3
votes
0
answers
347
views
Struggling to implement assimp skeleton into DX12
Recently I have been trying to implement assimp into Frank Luna's basic dx12 engine as part of my learning. I have had real trouble getting the matrix mathematics working correctly, and have hit a bit ...
1
vote
1
answer
243
views
how is the aiNode::mTransformation calculated?
When I want to load a model through Assimp library, I encounter such a problem:
The explanation of aiNode::mTransformation (https://assimp.sourceforge.net/lib_html/structai_node.html#...
2
votes
2
answers
2k
views
Assimp can't find utf8.h header
I've just started playing around with Assimp to parse some stl files. I built it from source and installed it as a static library in my system (Manjaro Linux x86_64 - Kernel 6.2.6-1). To get a feel of ...
0
votes
1
answer
423
views
undefined reference error when including both ompl and assimp packages with CMake [duplicate]
I get the following error when trying to compile my project using CMake
(I am on Ubuntu 22.04.2 LTS):
Consolidate compiler generated dependencies of target AssimpTest
[ 50%] Building CXX object ...
1
vote
1
answer
3k
views
how to build assimp as a static lib (/MT)?
I've been trying to build assimp as a static library using CMakeGUI.
I got assimp-3.1.1 for the source code. build location at assimp-3.1.1/build.
I got 2 options which appear to be relevant: ...
0
votes
1
answer
120
views
what's the lightest lib able to load FBX in Android?
what's the lightest lib able to load FBX in Android?
autodesk official fbxsdk still not support Android.
assimp workd in Android, but is there any other lib smaller than it?
thanks!
0
votes
0
answers
59
views
Using StandardCyborgCocoa add swiftassimp as a local library building for ios on mac m1
I got the git clones of StandardCyborgCocoa and swiftassimp locally on my mac, and installed assimp, a dependency of swift assimp, as homebrew. When I tried to apply swiftassimp as a local package in ...
1
vote
1
answer
492
views
How to read text(ASCII) files with Assimp?
I can successfully read binary files of different extensions(fbx, blend, ifc and etc.) with assimp but if file is not binary assimp failed reading.
#include <string>
#include <assimp/cimport....
0
votes
1
answer
303
views
Unexpected transformationMatrix and offset Matrix with Skeletal Animation
What I use:
Assimp to import .fbx files from blender
OpenGL for rendering
glm lib for handling matrices and vectors
I am trying to make skeletal animation work. I dont read the .fbx file directly ...
0
votes
1
answer
276
views
Assimp/DirectX depth problem when load 3d model
I'm trying to upload a 3d model using assimp. There is some strange thing going on with the depth. When I use the left-handed projection/view matrix the model looks like this. (The floor and parts of ...
0
votes
1
answer
720
views
Why does CMake fail to link my static library?
I am trying to link a static library which I have compiled from the assimp source to my executable CMake project so that it does not have to compile assimp as often since it's such a large library.
I ...