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 ...
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
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 ...
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 ...
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 ...
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 ...
-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
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. ...
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
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 ...
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 ...
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 ...
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
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
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 ...
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
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 ...
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 ...
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
668
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}/...
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
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 ...
1
vote
1
answer
2k
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
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....
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
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
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 ...
1
vote
1
answer
3k
views
What is the best way to add assimp to a CMake project?
I'm trying to build assimp as a static library to link it with my executable in a CMakeFile.txt file. The executable builds just fine but problem with this is that it takes a long time to link every ...
1
vote
1
answer
8k
views
Cmake : /bigobj: No such file or directory [duplicate]
When I was building an application of mine which used Assimp, I got an error
C:\Users\nitin\AppData\Local\Temp\ccA4Vs3q.s: Assembler messages:
C:\Users\nitin\AppData\Local\Temp\ccA4Vs3q.s: Fatal error:...
0
votes
2
answers
6k
views
How to set/unset compiler flags in a cmake project?
I am new to cmake and made a cmake project with scaffolding provided by qt creator. I added a library (assimp) in source form. While compiling my project with the default kit (mingw), I get errors ...
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
680
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
230
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
277
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 ...
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
1
answer
426
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)...
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
589
views
Assimp Error when loading model in the browser ( WASM )
I am trying to load a .glb 3d model (glb is the binary version of gltf) using Assimp ... in a browser.
I am using cmake.
Assimp is built with the following Options :
SET(ASSIMP_INSTALL ON CACHE BOOL &...
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
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
0
answers
315
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 ...
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
700
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 ...
1
vote
1
answer
445
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
1k
views
how to get the model's max x,y,z withing loading model by assimp
I want to split model space with octree to check intersection detection,
so i need known model's max x,y,z and min xyz.
to get the result,i traverse all meshes's vertex and compare them