Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk 3ds® Max® / MaxScript / Error with offset amount when working with sloped splines
  RSS 2.0 ATOM  

Error with offset amount when working with sloped splines
Rate this thread
 
36141
 
Permlink of this thread  
avatar
  • Total Posts: 10
  • Joined: 14 February 2008 07:39 PM

It seems that if you try to offset a spline that is sloped (i.e. not equal z coords) the offset amount is being multiplied by the cos angle of the spline.

Make a spline that goes from [0,0,0] to [225,0,225].  This is at a 45 degree angle (cos 45 =.707)
Now copy that spline and take the higher vertex back down to [255,0,0].  Now offset both of those two splines by an amount of 1.0.  The flat spline offsets properly at 1.0 but the sloped spline offset is reduced by the cos of the slope angle.

Not sure why is should opertate this way, but there may be some good logic.

Maxscript users be sure to add back in the reduction in offset due to slope if you are trying to creating things like Roof Soffits/Facia, and the like.

CT



Replies: 0