TheGameCreators / GameGuruRepo

The GameGuru Repository For Community Collaboration
http://www.game-guru.com
137 stars 56 forks source link

Improve FBX Importing with latest ASSIMP API #3501

Open leonardosedevic opened 2 years ago

leonardosedevic commented 2 years ago

Hi i tried the importer, First try it worked, second time not working anymore When i import my 3ds max it's correctly imported, then i save it and add it to the LEVEL when i CLICK to add the object to the level the TEXTURES are then broken !!! see the pictures !

the importer show the object with the right texture: https://ibb.co/8rFMxP1 I add then the object to the level, but i have NOT clicked to drop the object in the scene: https://ibb.co/LzXDngr I CLICK to add the object to the scene and BOOM textures broken: https://ibb.co/4Pg4KyG

HERE i imported the object on the LEFT worked One time, i imported again the same object from the library and BOOM texture destroyed on the right side: https://ibb.co/LhWrRCb

Also the Collisions doesn't work tried everything...!

This is a serious bug !

leonardosedevic commented 2 years ago

3D modern house.zip

casigus commented 2 years ago

I FEEL you with this, the importer is broken, and theres no pattern to it, one moment it works, the next it completely breaks your pc. I'm really really f**king fed up with it. its lighting fighting a bear. https://www.youtube.com/watch?v=ZLdTEBSmMRk&ab_channel=CJ

synchromesh62 commented 2 years ago

@casigus Please refrain from the profanity.

Necrym59 commented 2 years ago

Please remember it IS Early Access guys, everyone has been told time and time again that things will change/break/fixed as time goes on towards full release. Just report the bugs and wait.

leonardosedevic commented 2 years ago

I HOPE that Lee & his team are going to fix this huge bug as soon as possible !

davetgc commented 2 years ago

Please post models that are causing importer issues, it's impossible for the team to test causes without the offending model.

leonardosedevic commented 2 years ago

Well if you READ & watch my post you can see that i ADDED the files from the first day i posted this question.................!

casigus commented 2 years ago

I DID DAVE. even SENT THEM to lee.....

casigus commented 2 years ago

this issue is like, its on going because was told it was fixed, but it wasn't. Ill keep playing around on my end!

synchromesh62 commented 2 years ago

Hi i tried the importer, First try it worked, second time not working anymore When i import my 3ds max it's correctly imported, then i save it and add it to the LEVEL when i CLICK to add the object to the level the TEXTURES are then broken !!! see the pictures !

the importer show the object with the right texture: https://ibb.co/8rFMxP1 I add then the object to the level, but i have NOT clicked to drop the object in the scene: https://ibb.co/LzXDngr I CLICK to add the object to the scene and BOOM textures broken: https://ibb.co/4Pg4KyG

HERE i imported the object on the LEFT worked One time, i imported again the same object from the library and BOOM texture destroyed on the right side: https://ibb.co/LhWrRCb

Also the Collisions doesn't work tried everything...!

This is a serious bug !

Ok so i checked this one out myself. It turns out there is no importer bug at all .. The problem is the model itself. After loading it up in UU3D there are actually 2 models overlapping each other one textured and one not causing the textures to mess up and the collision issue as one was partially blocking the doorway etc

After quickly rectifying and removing the duplicate invisible model i then remade the textures in the correct format and it imported just fine without any collision issues ..You may want to use a better source of models or fully check them first. The fact you even managed to get it into Max at all in that state is credit to the importer.

B1

leonardosedevic commented 2 years ago

well can i import that models with different objects ? i mean walls+windows+doors at once or do i have to import each element separated ???

synchromesh62 commented 2 years ago

Hmm well if you make the windows as individual assets then you can import them separately and place them. Or if you want to get more in depth you could add them to the model itself in a model program

The doors in this pic i have grouped separately and placed them as groups. The whole model will import as is .. or i could remove a door or all the doors and import one as a separate asset so i can place them and have them open and close. I think thats what you mean.

import1

leonardosedevic commented 2 years ago

3D modern house.zip Well what i mean is, here i give you the fbx, its a 3ds max grouped objects saved in fbx format, you have the walls teh windows & the frame windows & door, 3 separated object but grouped ! is it possible to IMPORT the full object at once in game guru max ?? That would be excellent if it's possible trying on my side but when i import the fbx objects are not at the right place ! Here i imported the multiple object fbx into GGM but it fail completely ! fbx-multiple-object-imported-fail01

In another game engine i imported the multiple (grouped 3D object) fbx at once and i get the good result as espected ! render render02 render03

leonardosedevic commented 2 years ago

Can Lee or another developer look into this issue of GGMAX ??

THANKS !

LeeBamberTGC commented 2 years ago

@leonardosedevic I also had a closer look. I am sure the issue is the ASSIMP FBX loader getting the orientation of the model wrong, and not combining common materials too. The result is what you see. When I used my UltimateUnwrapPro to load as FBX and save as X, then use the model importer, I had better results:

image

As you can see, it retained all the pieces, and using the importer was also able to set the windows to the correct texture and as transparent so they worked in game. I did notice the -normal texture is very wrong, and should look blue in color, this one looks like some kind of grey scale format I am not familiar with for normal maps.

FBX having been around a long time now, and so many variants to choose from, it can be pot luck if the tool you use lines up with the FBX variant you have to import. GLTF is much newer, and more standardized, and highly recommended for MAX.

I will leave this open with the above notes as there is a possibility the latest version of ASSIMP may have a fix and we can incorporate additional FBX variant detection into a future update to the model importer.