Hi!
I wanted to create a tool that is a lattuce deformer but in screen-space of a given camera. So the lattuce grid would be shaped rather like a viewer frustum than a cube. Then I'd like to feed NDC coordinates to each destination point that works in screenspace.
So I started with a lattuce and for now projected the entire lattuce on a grid through a camera. This is where I ran into problems:
I projected the lattice onto a grid using “User Defined” axis and the vector is calculated by subtracting the lattice point position with the camera position (nothing fancy). I'd expect that vector to project the lattice onto the grid so that when looking through the camera the source grid and projected grid would entirely overlap. But that's not the case (see image).
Then the second problem I'm running into is that the lattice SOP errors because the project SOP is adding the projection and source lattice geometry to the stream so that the lattice resolution does not match anymore.
Any ideas so far?
Thanks a lot!
Nhat
Screen-space based lattuce deform
3445 4 2-
- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
-
- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
-
- vleermeneer
- Member
- 245 posts
- Joined: Sept. 2011
- Offline
-
- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
-
- Phong
- Member
- 65 posts
- Joined: July 2008
- Offline
-
- Quick Links

