Eckxter
Dec. 2, 2016 09:28:51
I'm struggling with copying a mesh to A LOT of points.
Since it gets very heavy in Maya to copy a mesh of 20 polygons to something like 5 million points,
I was thinking of creating an Arnold StandIn and copy that instead.
Unfortunately, when selecting the StandIn, I get this error:
“Selection has no supported object that can be used for input.”
Does anybody have an idea if this is at all possible or maybe a tip for another way to do this?
I'm currently working with Houdini 15.5 Indie licenses and in Maya 2016.
Thanks!
awong
Dec. 3, 2016 10:09:05
Arnold StandIn cannot be used as inputs. I'm not too familiar with MtoA. Does it support rendering instancing efficiently (without using Arnold StandIn)? If so, the simplest way would be to make use of packed primitives. For example, you'd pack the 20 polygons object as a packed primitive, and then copy it to the 5 million points. When these 5 million packed primitives are outputted into Maya, it'd be outputted as Maya particle instancer.
If MtoA doesn't support rendering Maya instancer, then maybe another way is for the asset to only output the 5 million points, without copying the 20 polygons. The points would be outputted into Maya as particles. In Maya, you can then use Maya's particle instancer to instance the Arnold StandIn onto these 5 million points.
Hope this helps!
Eckxter
Dec. 5, 2016 05:43:16
Even though Maya would be able to render the instances, it seems the best option is the 2nd one.
It should work with outputting just the points and then instancing the stand-ins onto those.
Thanks!
Eckxter
Dec. 7, 2016 11:25:10
So far everything seems to be working. Except I'm running into a troublesome issue.
Normally I can see the points that get scattered, but sometimes they disappear, never to be seen again.
The thing is that I know they are still there, because I added the option to copy a box from within the HDA to the points.
When activating that option, the boxes get copied to where the points are.
But when deactivating the copying again, the points are still not visible.
Any clue on what could be happening? Maybe a viewport bug?
I've added a Maya2016 file and HDA in attachment. I hope it works if you want to test it.
Thanks!
awong
Dec. 7, 2016 19:58:36
You might just need to do a “sync”. After toggling the “Copy Test Geo” option, you need to do a “sync”, because that option changes the type of what the asset is outputting. For example, when the option is “on”, a mesh node needs to be created in Maya to receive the asset's outputs. When the option is “off”, a particle node needs to be created. Doing a “sync” will sync up the Maya nodes to match what the asset needs.
Eckxter
Dec. 8, 2016 08:06:00
Sadly enough, I've already tried that to no avail.
As well as reloading the HDA and changing other parameters that do not change the output type and then doing a sync.
awong
Dec. 8, 2016 08:19:17
After clicking sync, did the particle node get created? What about changing the frames? If you're not at the start frame, Maya has an issue where particles tend to not update properly until the frame changes.
Eckxter
Dec. 9, 2016 04:32:29
Changing the frame seems to work.
Thanks for the tip!