Apply textures to quads #62
dcnieho
started this conversation in
Features and improvements
Replies: 1 comment 1 reply
-
I love the idea, thanks for the contribution! This should be possible to implement and it sounds very useful, I'll take a look into it later this week! :)
ImPlot3D implements a "triangle" z-sort internally to make sure triangles are rendered in the correct order. It is not ideal when triangles overlap, but it works nice most of the time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be super cool if you are able to draw images positioned at a certain 3D position/orientation.
According to some googling its possible in matlab like this:

https://se.mathworks.com/matlabcentral/answers/300826-how-do-i-insert-an-image-in-my-2-d-and-3-d-plots-in-matlab-8-2-r2013b
which produces:
If i mess with a corner point this still works fine:

Being able to texture surfaces would be super helpful for applications, e.g., where you show some 3D reconstruction result.
I guess it is possible using custom rendering, adapting your example there. But then it would be nice if the library would support a way to z-sort for the current frame so that i can draw back to front. That would entail submitting geometry and then being able to iterate over the plot objects and having them returned in the correct order so occlusions would be correct.
Beta Was this translation helpful? Give feedback.
All reactions