Skip to content

Polymesh improvements#103

Closed
Bud-Macaulay wants to merge 3 commits intosuperstar54:mainfrom
Bud-Macaulay:polymesh-improvements
Closed

Polymesh improvements#103
Bud-Macaulay wants to merge 3 commits intosuperstar54:mainfrom
Bud-Macaulay:polymesh-improvements

Conversation

@Bud-Macaulay
Copy link
Copy Markdown
Collaborator

Currently the polyhedral rendering has a small issue where it does not to respect transparency and correct rendering is a function of camera position.

Image 1: Transparency works as expected, behind polyhedra are rendering correctly
image

Rotation by 180 around b:
Image 2: Transparency does not work as expect
image

Instead, ive switched the mesh rendering side to be Three.DoubleSide, this allows rendering out the box,
Additionaly, i've added edge drawing to these polyhedra, this probably comes with a small performance hit (but im fairly sure its minimal at best.) showEdges=true

image

The showEdges flag could be exposed to the controller api, both color, transparency and on/off so that these can be toggled in the controls panel., but this is not currently done.

@Bud-Macaulay
Copy link
Copy Markdown
Collaborator Author

If possible, it might be nice to test this change with AnyMesh (i dont think that uses DoubleSide...)

I think in principle this should allow anymeshes to render behind polyhedra better, but the otherway around may not be changed.

@Bud-Macaulay
Copy link
Copy Markdown
Collaborator Author

Closing as outdated w.r.t the materialscloud branch

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

Successfully merging this pull request may close these issues.

1 participant