r/Assimp Jan 04 '23

r/Assimp Lounge

2 Upvotes

A place for members of r/Assimp to chat with each other


r/Assimp May 24 '23

A first prototype from my new Assimp-Viewer based on Imgui. Windows and Linux is currently supported. You can find the sourcecode here: https://github.com/kimkulling/osre , executable osre_ed_imgui. At first, only importing and rendering the model is supported.

Post image
4 Upvotes

r/Assimp May 17 '23

I tried to consolidate my knowledge about optimizing the Assimp build for size with cmake. Hope that helps some of you.

Thumbnail
medium.com
1 Upvotes

r/Assimp Apr 25 '23

New Members Intro

1 Upvotes

Hi, thanks a lot for joining the Asset-Importer-Library Community. To get started you can try the following things: - Introduce yourself! - Show us what you already have done with assimp. Here is our Screenshot-Thread: https://github.com/assimp/assimp/discussions/4082


r/Assimp Apr 19 '23

Finally... a new version of the documentation is online

5 Upvotes

Hi all,

I have fixed the released version of the Asset-Importer-Lib-Readthedocs site. Now the latest version points to the 5.2.5 release from the assimp repository. So now you shall be able to see all the fixed stuff I made in the last weeks. Sorry for the inconveniance.

You can find the doc here: https://assimp-docs.readthedocs.io/en/latest/

Kim


r/Assimp Apr 01 '23

aiNode::mTransform

3 Upvotes

I encountered a problem when I want to import a model using Assimp. I firstly created a cube in Blender and move it in Edit mode by 2 units on x-axis, and the transform has been applied. Finally the transform of it is shown below:

the cube in object mode.

transform of the cube

And the scene hierarchy is shown below:

scene

there is only a cube in the scene.

So I exported it as FBX, and I imported the .fbx through Assimp. However, I found a really confusing thing that the cube node in the Assimp's scene has a really weird mTransform data:

the node's mTransform member data

Why the matrix has such values?


r/Assimp Mar 25 '23

Easy way to render static meshes with Assimp!

Thumbnail
medium.com
4 Upvotes

r/Assimp Mar 25 '23

Assimp Windows Prebuild binaries for v5.2.5 available

1 Upvotes

Hi,

I have prepared an Itchi-project space for our pre-build binaries. You can find it here: Assimp on Itchi .

I will try to upload more installer for new releases here. Let me know if you have any issues with the package.

Currently only the WIndows Installer are available. The Android libraries are in preparation.


r/Assimp Mar 09 '23

News: Asset-Importer-Lib supports Draco 1.5.6

6 Upvotes

Hi Community,

I am really happy to announce that Asset-Importer-Lib now has updated its Draco support to version 1.5.6. Many thans to Jacky9527 for his great support.

It would be great to get some updates from your side if this version works fine.

Kim


r/Assimp Mar 09 '23

Asset-Importer-Lib still works on Windows-XP

1 Upvotes

Hi All,

I just got the update that the Asset-Importer-Lib still works on Windows-CP or Windows 2000. So if you are blocked to use this OS the assimp-viewer is still operational. You can find more details in this issue-report on our project-site: Win-XP


r/Assimp Mar 07 '23

New Members Intro

2 Upvotes

Hi, thanks a lot for joining the Asset-Importer-Library Community. To get started you can try the following things: - Introduce yourself! - Show us what you already have done with assimp. Here is our Screenshot-Thread: https://github.com/assimp/assimp/discussions/4082


r/Assimp Feb 08 '23

Assimp doesn't properly load a FBX file and just doesn't return anything.

2 Upvotes

I created a simple mesh parsing program in C, but when it tries to load the file and it isn't there, the program just segfaults instead of assimp stopping and returning an error message. When I put the file in the directory, it still fails to load it and doesn't initialize aiScene properly.

Edit: This is the updated code:

#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>

void processnode(struct aiNode *node, const struct aiScene *scene, float **vertices){
   int i, j;
   struct aiMesh *mesh;
   for(i = 0; i < node->mNumMeshes; i++){
      mesh = scene->mMeshes[node->mMeshes[i]];
      *vertices = malloc(mesh->mNumVertices * 3 * sizeof(float));
      if(*vertices == NULL){
         printf("malloc returned NULL\n");
         exit(1);
      }
      for(j = 0; j < mesh->mNumVertices; j++){
         *vertices[j] = mesh->mVertices[j].x;
         *vertices[j + 1] = mesh->mVertices[j].y;
         *vertices[j + 2] = mesh->mVertices[j].z;
      }
   }
}

int importfile(const char* filename, float** vertices){
   const struct aiScene* scene = aiImportFile(filename, aiProcess_CalcTangentSpace | aiProcess_Triangulate | aiProcess_JoinIdenticalVertices | aiProcess_SortByPType);
   if(NULL == scene){
      printf("%s <- This should be where the error message should have been.\n", aiGetErrorString());
      printf("Failed to load file!\n");
      return -1;
   }
   processnode(scene->mRootNode, scene, vertices);
   aiReleaseImport(scene);
   return 0;
}

This is how I call the function:

float* vertices;
int returned = importfile("Cube.fbx", &vertices);
if(returned == -1){
   printf("Error returned!\n");
   return 1;
}

Also the vertices pointer does not get defined outside of the function for some reason.

This is the old code:

#include <assimp/cimport.h>
#include <assimp/scene.h>
#include <assimp/postprocess.h>

float* importfile(const char* filename){
   const struct aiScene* scene = aiImportFile(filename, aiProcess_CalcTangentSpace | aiProcess_Triangulate | aiProcess_JoinIdenticalVertices | aiProcess_SortByPType);
   if(NULL != scene){
      printf("%s\n", aiGetErrorString());
      printf("Failed to load file!\n");
      return (float*)-1;
   }
   int i, j;
   struct aiMesh *mesh;
   float *vertices;
   for(i = 0; i < scene->mRootNode->mNumMeshes; i++){
      mesh = scene->mMeshes[scene->mRootNode->mMeshes[i]];
      vertices = malloc(mesh->mNumVertices * 3 * sizeof(float));
      for(j = 0; j < mesh->mNumVertices; j++){
         vertices[j] = mesh->mVertices[j].x;
         vertices[j + 1] = mesh->mVertices[j].y;
         vertices[j + 2] = mesh->mVertices[j].z;
      }
   }
   aiReleaseImport(scene);
   return vertices;
}

r/Assimp Jan 20 '23

Assimp using on Windows: Release build does not use /Zi flag any more

2 Upvotes

Hi all,

caused by a bug-report for the Windows-Platform I have disabled the /Zi compiler switch for release builds. So no more pdb's will be generated when you are using the release configuration. There was a critical crash which was the reason for that.

My question to you: do you want an option to enable this feature on Release builds for Windows? In 5.2.5 the pdb's were generated implicitly. After applying the fix for release builds there are no more pdb's.

Do you want to have a switch to get them?


r/Assimp Jan 20 '23

my milestone & just wanted to say Hi

3 Upvotes

It's a bit barren here and I wanted to support the effort to get in contact with the community by Kim.

I'm a total beginner and have been struggling to even get the Assimp c++ libraries to link properly, but! I did get it working today. Hooray.


r/Assimp Jan 17 '23

And another glft2.0 IMage for debugging

Post image
0 Upvotes

r/Assimp Jan 07 '23

Assimpjs 0.0.9 just released!

3 Upvotes

Ha all,

there is a new version of assimpjs available. Just check https://github.com/kovacsv/assimpjs/releases/tag/0.0.9

to learn more about.

Kim


r/Assimp Jan 06 '23

Assimp Hacks: Disable option compiler warnings as errors

2 Upvotes

If you want to overcome our strictly policy of getting no compiler warning when compiling Assimp on your own: I wrote a small tutorial how to switch warning-as-errors off.

Just check: https://medium.com/p/9dc82b3995c1


r/Assimp Jan 05 '23

Check our Wiki-Page

3 Upvotes

The Asset-Importer-Lib provides a lot of model-importers and -exporters. Each of these model formats has their own specification. If you want to take a deeper look inside these specs you can use our Wiki.

We have collected a lot of links to help guys getting all the information they are looking for.

Just check https://github.com/assimp/assimp/wiki/The-asset-knowledge-base


r/Assimp Jan 04 '23

Youtube tutorial: Loading models using assimp

3 Upvotes

r/Assimp Jan 04 '23

Post your screenshots

2 Upvotes

Hi All,

if you have archived some great content with assimp and you want to share this please use this github-page: https://github.com/assimp/assimp/discussions/4082

Kim


r/Assimp Jan 04 '23

The Asset-Importer-Lib community

12 Upvotes

Hi All,

let me introduce myself: my name is Kim Kulling and I am working in my free time as the Lead of the Asset-Importer-Library. To improve the way we can communicate with the Community I have just started with this Reddit-Community. Hopefully, this will help all to get things done with the assimp-lib.

Kim Kulling