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

implement reversePolygonWinding for actual geometries, not just vertex entries in an obj file #29

Open
meszaros-lajos-gyorgy opened this issue Oct 9, 2024 · 1 comment

Comments

@meszaros-lajos-gyorgy
Copy link
Collaborator

currently this is the only way I can flip a mesh inside out:

loadOBJ('someobject', {
  reversedPolygonWinding: true
})

I learned from when working with the basketball map that torus geometries are for some reason render inside out in Arx, so I have to cover that up by making the polygon doublesided:
https://github.com/meszaros-lajos-gyorgy/arx-map-basketball-course/blob/master/src/prefabs/hoop.ts#L18

@meszaros-lajos-gyorgy
Copy link
Collaborator Author

I forgot to call toArxCoordinateSystem(geometry) and that fixes the torus, but apart from that it would be nice to have this feature.

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

1 participant