Skip to content
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

Rendering errors when modifying fox.obj #21

Open
smartcontracts opened this issue Dec 18, 2019 · 3 comments
Open

Rendering errors when modifying fox.obj #21

smartcontracts opened this issue Dec 18, 2019 · 3 comments

Comments

@smartcontracts
Copy link

Hi, I'm working on a modified version of this logo as part of this GitCoin issue. I'm having issues getting the fox to render correctly after changing some polygon colors in 3DS Max. 3DS Max and Windows' built-in 3D object viewer seem to both render the fox correctly, though.

Here's the result when using this library:
snip

Steps to reproduce:

  1. Open fox.max in 3DS Max.
  2. Change the material of some of the polygons.
  3. Export fox.max to fox.obj and fox.mtl using default settings.
  4. Execute npm run convert and npm run start to view broken image on web.

I briefly took a look at the code and noticed that the polygons are correctly generated here, but are then being hidden either when the determinant is negative or because the z-index is zero. I'll mess with this a little more and see if I can figure out the exact cause of the issue.

@danielbayley
Copy link

@smartcontracts Did you figure out a fix for this issue in the end?

@smartcontracts
Copy link
Author

I did not :-/ are you running into the same issue?

@Gudahtt
Copy link
Member

Gudahtt commented Feb 17, 2025

This may have been because the runtime code assumed polygons were triangles. Rectangles were not supported. It was recently updated in v4 to split rectangles into trianges when rendering: #118

Please let us know if this has been resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants