-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Drawing solid 3D uvw textures #3627
Comments
I started this PR to support 3d arrays, but run out of time for tests + clean up: |
@SimonDanisch thanks very much :) I'll look at the code and see if I can add some tests... |
I could not find any other uvw examples besides the cube above I created manually. Seems thats uvw is not very popular. Mostly used to store pre-computed shading. If we set
|
Can this be closed? |
Mostly - the mesh uv interpolation seems to work, but I'm not sure how the uv coordinates relate to the data that's passed in. A volume plot seems to indicate something fishy is going on...will post a youtube link in a bit. |
Hello,
The texture of a mesh can be expressed as a 3D solid. For example, the OBJ file format allows having
uvw
coordinates besides of 2Duv
ones. This is useful e.g. in complex meshes having a surface that can't be easily wrapped to a 2D textureuv
plane.Providing the texture as a Vector works. Seems that if I use a Matrix, the
w
coordinate is ignored. Using a 3D array results in an eror. Do I need to flatten auvw
texture into a vector with element order matching to those inmsh.uv
of meshmsh
?The last command results in error
with Mesh
The text was updated successfully, but these errors were encountered: