Jump to content

How to make fine curve for trail?


Recommended Posts

You could use a polySpline node for this. Spline type to cardinal & double start and end point.( else the spline doesn't go to the begin/end of the curve), but this will not give you a good result. You need to make sure you have higher sampling.

Edited by kgoossens
Link to comment
Share on other sites

Hi,

Good morning. It's raining.^^

I spent fine weekend. But I can not solve this problem yet. Oh...My God!

From frame 12 To frame 16, The wand move so fast.

As you can see, In particular frame 13 ~ 15 too fast.

To caculate with polyspline SOP is the key to solve, not exactly.

So I fall in mass how to...

I'd love to find out solution.

Help me please.

post-3269-0-48777100-1350868312_thumb.jp

trail_v02.hipnc

Link to comment
Share on other sites

Thank you very much indeed.

I have got a idea as looking your attached file.

That is POPnet SOP > source ; Accurate Births.

In my scene, I did not solve that I want to be.

I guess a main problem that between frame 13 and frame 16 so fast moving.

So I tested with ghostTrail plugin on 3DMax.

But the same result.^^

Keep doing untill finding out.

post-3269-0-47409100-1350893180_thumb.jp

Edited by jungjaehwa
Link to comment
Share on other sites

The issue is so easy to spot once you toggle off Integer Frame Values in the Global Animation Options dialog window and drag the play bar about with sub-frame values.

post-371-0-52353400-1351004165_thumb.jpg

You can see that the sword is blending linearly between frames. This is a very common issue when you don't have the original motion paths available to you but just the baked out geometry. This linear sub-frame interpolation for fast moving objects is the bane of many RBD, FLIP, Smoke and Pyro, wire and cloth sims where geometry is imported as a sequence of files. This is why we have to take Kim's solution in reservation, but he has the correct idea: You need motion paths! You need to re-construct the proper motion paths for your sword and then re-apply those transforms.

The two tools you will use to re-construct the transforms and do the subframe resampling is the Rivet Object and the Resample CHOP respectively. Rivet works by picking any one, two, three or more points on your target geometry object and it builds object based transforms for you. Fantastic. Sure you can write intriguing Python functions, hscript expressions, vex routines but all will pale in performance compared to Rivet. Use Rivet. Period. Done.

The Resample CHOP works after the Object CHOP fetching the Rivet transforms and providing a fixed cubic sub-frame resample that is rock solid. Most SOP curve reconstruction techniques suffer from popping as the curve is built on-the-fly. Not this method.

If you select one point with Rivet interactively in the viewport, you just get the position transforms. Two points gives you position and direction. Three points or more gives you the full on TRANSFORM (t, r, and s). When selecting three points with rivet, you now get three weight channels to position the rivet pivot where you wish within the plane defined by the three points and beyond the plane.

If your sword has N and up attributes applied at the first frame and the topology is changing but can fix just one point, you only need to select a single point and enable the "Use Point Vector Attributes For Rivet Frame <Of Reference>". You won't get the scale transform with N and up though. Choose whatever as it really doesn't matter for most things.

So this is a four step process (with all kinds of options for tweaking afterward):

1) Geometry object with the File SOP fetching the geometry file sequence off of disk

2) Rivet Object grabbing three points on a part of the model that is topology frame consistent and add the CHOP network to resample the Rivet motion paths.

3) Second Null overridden by the CHOP resampling with a Geometry Object parented and a File SOP only fetching the first frame of the geometry parented to the Rivet Object.

4) A third Geometry Object with an Object Merge SOP to fetch your sword geometry parented to the Rivet Object and then do your monkey magic on the curve at sub-frame intervals how ever you wish: POPs, CHOPs, etc. Your POP solution will work as expected but hopefully not with subframes at 40. Perhaps 3-4 will do.

See the attached file for a working example from your original file/geometry complete with notes as I am sure there are quite a few others out there that don't know about this set-up. It's far easier to see the hip file. Once you get this, there is ample opportunity to streamline things and turn this in to a Houdini Digital Asset or just collapse in to a sub-net.

If the geometry was bending and deforming, then the CHOP network would have to reference in the thousands of points to resample which is also do-able but heavier to handle. Rivet works well for rigid transforming geometry.

----

The Resample CHOP has been used to do sub-frame resampling for raw driven objects as is this example, geometry sub-frame calculations all the way to volume re-timing. The volume re-timing will require you to cut up your volume in to pieces as CHOPs does have an overhead limit (around 40-80k channels but with enough memory...) but I have seen volumes re-timed down 30-60x or more using this technique where each voxel value is sub-sampled and represented by a chop channel with the simple lowly Resample CHOP.

trail_with_rivet_frame_of_reference.hipnc

  • Like 2
Link to comment
Share on other sites

Dear Old School,

Oh, Thank you! I am grateful from the bottom of my heart.

Sorry I do not know who you are and your name. Old school...Jeff Wagner?

But I must say "Thank you so much."

I have been doing this issue.

So carefully I read through a lot of views on your professional advice.

I do not know enough CHOP but I am going to study right now.

Let's keep talking about it.

Have a great day.

Jaehwa,Jung

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...