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

Import .Off ignore alpha color. #516

Open
ricaun opened this issue Jan 6, 2025 · 0 comments
Open

Import .Off ignore alpha color. #516

ricaun opened this issue Jan 6, 2025 · 0 comments

Comments

@ricaun
Copy link
Contributor

ricaun commented Jan 6, 2025

Describe the bug

If a .off file is imported if the face have some alpha in the color of the face the alpha is ignored by the importer.

To Reproduce

Here is a cube_with_alpha.off sample with alpha included in the last 3 faces.

OFF
# cube_with_alpha.off
# A cube
8 6 12
 1.0  0.0 1.4142
 0.0  1.0 1.4142
-1.0  0.0 1.4142
 0.0 -1.0 1.4142
 1.0  0.0 0.0
 0.0  1.0 0.0
-1.0  0.0 0.0
 0.0 -1.0 0.0
4  0 1 2 3  255 0 0 #red
4  7 4 0 3  0 255 0 #green
4  4 5 1 0  0 0 255 #blue
4  5 6 2 1  0 255 0 100
4  3 2 6 7  0 0 255 100
4  6 5 4 7  255 0 0 100

Expected behavior

The imported file should include the alpha in the material.

The importeroff.js does not have that implemented.

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

No branches or pull requests

1 participant