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

Add BoxMapping for display mesh #710

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

IsakNaslundBh
Copy link
Contributor

Issues addressed by this PR

Closes #709

Adds box mapping to display mesh. This ensures textures are displayed on meshes - in particular critical for when a RenderGeometry with an assigned Texture with a bitmap is returned.

This could potentially be improved/expanded upon by changing the texture mapping method, but this simple box mapping seem to work decently well and be a good first step.

I tried also to use the CreateCustomMeshMapping, providing the mesh, but that gave worse results, in particular for vertical faces that got the texture displayed as stripes of the value applicable to a particular x,y coordinate.

Test files

Changelog

Additional comments

@IsakNaslundBh IsakNaslundBh added the type:feature New capability or enhancement label Oct 4, 2024
@IsakNaslundBh IsakNaslundBh self-assigned this Oct 4, 2024
@IsakNaslundBh IsakNaslundBh added the status:parked PR on hold, requiring further discussion or planning label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:parked PR on hold, requiring further discussion or planning type:feature New capability or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add texture mapping to Meshes
1 participant