Page 1 of 1

Local Vertex Offset not displacing

PostPosted: Sun Jan 13, 2019 4:22 pm
by JohnnyFactor
I am using Local Vertex Offset to displace geometry but it only happens at render time it seems. The plane remains flat in the scene and all my raycasts see only a flat plane. I feel I am misunderstanding what vertex offset actually does and some enlightenment would be greatly appreciated.

scene.jpg
scene.jpg (137.63 KiB) Viewed 3291 times


ase.jpg
ase.jpg (141.7 KiB) Viewed 3291 times

Re: Local Vertex Offset not displacing

PostPosted: Mon Jan 14, 2019 2:21 pm
by Amplify_Borba
Hey there, the Vertex Offset displacement not showing up on the scene view wireframe shouldn't happen if you're on Windows, however, Mac has some editor specific issues that might prevent Vertex Offset or Tessellation to show up in the scene, could you confirm which platform and Unity version you're currently on?

Regarding the raycast issue, this is not really an issue nor it is ASE related. In short, if you're performing a raycast via script it will be calculated by the CPU, and since the Vertex Offset operations are calculated by the GPU, it's expected that the data mismatches. You would likely have to perform the vertex deformation on the CPU and then update the mesh collider in order for this to work as expected.

Re: Local Vertex Offset not displacing

PostPosted: Mon Jan 14, 2019 4:53 pm
by JohnnyFactor
I am on mac, 10.14.2. Unity version 2018.3.1.

Thanks for clarifying what's going on. Some basic Googling shows I might be able to use sharedMesh to get around the collider issue.

Re: Local Vertex Offset not displacing

PostPosted: Tue Jan 15, 2019 8:39 am
by Amplify_Borba
No problem, thank you for sharing your findings with us!

Please don't hesitate to get back in touch if you have any further questions or come across any issues.