Sign in to follow this  
ftguy2018

ThreeJS and FBX file

Recommended Posts

@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....

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

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 
    

Share this post


Link to post
Share on other sites

@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

error.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

@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 ?

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.