-
Hello! I am attempting to load in a .obj file with its associated textures (.jpeg and .mtl). I am also trying to view this .obj file in 3D using WGLMakie. I have two questions:
Below is my sample code. Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
We implemented a mtl parser ages ago, but it has been bit-rotting away: https://github.com/JuliaIO/WavefrontObj.jl/blob/master/src/mtl.jl.. Do you really want matcap (pretty much an environment map, used for more interesting reflections), or do you just want a textured mesh? |
Beta Was this translation helpful? Give feedback.
-
@ffreyer @SimonDanisch |
Beta Was this translation helpful? Give feedback.
color = texture_pic
instead. (Matcaps are textures that use normals to map color onto a mesh. Afaik that usually only includes front facing normals so there isn't much transforming you can do.) The loading is done by FileIO/MeshIO. I'm not aware of any mtl loading capabilities. Makie also doesn't have a clean concept of materials yet (well maybe RPRMakie does)