Jump to content

SOP:transfer just one frame


JackyHu

Recommended Posts

Hi, 

This is giving me headaches for two hours now.I know it would be much easier in vex,however I dont know how to achieve this effect.

If anyone can please point me in the right direction that would be greatly appreciated!

There are some arrows shoot into ground in this scene,I want to make some small crushed stones in the first catch point. But the question is how i can get the one primitive source in just one frame?

Transfer color is the best way i can think whitin my all power.

Let me show you some GIF

 

arrow shoot into ground.gif

red source.gif

shot204.hip

Link to comment
Share on other sites

15 hours ago, kfu said:

your file seems not working? My thought on this would be using either points cloud or nearpoint function try to find the closest point on the ground each frame.

I just want to get one hit source in one frame, i dont need the arrow which already rest on ground.

Link to comment
Share on other sites

Just like kfu already mentioned, find a nearpoint with VEX (literally 3 lines of code and the documentation is quite helpful with this) and use that to manipulate your geo further on. The hit source like you said will stay the same so I'm not really sure why you need one frame only. 

With crushed stones, do you mean a crack in the ground or a particle sim kicking a few stones up when the arrow hits the ground?

Link to comment
Share on other sites

17 hours ago, char said:

Just like kfu already mentioned, find a nearpoint with VEX (literally 3 lines of code and the documentation is quite helpful with this) and use that to manipulate your geo further on. The hit source like you said will stay the same so I'm not really sure why you need one frame only. 

With crushed stones, do you mean a crack in the ground or a particle sim kicking a few stones up when the arrow hits the ground?

I am sorry for my broken english.I mean the hit place should not emit all the time after the arrow shot into the ground,otherwise it would lead to emit infinitely crushed stones.

And i'll show u a picture to explain clearly.I dont need the red area,i just need the source place where the arrow touch the ground in that moment.1.png.da1d6bc7c9fac72fadb59f443b2e8556.png

Link to comment
Share on other sites

36 minutes ago, kfu said:

What you can do is recording the trigger frame(when the collision happens)

I did a simple version of what you are trying to do, found near point and record the found frame, delete the prim after one frame of the found frame. Hope the file can be helpful.

arrow_example.hipnc

Thank u so much man, its very helpful for me!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...