Zeedorf
Hi SOuP community

I tried to map (or mask) the scatter node with a texture generated with the arrayToTexture2D which has a boundingObject input but it does not work. If I plug the arrayToTexture2D output into a lambert shader I can see it in the viewport but it seems the scatter node can't deal with it. I tried both use as a texture input and as a projected texture, same result.


ArratToTexture2D_with_Scatter.jpg 

The node graph:

ArratToTexture2D_with_Scatter_nodeGraph.jpg 

I attached the file as well.
Reply 0 0
pshipkov
You are doing it the hard and slow way.

Use the scatter node's projectors.

http://www.soup-dev.com/videos/forums/scatter_projectors.mp4
Reply 0 0
Zeedorf
Okay, there are two question :)

1. Is it should work?
I know the projectors but the map I generated with that workflow is working as a texture but it seems not working for the scatter node no matter I use as a texture or use it with the projector.

2. How to achieve contact deformation (it could be another topic)?
My idea was that following (might be dead wrong):
Generally the multiAttributeTransfer with the peak node is perfect to achieve conatct deformation. But the current case is that I have a terrain surface which is a large and heavy mesh (0.5 million faces). If I use the general setup it is really slowing down because as far as I understand the boundingObject samples all the vertices of the terrain object. Of course there is a workaround but I tried it procedurally (I know it is kind of an addiction).
So instead of vertices as a source of deformation I tried to use a scatter node's points to deform the mesh. So I could lower the count of the "sampled" points and it worked. The "only" thing I could not achieve to specify certain area to scatter the points.
I can generate a contact map with attributeTransfer (and arrayDataContainer) but it seems (back to the 1.) the scatter does not understand the generated map.


Reply 0 0
Rus
Zeedorf wrote:
Okay, there are two question :)
I have a terrain surface which is a large and heavy mesh (0.5 million faces). If I use the general setup it is really slowing down because as far as I understand the boundingObject samples all the vertices of the terrain object.



You probably can use a group node with boundingObject to isolate the "work" area, so another boundingObject can sample only the small piece of geometry.
Reply 0 0
pshipkov
Check the attached scene
Reply 0 0
Zeedorf
Thanks Peter now I undestand what you meant hard and slow way.

But :)

As far as I understand in this case the attributeTransfer passes the geometry itself which is extended with vertex color information thanks to the bounding object. However I could not find the way to implement arrayDataContainer to get the trace of the bounding object.

 scatterOnBoundingObj_v002.gif 

I would like to have all the scattered points on the path of that moving object. I attached the file.

***

I could solve my initial problem with a manually painted contact map which I referenced as a texture map (file node) and the scatter node could deal with it. It would have been nice to have full procedural setup (generating the contact map on the fly) but I guess it would have been extremly slow.
Reply 0 0
pshipkov
check the attached file.
Reply 0 0
Zeedorf
Awesome! Thanks.

Just for the record, here is the result:

scatterOnBoundingObj_v003.gif 

And the graph:

scatterOnBoundingObj_v003_graph.jpg
Reply 0 0
Reply