Local Vertex Offset not displacing

Node-based Shader Editor
Post Reply
JohnnyFactor
Posts: 9
Joined: Thu Aug 16, 2018 2:43 pm

Local Vertex Offset not displacing

Post 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.17 KiB) Viewed 4668 times
ase.jpg
ase.jpg (141.15 KiB) Viewed 4668 times
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Local Vertex Offset not displacing

Post 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.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
JohnnyFactor
Posts: 9
Joined: Thu Aug 16, 2018 2:43 pm

Re: Local Vertex Offset not displacing

Post 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.
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Local Vertex Offset not displacing

Post 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.
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply