Issue with point normals and spinning effect.

   2173   5   1
User Avatar
Member
34 posts
Joined: Jan. 2017
Offline
I have experimented a issue with the way that Houdini is computing point normals in the next basic setup.

A tube, a box and a CopyToPoints or CopyStamps. When one of both radius values from tube is different and resulting shape is conic, point normals seems take a spinning effect. Usually average should produce a constant value in a regular shape like that, but each normal is rotating over its own axis in different value.

Someone knows how to solve this behaviour? Thanks!
Edited by AlbertoGZ - June 19, 2020 14:19:00

Attachments:
H18_spin.png (728.3 KB)
H18_spin.mov (2.8 MB)

User Avatar
Member
8539 posts
Joined: July 2007
Offline
you are missing up vector v@up attribute
you can create one by plugging Poly Frame SOP after your tube and rename tangentu to up
you can also change style to First Edge to get y axis aligned exactly with one of the edges
Edited by tamte - June 19, 2020 14:40:20
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
34 posts
Joined: Jan. 2017
Offline
Thank you Tamte!

Using up vector it looks better orientation, but still rotate the instances when radius tube changes.
I see also that Polyframe is setting orientation 90 degrees for some instances, even with style from centroid, when radius1 and radius2 is set at same value. If use grids instead boxes as instances to testing, then I see that.
Edited by AlbertoGZ - June 19, 2020 17:34:05

Attachments:
usingUpVector_r1r1.png (267.5 KB)
usingUpVector_r2r1.png (295.9 KB)

User Avatar
Member
8539 posts
Joined: July 2007
Offline
it does, because that direction is computed from N attribute

as an easy fix for your specific case you can append point wrangle after the polyframe :
v@N = normalize(v@N * {1,0,1});

EDIT: unless you mean you are still geting some twisting, which may is possible if you didn't switch Style to: First Edge
Edited by tamte - June 19, 2020 17:49:38
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
34 posts
Joined: Jan. 2017
Offline
Thank you so much!

However I need no override Ny component to keep instances aligned at whole with N.
I having twist in all tests that I have doing… :/
Edited by AlbertoGZ - June 19, 2020 18:50:24

Attachments:
tube_r1r1_right.png (319.1 KB)
tube_r2r1_wrong.png (340.4 KB)
tube_r1r1_upFirstEdge_wrong.png (333.1 KB)
tube_r2r1_upFirstEdge_wrong.png (371.6 KB)

User Avatar
Member
34 posts
Joined: Jan. 2017
Offline
I don't know how force to set up vectors to keep aligned instances without spnning. (red = tangentu, yellow=tangentv)
Edited by AlbertoGZ - June 19, 2020 20:52:37

Attachments:
Captura de pantalla 2020-06-20 a las 2.32.55.png (285.7 KB)
Captura de pantalla 2020-06-20 a las 2.37.17.png (280.9 KB)

  • Quick Links