Jump to content

Creating "exploding" normals - better way to do it?


Recommended Posts


I've quickly created a simple setup, which adds normals on points - pointing away from a specific point.

To be honest, I don't really like the way my setup works, because I am translating the area to the worldspace center, create the "exploading" normals (Pointposition -> Point normals), and then reposition the points back into their original position.

It gives me the desired result, but I would prefer to solve this via vopsops (or any other faster method). The big disadvantage with this method I have right now is, that it only works from one specific position of the pointcloud. Since I am centering the points, it doesn't work if I want to have multiple "exploding" pointnormals within the same pointcloud.

I thought of creating a foreach for each point and setting its normals to a specific direction, but that is overkill I suppose and doesn't sound very ... smart :(

Any advice would be great!




Link to comment
Share on other sites


You don't have to do any of that. Just create an AttribWrangle SOP and add a vector3 parameter called origin, and use this:

@N = normalize(@P - chv("origin"));[/CODE]

Also you don't need to use nodes to calculate the average of point positions. You can use the pointavg expression that refers to your delete node.

Or you could use the avg VEX function. But I believe pointavg will be faster.

Link to comment
Share on other sites

Thanks magneto and mantragora!

@magneto: Unfortunately I am still using 12.1, no wrangle nodes :(. If you know a way how to do it without those nodes, please let me know.

@mantragora: Thanks, that looks really nice. I would have never thought about the buldge sop for that effect. I'll change it into vopsops (whatever is possible) and will post it here again, if anyone else wants to see it.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...