assimp

Edge Collapse with assimp

ぃ、小莉子 提交于 2019-12-12 04:31:56
问题 I'm trying to implement the edge collapse in my game engine, there is a problem caused by Assimp. The indices that parsed from face.mNumIndices is always the increment order indexing. When I check the list of indices, the value should be sort of 0,1,2,3,4....,999... . But I know this is some kind of mechanism that used by Assimp, and the object are rendered all right. But there is another issue on Mesh Simplication, I could not generate the half-edge structure for this indices. I stuck on

Assimp not properly loading indices

♀尐吖头ヾ 提交于 2019-12-11 22:16:50
问题 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 D3D, but I don't found the answer. Can anyone describe in detail properly algorithm for loading indices from meshes. Thank's a lot! 回答1: Here is a example pulled from the assimp sample code on accessing the mesh indices. for (; n < nd->mNumMeshes; ++n

assimp import failing on Xcode

时光毁灭记忆、已成空白 提交于 2019-12-11 17:56:12
问题 What I'm trying to do ... to import assimp, specifically: #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> and some other assimp headers. I'm using xcode 10.2.1 . The errors im getting: What I tried I imported assimp in Link Binary With Libraries, which was installed with brew install assimp I reinstalled assimp with brew reinstall assimp , just in case. Nothing has changed. Xcode still can't resolve the dependency. I tried deleting the import the error

assimp demo loading 3d model

本小妞迷上赌 提交于 2019-12-11 02:49:21
问题 I'm having my first try with assimp loading a 3D model. The example is given here from lighthouse3d link It compiles without errors. However, I get a similar error to the error Jeffrey had discussed with the comments below the post. Ready for OpenGL 3.3 Import of scene bench.obj succeeded.WARNING: 0:? : ” : Version number deprecate d in OGL 3.0 forward compatible context driver No errors. WARNING: 0:? : ” : Version number deprecated in OGL 3.0 forward compatible cont ext driver ERROR: 0:35:

Assimp faces indices

怎甘沉沦 提交于 2019-12-11 01:23:37
问题 I have been using Assimp for a while and now I'm trying to load a .obj file. It loads perfectly, but I would like to manipulate the face data after loading it. Basically I have this in the simple cube.obj file (Full file - http://pastebin.com/ha3VkZPM) # 8 Vertices v -1.0 -0.003248 1.0 v 1.0 -0.003248 1.0 v -1.0 1.996752 1.0 v 1.0 1.996752 1.0 v 1.0 -0.003248 -1.0 v -1.0 -0.003248 -1.0 v 1.0 1.996752 -1.0 v -1.0 1.996752 -1.0 # 36 Texture Coordinates vt 1.0 0.0 vt 0.0 0.0 ... # 36 Vertex

Building assimp 3.2 does not work anymore

大憨熊 提交于 2019-12-10 22:59:58
问题 I can't build assimp 3.2 anymore. Yesterday it worked but today it doesn't. I am downloading assimp from here. Then I'm doing cmake CMakeLists.txt -G 'Unix Makefiles' and make as described in their INSTALL file. However when doing make I get the following error: [ 84%] Performing configure step for 'gtest' CMake Error at /home/gartenriese/Documents/assimp/assimp-3.2/test/gtest/src/gtest-stamp/gtest-configure.cmake:16 (message): Command failed: 1 '/usr/bin/cmake' '-DCMAKE_BUILD_TYPE=' '-Dgtest

Visual artifacts when loading OBJ model with Assimp

我只是一个虾纸丫 提交于 2019-12-10 21:06:07
问题 I am trying to integrate the Assimp loader to my framework. Everything is rendered fine, but in this spider model I'm rendering, its fangs are not being drawn as expected (see following picture). Below is the relevant code snippet: //Storing the Indices for (unsigned int t = 0; t < mesh->mNumFaces; ++t) { aiFace* face = &mesh->mFaces[t]; memcpy(&faceArray[index], face->mIndices, 3*sizeof(unsigned int)); index += 3; } //Storing the Vertices for (unsigned int t = 0; t < mesh->mNumVertices; ++t)

Building android app on Qt using additional library (Assimp)

假如想象 提交于 2019-12-10 17:36:23
问题 Hi I am trying to port an OpenGL desktop app to android. I have no knowledge of android development so am depending on Qt Creator to package the app. As part of the setup, I have invoked 'make-standalone-toolchain' script in android ndk with following settings --platform=android-21 --toolchain=arm-linux-androideabi-4.9 --system=linux-x86_64 Then I used android-cmake and passed it the path of my newly created standalone-toolchain, which created libassimp.so, libassimp.so.3, and libassimp.so.3

Assimp model loading library install/linking troubles

我是研究僧i 提交于 2019-12-06 22:13:35
问题 I'm trying to install Assimp to use in my projects, but I'm having some trouble. I'm currently using win 10 pro and visual studio 15 2017. I have downloaded Assimp 4.0.1.zip, extracted it into a directory, loaded cmakeGui and ran configuration twice, then generated into Assimp/build directory. Next I went into Assimp/build and I ran the Assimp.sln and chose the ALL_BUILD I think it was. I then copied all the files in the /code/debug that were alongside the .lib and .dll and moved them all

CMake error while configuring “install TARGETS given no RUNTIME DESTINATION for executable target ”assimp_simpletexturedogl“.”

天涯浪子 提交于 2019-12-06 05:19:39
问题 I'm trying to use CMake to configure assimp's samples but there are some error while configuring I've tried lot's of method but no one works. CMake Error at CMakeLists.txt:41 (INSTALL): install TARGETS given no RUNTIME DESTINATION for executable target "assimp_simpletexturedogl". CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required command is present. A line of code such as cmake_minimum_required(VERSION 3.2) should be added at the top of the file. The version specified may be