ftguy2018 Posted November 2, 2018 Share Posted November 2, 2018 IS there a way we can load FBX file in with PANDA2 using that loader ? https://github.com/mrdoob/three.js/blob/dev/examples/js/loaders/FBXLoader.js Quote Link to comment Share on other sites More sharing options...
enpu Posted November 3, 2018 Share Posted November 3, 2018 Yes this should be possible. I have added this feature to the roadmap, thanks! Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted November 5, 2018 Author Share Posted November 5, 2018 Awesome, this will really help to move graphic assets from UNITY to panda2 if you know what I mean Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted November 8, 2018 Author Share Posted November 8, 2018 @enpu Also if possible it will be important to have also a 3D MESH class, so we can build a 3D object by coding and not only by loading static object, we may want to use it for 3D particles, object damage deformations and so on.... Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted November 26, 2018 Author Share Posted November 26, 2018 @enpu What is the compatibility with threeJS plugin and pixi plugin in the same project, can we get both webgl accelerated 2D with pixi and get also the 3D with threeJS ? Quote Link to comment Share on other sites More sharing options...
enpu Posted November 26, 2018 Share Posted November 26, 2018 @ftguy2018 Pixi and Three plugins are compatible together, i'm using them both in Diamond Dasher game. ftguy2018 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted December 21, 2018 Share Posted December 21, 2018 Three.js plugin has been updated to version 1.5.0 and it now supports FBX files! Download: https://www.panda2.io/plugins#three Here is small tech demo i made using animated FBX model: https://www.panda2.io/demos/3dbunny Wolfsbane and khleug35 2 Quote Link to comment Share on other sites More sharing options...
khleug35 Posted December 21, 2018 Share Posted December 21, 2018 4 hours ago, enpu said: Three.js plugin has been updated to version 1.5.0 and it now supports FBX files! Download: https://www.panda2.io/plugins#three Here is small tech demo i made using animated FBX model: https://www.panda2.io/demos/3dbunny 1 Woooooooooooo!!!!! Amazing!! nice!! wonderful!! Thank you for updated. Quote Link to comment Share on other sites More sharing options...
Wolfsbane Posted January 26, 2019 Share Posted January 26, 2019 How did I miss this? Really impressive demo! Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted February 27, 2019 Author Share Posted February 27, 2019 Sorry for replying late but that is really an awesome news ^^ Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 Hello, is there a way to see the project file of the bunny demo ? I had like to see how to initialize the fbx file and select the correct animation ? Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 Also I have downloaded the three.js plugin and ran it however i am getting that error see the image below, any idea ? Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2019 Share Posted April 18, 2019 @ftguy2018 I have just updated Three.js plugin to version 1.6.0 That issue should be fixed now. Thanks! Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 TGAloader is not available (the engine is saying) when loading FBX, is that possible to add it to the plugin ? Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2019 Share Posted April 18, 2019 Sure. Can you send your FBX so i can take a look? Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 @enpu thank you for the 1.6.0 quick update, I will replace the plugin and check again ^^ Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 @enpu Sure, here is the file attached mech.fbx Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2019 Share Posted April 18, 2019 You can add any Three.js loader from here: https://github.com/mrdoob/three.js/tree/dev/examples/js/loaders Just copy and paste the code into your project. Makes really no sense to add everything to the plugin, would make it really big. Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 Well, it makes sense to have support for some of the major graphics files format with alpha channel but anyway, I can download the tgaloader.js of course but then where shall I copy paste it ? within the game module ? outside ? in a different file ? Can you please kindly advise? Apparently it is not working when pasted at the top of the main.js file I am just getting Uncaught ReferenceError: THREE is not defined , so I supposed it must be pasted in some dedicated part of the project Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2019 Share Posted April 18, 2019 You can paste the code inside any module that you use in your project. Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 @enpu Thabnk you, so I pasted the code, there is no error however it does not load the embedded texture from the fbx file like it should but trying to access some resources which does not exist with a blob (please see image), I have switched to a simple file with just 1 static model and 1 texture, do you have any idea what is happening ? Maybe the connection between the tgaloader with the plugin is not correct ? pylon.fbx Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2019 Share Posted April 18, 2019 Looks like there is something that is unsupported in your FBX. Do you have any other FBX that you can try? If you are exporting the FBX file from another software, can you try different settings? I have tried few different FBX files and all loading fine. Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 18, 2019 Author Share Posted April 18, 2019 @enpu Would you mind sharing one of your test fbx which is working ? Really first I would like to make sure that I can see a model with texture displayed before moving on tweaking anything, so far, zero models can load with texture here, all polygons with textuer are transparent, so that is why I would like to confirm we have first a good implementation of the plugin. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 18, 2019 Share Posted April 18, 2019 *Deleted* Quote Link to comment Share on other sites More sharing options...
ftguy2018 Posted April 19, 2019 Author Share Posted April 19, 2019 @enpu thank you, we will give a try. I have a quick question about the implementation, fbx files can embed the graphics data as a files and do we need to have the files (textures) also in the media folder and the plugin will look for the name into the fbx file and load the graphic file or does the plugin extract the data out of the fbx file directly ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.