Isotropix Forums

Scatter rotation (Clarisse PC) with Alembic custom property?

General Discussion about Isotropix and CG related topics

Scatter rotation (Clarisse PC) with Alembic custom property?

Unread postby atnreg » Sun Mar 08, 2020 3:12 pm

Hi!

I know how to use Alembic property to rotate scattered objects when the Scatterer's Geometry Support comes from Alembic pointcloud (i.e. extract_property to Scatter Rotation) .

But how can I utilize Clarisse PointCloud and still rotate scattered objects using Alembic property attached to underlying geometry (points or primitives) instead of geometry normals?

I am scattering needles on a conifer tree and if I do the pointcloud in Houdini, it nearly chokes and also then I don't have full control of the needle distribution in Clarisse.

Any ideas? :)

Thank you!
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA RTX 3090,Win10
UE5,Clarisse 5.0(always latest SP),Houdini,Blender,ZBrush,Onyx...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 599
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby dboude » Mon Mar 09, 2020 9:56 am

Hi,

It works the same way as the alembic point cloud. You store the data in your underlying geometry. Then you extract the property, plug it in a support color node and then in an instance color before going in the scatterer rotation input.

The difference with point cloud is that you have to add a support color node in your network.

Cheers
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby atnreg » Mon Mar 09, 2020 11:32 am

Of course! I knew there was some cool solution to this but somehow the Support Color node STILL is not clear to me, though NOW I think I really understand the meaning by this case. I mean I of course now when it is needed in Clarisse but because I didn't REALLY understand it, I did not even think about it in this case. But now I THINK I got it :mrgreen:

And even though the Scatterer Use Support Normals refers to 'support' by name, in this case that must be 0% so the Use Support Normals setting actually sets how much ORIGINAL underlying geometry normals are used. That is nice because with that I can adjust the amount so I will make the needle normals attribute almost along the surface so it has as big as possible adjustment range in Clarisse. Excellent!

Thank you once again for clear and fast answer!
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA RTX 3090,Win10
UE5,Clarisse 5.0(always latest SP),Houdini,Blender,ZBrush,Onyx...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 599
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby dboude » Mon Mar 09, 2020 11:38 am

You're welcome Antti ;)
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby atnreg » Mon Mar 09, 2020 1:44 pm

Another question: is it better to make the rotation attribute in Houdini for points or primitives? I mean It seems to work on both but there also seems to be some difference so I would like to use the optimal type. And can you give tips when to use which if it matters? :)

Also I noticed that this works with only the Support Color, without the Instance Color and there is no difference so now I'm again a bit confused :mrgreen:
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA RTX 3090,Win10
UE5,Clarisse 5.0(always latest SP),Houdini,Blender,ZBrush,Onyx...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 599
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby dboude » Mon Mar 09, 2020 3:01 pm

I guess the data are stored and read from the points even if you stored them in prim.
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby atnreg » Mon Mar 09, 2020 3:21 pm

Hmm...but then why the result is slightly different? :)

And why the Instance Color does not have any effect in this case?
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA RTX 3090,Win10
UE5,Clarisse 5.0(always latest SP),Houdini,Blender,ZBrush,Onyx...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 599
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby dboude » Mon Mar 09, 2020 3:57 pm

Two prims share some points. The average may give the difference. I guess...
Démian
Isotropix
Technical Artist - Clarisse Specialist
User avatar
dboude
 
Posts: 1603
Joined: Mon Jul 03, 2017 10:51 am

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby atnreg » Mon Mar 09, 2020 4:23 pm

oh yes of course :)
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA RTX 3090,Win10
UE5,Clarisse 5.0(always latest SP),Houdini,Blender,ZBrush,Onyx...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 599
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Re: Scatter rotation (Clarisse PC) with Alembic custom prope

Unread postby atnreg » Thu Mar 12, 2020 4:59 pm

NOTE: The project was wrong version, now I replaced the demo project with correct version

I have managed to do scatter rotation from Houdini to Clarisse scatterer with vectors but now I would like to use quaternion to have more control and accuracy.

So I have Alembic file with geometry that has @orient as Float32 size 4 so I think it is correct.

I have read several posts about rotation from Houdini to Clarisse but there are some variation in attribute values and my case is a bit different as I don't use pointclouds from Clarisse, I only want to drive the Scatterer rotation by 'orient' property that is in the underlying geometry.

I (think ;) I ) know how to use the extract_property with Quaternion to Euler to Scatter Rotation but no matter what I try with Rotation Order and factors for Scatter Rotation (360,360,360 or -360,-360,-360 or even combinations) and Input Remap (default or dabc), I won't get the same rotation as in Houdini :o

Please see the attached demo project, if you adjust the 'Use Support Normals', the trunk gets rotation nice but the bough is weird.
I got help in Houdini forum for the @orient calculation so I'm pretty sure it is correct (though slightly different setup) but how to get it show up correctly in Clarisse?

Can someone familiar with Houdini help me? :)

Thank you!
Attachments
houdini_rotation_problem.zip
(2.89 MiB) Downloaded 325 times
Last edited by atnreg on Fri Mar 13, 2020 8:33 pm, edited 1 time in total.
Antti
AMD Ryzen Threadripper 2990wx (32c/64t),64GB RAM,NVIDIA RTX 3090,Win10
UE5,Clarisse 5.0(always latest SP),Houdini,Blender,ZBrush,Onyx...
Started: Clarisse 2016/10 (Py 2017/01), Python 2016/11
No business, just fun :)
atnreg
 
Posts: 599
Joined: Mon Sep 19, 2016 4:20 pm
Location: Helsinki, Finland

Next

Return to General Discussion