Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Vertex Displacement, Locking specific vertices

General discussion about anything TouchDesigner

Vertex Displacement, Locking specific vertices

Postby omnivox » Fri Jun 28, 2019 5:07 am

Hi,

When doing vertex displacement via GLSL, is it possible to type in the numbers of certain vertices, and have them locked in position, so only the vertices around them is displaced?



Thanks

Soren
omnivox
 
Posts: 1
Joined: Mon Sep 17, 2018 11:14 am

Re: Vertex Displacement, Locking specific vertices

Postby jmt4zj » Wed Jul 10, 2019 12:31 pm

My recommendation to do this is to have a mask image of size (number of verts) x 1, and use that as a mask to multiply the displacement values from within the shader. Lots of other fun extensions to displacement are possible with this general technique - the power of custom attributes without the really slow performance of sops.
Jonathan Thompson
@pointshader
http://pointshader.com
User avatar
jmt4zj
 
Posts: 160
Joined: Mon Nov 01, 2010 3:15 am
Location: NYC


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 11 guests