-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing AsImpL with 3D models #3
Comments
Hey gpvigano, When I use the AsImpL library to import the model I get a bit of a weird result: First off, the orientation is wrong (which might be a wrong import setting by me). Only a very small amount of child objects have materials and some of them don't even have renderers. I only get one error and one warning when processing this file: Unable to compute tangent space vectors - texture coordinates not defined. I also tested this model (exact same data/file) with another library and ended up with this: A part from that I also tried some other models like this guitar by David Edwards: https://poly.google.com/view/bf6_h_1wp2D. Thanks in advance for the help. |
You found some bugs, thanks for your feedback, anyway, did you use the latest version? I got a different result (I unchecked the Z Up toggle): |
That triangulation algorithm works really well even if it doesn't support concave polygons. Thanks for the fix. Another issue that I forgot to mention before is that I'm using an online storage platform that uses a "&files=model.obj" suffix on the link in order to point to the file that is accessed. Problem is that the LoaderObj class uses this to try and find the MTL file:
This is why in my earlier post the high tea model didn't have any materials. |
@LucasWalters I think
with
and tell me if it works for you. If so I will commit this change. |
@LucasWalters can you test if the above changes work for you or at least give me an URL for testing? Thanks. |
My apologies for the late response @gpvigano, I made a test folder with a few models from Poly Google so you can test it if you want to: To download only the model I would use the link like so: Thanks for the work you're putting into this! |
@LucasWalters You're welcome. I made some changes to enable downloading from PHP-based: if the URL contains a "?" and ends with ".obj" the LoaderObj class starts from last "=" to extract |
Hi gpvigano, For some reasons, I'm having issues loading the obj I want successfully. I've tried the examples you provided with your example scripts (AsImpLSample.cs) and it works wonderfully, but when I tried to load the obj I want to load, it failed. This is the result I got (sometimes it takes more than 30 seconds to load partially, sometimes about 14): And here's what I got by importing it manually with the material applied: Here's the file I'm using with .obj and .mtl in zip. As you can see in the image above, I didn't get any error message as it says the obj is loaded successfully, so I don't know what further information I can provide. Could you look into it and see if there's anything wrong or it's just me not knowing how to use the loader? Thanks in advance. |
I'm having an issue where the imported models are much darker than they should be. I've verified this by comparing them with the same model as DAE imported by Unity, as well as with Blender opening the same OBJ or the DAE: The left version is the version as is imported in Unity by AsImpL. The right one is the way it should be. (Notice both the darkened colors as well as the metallic reflection.) When comparing the shaders, it appears that AsImpL leaves the value of
To:
But I'm not familiar enough with OBJ and shaders to know if this is the "correct" solution. I've tested three models, and all of them expose the same issue and seem to be fixed by adding this line. EDIT: This is in Unity 2019.4.18f1. |
@harry881218 @NoTuxNoBux Does something like |
I opened this issue to help the users who found any problem loading models with AsImpL (like @trevortknguyen in issue #2, or @Alacrious who contacted me via e-mail).
You can write a comment to this issue to share details about the problems you found (errors, performances issues, ...), in this way who has the same problems can read questions and answers.
If you need to send information or 3D models for testing and you can't or don't want to share them here, you can contact me at [email protected]
If you want to suggest new features, you find bugs or whatever else, please open a new issue or make a pull request.
The text was updated successfully, but these errors were encountered: