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 texture coordinates/texture to one bone file (skull) and document the steps #42

Open
aymanhab opened this issue May 3, 2023 · 3 comments
Assignees

Comments

@aymanhab
Copy link
Member

aymanhab commented May 3, 2023

Now that we have the models for the visualizer baked into the repository we can improve the aesthetics by adding texture to the bones. Likely this will involve taking the bone into blender or another tool to unwrap it (at less prominent seams) and apply a texture to it to test. E.g. https://tileable.co/discover/bone/

@aymanhab
Copy link
Member Author

aymanhab commented May 3, 2023

The experience of @fcanderson and/or @tkuchida would be very helpful here

@tkuchida
Copy link
Member

tkuchida commented May 4, 2023

I tried a few strategies for the images in the textbook, including texture mapping the way you're "supposed" to do it, generating the textures procedurally, and a giant hack. The giant hack worked best and looked good enough (but don't tell my old graphics prof I did it this way 😉 ). Briefly, I used a generic bone-like texture tile and mapped it onto each triangle independently, calculating texture coordinates for each triangle from across the entire texture tile. This won't work in general since you're just naively stamping the texture tile onto each triangle, but it worked in this case because the texture itself hides the seams between triangles. (As long as there aren't any large features on the texture tile, you won't notice if a feature is partially cut off at an edge.) This strategy only required one relatively small texture tile and could be applied to any bone mesh without calculating/storing texture coordinates specifically for each mesh. Happy to discuss the details if that would be helpful. 🦴

@aymanhab
Copy link
Member Author

@AlbertoCasasOrtiz If you can document the steps in Blender for one file that would be great. Thank you

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