Custom Render Texture + Vertex Positions
Posted: Fri Jan 18, 2019 7:26 pm
Hi ASE,
I have a bit of a complicated question, and I might butcher explaining what I'm trying to achieve. Essentially, we're deforming a plane and would like to generate a readable texture that maps the vertex positions onto the RGB channels to be read by a script. By doing this, we want to be able to position world objects at specific vertices by simply reading the texture's pixel values.
After some research, we did stumble across this post http://amplify.pt/forum/viewtopic.php?f=8&t=752 about how ASE now supports the use of custom render textures.
So my question is: how would you approach creating this RBG texture based on vertex positions of a plane in ASE? From there, following your existing example of how to pass it into a custom RT seems quite simple.
Thank you!
I have a bit of a complicated question, and I might butcher explaining what I'm trying to achieve. Essentially, we're deforming a plane and would like to generate a readable texture that maps the vertex positions onto the RGB channels to be read by a script. By doing this, we want to be able to position world objects at specific vertices by simply reading the texture's pixel values.
After some research, we did stumble across this post http://amplify.pt/forum/viewtopic.php?f=8&t=752 about how ASE now supports the use of custom render textures.
So my question is: how would you approach creating this RBG texture based on vertex positions of a plane in ASE? From there, following your existing example of how to pass it into a custom RT seems quite simple.
Thank you!