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
0
votes
1 answer

Importing obj file with Assimp

I was looking on the internet for some Assimp sample but without success. I have the following struct: struct VertexTextureNormal { XMFLOAT3 Position; XMFLOAT2 TexCoord; XMFLOAT3 Normal; }; Can anyone please post actual code that fills…
Quest
  • 2,764
  • 1
  • 22
  • 44
0
votes
1 answer

Undefined reference aiImportfile (assimp) using QT

I have bee trying to get assimp running in QT 5.2 in order to import some 3D objects, but Im having a problem with (I believe) the linker. I installed it via cmake, first downloading the source files from here…
gmm
  • 943
  • 1
  • 17
  • 30
0
votes
1 answer

Garbage Face related information from .ply file

I am trying to use ASSIMP to extract the vertex/normal/face information from a ply file and then render it using OpenGL. Following is the code : void PLYParser::importFile(std::string sFilePath) { const aiScene* scene = aiImportFile…
Amit Tomar
  • 4,800
  • 6
  • 50
  • 83
0
votes
1 answer

Problems when rendering objects in Ogre using Assimp

When I try to view 3D files (.3ds .dae etc ...), supported by Assimp, they are not displayed correctly. For example, "Jeep1.3ds" displayed me half the bodywork. All nodes of information, meshes and normal were obtained correctly, and the number of…
0
votes
1 answer

Can't run scene using AssImp on OpenGl

I'm using AssImp to parse a simple cube (as an example to test) to be used on OpenGl. But when OpenGl starts I see a glimpse of my scene with cube in it followed by this error on my Nvidia…
José Pinto
  • 686
  • 6
  • 11
0
votes
1 answer

Returning a pointer messes up the object (access violation)

I'm fiddling around with assimp and C++, and I wrote a simple function to load a scene from a file. However, when I try to return the pointer, the object gets messed up and I get access violation if I try to retrieve member data. This snippet should…
manabreak
  • 5,415
  • 7
  • 39
  • 96
0
votes
1 answer

loading binary STL model with assimp

I've started to get familiar with Assimp. My tasks with this library is quite simple, just to load a 3D model, visualize it and sparse neccessary information from it e.g. facets, facet normals... probably some manipulatinos with camera I've…
TSL_
  • 2,049
  • 3
  • 34
  • 55
0
votes
0 answers

ASSIMP bulid error : "invalid option -f"

This is my first question here, and i'm not good at english, so be merciful :D I am trying to build an ASSIMP library in Code::Blocks (MinGW compiler). I used CMake to generate C::B project (i haven't changed much apart from setting DirectX path and…
0
votes
1 answer

Can't export models with assimp by using exporter class

i am using assimp libary to load models to my ios app. but for some large model files loading times are too long for an mobil app. considering the convert process time. i decided to convert my models by a tool before run time. my main goal is…
Mehmet Emre Portakal
  • 1,774
  • 21
  • 37
0
votes
1 answer

Assimp not properly loading indices

I'm trying to load simple 3d model cube.3ds, but next error occurs: when I read indices to my vector, vector contains: [0, 1, 2, 3, ...]. It's not properly. I found almost the same topic: Assimp and D3D model loading: Mesh not being displayed in…
eugene
  • 31
  • 2
  • 5
0
votes
1 answer

assimp is failing to import 3d models when using threads in IOS

I am trying to import model to renderer by using assimp lib in IOS. My model file's size is 2mb; i can successful import models by not using threads. But when i run my codes inside a thread, assimp fails to import. Assimp::Importer* importer = new…
Mehmet Emre Portakal
  • 1,774
  • 21
  • 37
0
votes
1 answer

Linking Codeblock glut project with assimp library

Hello I am new with assimp and have a problem. When I try to include the: #include #include #include in a c++ glut project it says No such file or directory, so I obviously need to link…
Alek
  • 299
  • 2
  • 4
  • 12
0
votes
0 answers

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.exe: 0xC0000005: Access violation reading…
0
votes
2 answers

ASSIMP & paintGL() ,slow rendering (and crash)

I am using Assimp to load a .3ds file, and a QGLWidget derived class to draw it using PaintGL(). It works with small .3ds files (some KBytes) but if i try to render bigger files (like 1MBytes) the application crashes. Is my way too bad and twisted?…
Tcz
  • 661
  • 5
  • 18
0
votes
1 answer

GLSL Normal Mapping (Areas With 0.0 Lambert Gets Lit)

when i use the model's normal , the result is fine ( there are dark areas and lit areas , as i would expect from a simple lambert diffuse shader ) but when i use a normal map , the dark areas gets lit! i want to use a normal map and still get…
Darko
  • 1
  • 4