Why does normalizing not working in this case?

   1735   4   1
User Avatar
Member
8 posts
Joined: 10月 2016
Offline
Hello,

I'm stucking since hours on normalizing point normals. It should
be really simple but – I have no idea why – it doesn't work.
You can see the vector in the screenshot. If I normalize this vector
it stays as it is. But it should be converted later in a vector field
for use in a dop sim.

In another test setup with a simple grid that has point normals it
works fine.

What is here the difference? Thank you so much for helping.

Kind regards
Mark

Here is a screenshot


The scene is attached
Edited by markreinhardt - 2020年4月14日 03:47:47

Attachments:
screen.jpg (2.5 MB)
normalize.hiplc (858.4 KB)

User Avatar
Member
555 posts
Joined: 2月 2017
Offline
01) there's no abc files
02) got sick of waiting around for your vdb set at 0.001
03) what about a simple wrangle @N = normalize(@N); ?
User Avatar
Member
8 posts
Joined: 10月 2016
Offline
Hi Vusta,

sorry about that – I missed to attach the alembic files.
Now there is a zip file including the .abc's attached. And I've
removed the volume calculations as they are not needed for this step.

I've tried the @N = normalize(@N); wrangle, too. It doesn't bring the values
to the range 0 … 1.

Of course in the grid examples this works fine.

Attachments:
scene.zip (60.0 KB)

User Avatar
Member
8772 posts
Joined: 7月 2007
Offline
those are probably super tiny numbers, just expand your collumn width, will probably say something like -2.731531534e-16

EDIT: also based on your screenshot you may have Full Precision turned on for Spreadsheet otherwise you'd see it straight away as it would be much shorter, something like -2.73153e-16
Edited by tamte - 2020年4月14日 04:39:30
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
8 posts
Joined: 10月 2016
Offline
You are absolutely right. Thank you.
  • Quick Links