Point rendering pscale multiplier

   6121   8   1
User Avatar
Member
46 posts
Joined: April 2008
Online
Hello All!

I'm very new to solaris and Karma and I was trying to do some point rendering with it.
Before, with Mantra, I used to set a point scale multiplier from the obj level geometry node
under Render->Geometry>Point Scale parameter witch acted as a multiplier at render time
before the needs to re process my point cloud or adding any post wrangle node to do it.

I wonder if there is something similar in Solaris/Karma ?
I had a quick look and I guess mostly due to the fact I know very little about this new tech
I could not figure something out.

Thank you in advance,
A
Edited by AlexNardini1 - Oct. 28, 2021 05:53:51
User Avatar
Member
8173 posts
Joined: Sept. 2011
Offline
I don't think so, but it would be a good feature request for a karma render property--would bring it further into parity with mantra.

For now the only way is to edit the widths array with a wrangle/vop/python lop--or if it's coming for a live sop network do the edit before it is imported into the stage.
User Avatar
Member
46 posts
Joined: April 2008
Online
Thank you jsmack!
That’s a bummer tho, as I used to tweak my pscale for delayed loads too using the upstream geometry node, so handy….
User Avatar
Member
46 posts
Joined: April 2008
Online
So here is how I did it with a wrangle node inside Solaris.

int npt = usd_attriblen(0, "/sopimport1/points_0", "widths");
for(int i=0; i<npt; i++){
    usd_setattribelement(0, "/sopimport1/points_0", "widths", i, 0.0005);
}

However seem to be a bit slow from my tests
and I still dnt get how to use the option Run on Elements of Array Attributes in the wrangle.
I did try using
@elemnum
and
@numelem
but without luck, any help ?
User Avatar
Member
9316 posts
Joined: July 2007
Online
AlexNardini1
and I still dnt get how to use the option Run on Elements of Array Attributes in the wrangle.
make sure you are targetting the mesh node in Primitives parm
check Run on Elements of Array Attributes and then type this into wrangle code:
@widths *= 2;
Edited by tamte - Oct. 28, 2021 18:56:23
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
46 posts
Joined: April 2008
Online
Ahhh, by default it was targeting the xform node…now it’s really fast!

Thank you Tomas!
Edited by AlexNardini1 - Oct. 28, 2021 19:19:53
User Avatar
Member
46 posts
Joined: April 2008
Online
Karma is amazing,
here is my run with it using a new version of my FLAM3 hda recompiled for H19.

Thank you for the help, I was blown away on how fast it is and the de-noiser work like a charm!

https://vimeo.com/640136970 [vimeo.com]
User Avatar
Member
12986 posts
Joined: July 2005
Offline
Alessandro, you're a madman!
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
User Avatar
Member
46 posts
Joined: April 2008
Online
Jason! Not as much as I lately wish I could have been.
Karma, Solaris and the rest…that’s real madness !
Edited by AlexNardini1 - Oct. 31, 2021 07:03:56
  • Quick Links