Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Instancing Lights in HtoA 6.0.3.0

4 REPLIES 4
Reply
Message 1 of 5
JayMayaful
860 Views, 4 Replies

Instancing Lights in HtoA 6.0.3.0

Hi all,

In the change log of 6.0.3.0 it mentions a new instancer procedural has been added - which works for lights. This is something that would be helpful on my current project, can anyone explain the workflow for this as I'm unable to work it out?

Many Thanks.


New instancer procedural: A new instancer procedural node has been added to create instances of shapes and lights. (#7901)The nodes to instance are defined by the nodes and optionally node_idxs parameters. Per instance transformation, visibility and shaders can be specified via the instance_matrix, instance_visibility and instance_shader parameters. Any other per instance parameter (builtin or user parameters) can be specified via array type user parameters prefixed as instance_, for example:


Labels (3)
4 REPLIES 4
Message 2 of 5
Slava_91
in reply to: JayMayaful

I suppose this is only for USD and ASS

Message 3 of 5
madiclutcher
in reply to: JayMayaful

You can write a simple python script to create number of Arnold lights and get position data from points.

This is a very simple 10 min code, I'm new to python. But this works.

Add a new tool to shelf and copy this script to the script tab.

And make sure you select object node(with points) you want to copy lights before executing this script.

a = hou.selectedNodes()
b = a[0].displayNode()

pts = b.geometry().points()

for pt in pts:
    x=pt.position()[0]
    y=pt.position()[1]
    z=pt.position()[2]
    light = hou.node("obj/").createNode("arnold_light")
    light.parm("tx").set(x)
    light.parm("ty").set(y)
    light.parm("tz").set(z)


Message 4 of 5
JayMayaful
in reply to: madiclutcher

Hey @Madivadanatamilparidy Ramamoorthy. Thanks for replying, I'll save a copy of this. However this is different to what I'm after - I'm looking to instance lights instead of copying to save on some memory overhead.

Found a solution for this involving Solaris. As you can instance lights in Arnold/Solaris, you can create the instances there then write them out as a .USD file. And then you can load in the .USD into an Arnold Procedural node at SOP level. Bit of an annoying workaround, but it works atleast.

Thanks.

Message 5 of 5
Slava_91
in reply to: JayMayaful

Hi Jay!
SOP or OBJ?
If I correct understand, first you create light instancing in LOP, after that you write it to usda and load to Arnold procedural node in obj, correct?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report