jackyu00
Hello

I am trying to use scatter node to scatter instances on the poly plane which has been deformered by bend deformer. But I can't get my aim direction correct, the instances always pointing Y up. I folowed the tutorial video on vimo and used attributTransfer to output normalPP, but it seems didn't work. Can anyone check my file and tell me what's wrong with it? Thanks a lot.


Jack

Reply 0 0
pshipkov
In the attributeTransfer node:
- you have only one key in the kernel ramp and it is set to 0. Set it to 1, then add another key positioned at the very right and set it to 0.
- set maxInfluences to 1.
- turn-off merge.

Select the "polyCone1" node and set the axis values to 1 0 0.


Reply 0 0
jackyu00
Hi Peter

Thanks for the reply, It works very  well!
It will be great and easy to learn if SOuP can come with the document.

Jack

Reply 0 0
jackyu00
Hi Peter

I am having a problem about using aimUpAxis. Continuing the scatter test above, I use aimDirection to make instances pointing to normal and use aimAxis to determine which axis of instances should point to normal, they both work fine. But when I want to use aimUpAxis to create some random rotation along the normal axis for instances, it seems dont work.
Could you please give me some hint? Thanks.

Jack


Reply 0 0
pshipkov
Both work fine i am pretty sure about that.
Try first worldUpAxis. I don't have time right now to take a look but if the world up one does not work too for you i will take a look later.
Reply 0 0
Jostein
Also, have a look at this if you haven't already 


Edit: sorry, just read your first post properly so disregard this
Reply 0 0
jackyu00
I found if the scatter plane is pure flat, only aimWorldUp can affect the instances, aimUpAxis doesn't, but if you deforme the plane a little bit (for example: bend), both aimWorldUp and aimUpAxis work. Not sure am I correct, still giving more test..

Hi Jostein
Thanks for the link, I have checked both part1 and part2 before, but it didn't set the aimUpAxis successfully in the video.
Reply 0 0
pshipkov
Check the attached file.
Reply 0 0
jackyu00
Thanks for taking time show me the example, the file looks much smarter than I had before.
I have tried to add aimAxis to the example because I want Y-axis of instanced object aims to the normal direction instead of X. Once I added new aimAxis arrayToDynArrays node and hooked to the connection, all instanced object became Y point to normal as I wish, but in the same time, I lost the random rotation from aimWorldUp, no matter how I change the expression string. The attachment is my edit file.

Is there anyway to make the aimAxis is optional for user and still keep the other setting?
Sorry for bothering you again~


Reply 0 0
pshipkov
I don't think you should complicate it like that. Just rotate the base object you instance so it lines up with the Y axis.

Let me know if you really really want to figure out aimAxis. I will take a look later.

Reply 0 0
jackyu00
Yes, I agree with you, rotate the base object is more efficient way, but I found I have to freeze transform after rotating base object so it can line up with Y.
Is it possible to work like Maya particle instance which inherit transform from base object directly?
Reply 0 0
pshipkov
I think it matches the particles dataflow. In fact the framework is dictated by the instancer node, the particles only provide the required data. I do the same, just without particles.

In  fact thinking about aimUpAxis - i never really used it. I always rotate the base object.

Reply 0 0
Reply