MCG Spline Conform

5 votes
Version: 
1.05
Date Updated: 
02/26/2017

Get your spline to wrap onto a mesh or multi-meshes... Yes it is a bit rough around the edges, so it is what it is...

ver 1.01: bit more stable when tumbling around...

ver 1.02: now shooting rays are from Spline Normals. Also for ortho projection mode, say from front on or top down, you can use World Axis for shooting direction. When there's no Hit, you have option to leave knots where they are...or just shoot to the nearest verts of the mesh. Tumbling issue is still there but is now less likely...so just keep an eye out for the BBox.

 ver 1.03: now supports Multi-curve in a spline

ver 1.04: for verts with no Hits, have option to Remove. It's far from perfect, but it's something there for you to work with, maybe manually move a few knots here and there with an Edit Spline (see large pic below).

ver 1.05: added Progress.......and that's a wrap folks....

ps: I found that put a Sweep on with Banking OFF seems to work best in most cases..

3ds Max Version Requirement: 
2016
Other Requrements: 
2016+Ext1/2+SP3, 2017
Video URL: 
AttachmentSize
vu_splineconform_1.00.zip10.07 KB
vu_splineconform_1.01.zip9.42 KB
vu_splineconform_1.02.zip16.87 KB
vu_splineconform_1.03.zip18.47 KB
vu_splineconform_1.04.zip19.21 KB
vu_splineconform_1.05.zip19.89 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vusta's picture

No. 2 first

well to simplify thing, for the 1st/last verts tangents, I actually stole them from their neighbours, ie. 2nd and 2nd last...so Done !!!

No.1, Well I did think about interp/lerp, and even some sort of tension, gravity affected setting, however there is still a problem, like in a circle surround a guy's legs...a vert on the far left may hit the right thigh and so interp would be weird...hence you see the crisscrossing effect between the legs...

Maybe if the raycasting logic gets a bit more advanced then I can make use of..but...who knows what the future of MCG is...lately, I haven't heard jack from the devs...then the subs news recently, I'm
a bit disillusioned tbh.

eugenio's picture

Suggestions for next version :)

Nice tool man! I was thinking how to improve the no hit vertices and I have some ideas:

1) How about for vertices with no hit in the middle of the spline, to interpolate them between prev/next that have hit the mesh? Since there might be a sequence of vertices with no hit, maybe store them in a separate array to fix them in a second pass.

2) For vertices in the start/end of the line, to extend them tangent to the last hit vertex. If possible, to maintain the segment length they previously had.

It ain't easy to do I guess, but would produce better results.

-Eugenio

vusta's picture

bad memory..

no not your RAM...I mean my bad memory in my head...
I think the INODE error means you need the Extension (either 1 or 2)

Because you are on 2016, you need it, 2017 doesn't.

Once you get rid of the first error, I think the 2nd one would compile.

(ps: INode Array that is, originally just 1 INode works fine, then the Extension gives you INode Array at some later stage)

IhabAli's picture

deserialising error

I got this error, any solution

http://imgur.com/m1yS1sQ

http://imgur.com/kAvXMsH

vusta's picture

ver 1.04

option to Remove verts with no Hits

(bring out the gimp!!!)

AttachmentSize
splineconform5.jpg 1.06 MB
Alaa alnahlawi's picture

Super cool

Super cool

vusta's picture

ver 1.03

Multi-curve support.

Unfortunately, Max versions earlier than 2016 do not know what MCGs are....no can do...

and I'm not a scripter so there's very little chance I could do anything like this with mxs.

obaida's picture

Very Very important add for

Very Very important add for 3dsMax , thanks hope it'll work fine in all cases
and of course if you can make it for 3dsMax 2014 it'll be more than welcome.
Thank you , Best Regards.

vusta's picture

ver 1.02

...bit more advanced...

vusta's picture

well it's sorta 50/50

the Normalize Spl. at certain length/accuracy can produce weird bunching up, best seen with a Sweep on a Normalize Spl.

If there's these weird bunching up, it sends my MCG into a tailspin....

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.