Itoo Software Forum

Author Topic: Gradient spacing on a spline!  (Read 5680 times)

williamyu1988

  • Newbie
  • *
  • Posts: 18
Gradient spacing on a spline!
« on: November 04, 2014, 04:36:26 AM »
Hello, everyone.
I am very new to railclone2 atm please help me out! :'(

I want to make an object alone the path of a single spline, that has a gradient spacing..
I tried to do it with the 3dsmax spacing tool but it seems like it could only do same distance of spacing.
attach image to maybe help understanding..

I was wondering if Railclone2 has the ability to do this!

thank you!!

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #1 on: November 04, 2014, 06:40:06 AM »
Sure You can!
I attach a max file for you to see how I did it. Probably there are some other ways too.




Rokas

williamyu1988

  • Newbie
  • *
  • Posts: 18
Re: Gradient spacing on a spline!
« Reply #2 on: November 04, 2014, 07:06:32 AM »
Thanks Rokas.
this is exactly what I'm looking for

harumscarum

  • Full Member
  • ***
  • Posts: 113
    • harumscarum's portfolio
Re: Gradient spacing on a spline!
« Reply #3 on: November 04, 2014, 12:02:29 PM »
Great! thanks for idea!
i wonder if incremental scale also possible somehow

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #4 on: November 04, 2014, 12:06:52 PM »
Great! thanks for idea!
i wonder if incremental scale also possible somehow
What do You mean? like this ?: 


« Last Edit: November 04, 2014, 12:26:25 PM by Rokas »
Rokas

williamyu1988

  • Newbie
  • *
  • Posts: 18
Re: Gradient spacing on a spline!
« Reply #5 on: November 10, 2014, 07:32:20 AM »
Dear Rokas,
thanks again for your answer, after trying it out.. there are two problems i think i need your help again..
see attach image 01. could the gradient be more exaggerated at the ends of the gradient? I mean like the gradient seem to be consistent spacing at the end. (I think it's by changing the expression, but I'm not so familiar with it)
see attach image 02. the gradient objects seems to get cut off by Vertex?? any ways to avoid it?

attach max file if you could help !!  ;)

thank you!

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #6 on: November 10, 2014, 08:53:42 AM »
Hi
thank You for giving me something to work with. ;)

I introduced two parameters to control gradient- it should be pretty flexible now.




Let us know if You have any other problems.

I also fixed vertex slice problem by disabling segment slice options in Deform tab.

Check attached file.

P.S. Just wondering what is this style for ?
« Last Edit: November 13, 2014, 09:43:26 AM by Rokas »
Rokas

williamyu1988

  • Newbie
  • *
  • Posts: 18
Re: Gradient spacing on a spline!
« Reply #7 on: November 11, 2014, 07:16:19 AM »
Hey Rokas,
thanks for the advice, now I'm just trying to understand what the expression means..
some math needs to be done.. because in the end I need to know what are the distances and what are the relationship, the code or the arrangement array

it's just a simple wall decor study, nothing special... try to make a blank white wall to be more interesting..haha :)

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #8 on: November 11, 2014, 07:57:36 AM »
good luck... ;)
imo better to find composition You like and only then measure distances with max tools
Rokas

williamyu1988

  • Newbie
  • *
  • Posts: 18
Re: Gradient spacing on a spline!
« Reply #9 on: November 26, 2014, 09:06:48 AM »
Hey Rokas,
I'm back!! I have another question for you!
if then i want to control the distance between units with certain sequence of algorithm according to the pivot point of the object
such as like 2,4,6,8,10.... or 1,3,5,7,9 is there a possible way of doing it??

http://www.itoosoft.com/tutorials/tutorial_counting.php
i look at this tutorial but it looks like they are divided evenly, but I want the distance to be 2,4,6,8,10 to maintain the look of some gradient...

thanks for the help and effort again  ;D
« Last Edit: November 26, 2014, 09:15:43 AM by williamyu1988 »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #10 on: November 26, 2014, 09:43:25 AM »
If i understood correctly this is what you want:


I changed so it now has two ways for calculating gaps- power function and multiplication function


Hope that helps. Should You have any more questions, please ask.
Rokas

williamyu1988

  • Newbie
  • *
  • Posts: 18
Re: Gradient spacing on a spline!
« Reply #11 on: November 26, 2014, 10:20:56 AM »
Hello Rokas,
thanks for the quick reply..
heres what im thinking.
i think its pretty close... i think image will show you better what im thinking.
the color ones are the ones i think maybe you could do??

its like i could control the numbers of units...right now is (4)

and the distance is i think it could be control by segments of the spline?? like  .__4___.___4___.___4__.__4___.   haha


i dont know its thats too hard...just wondering but if its too comlicated thats ok...
« Last Edit: November 26, 2014, 10:32:52 AM by williamyu1988 »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #12 on: November 26, 2014, 10:26:49 AM »
i dont understand your illustration,
I see two different spacing at the top and bottom, which do you want?
Rokas

williamyu1988

  • Newbie
  • *
  • Posts: 18
Re: Gradient spacing on a spline!
« Reply #13 on: November 26, 2014, 11:10:10 AM »
Sorry Rokas...

just two need help..!!
Im sorry to waste your time   :-\

attach image and file for your information

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Gradient spacing on a spline!
« Reply #14 on: November 26, 2014, 11:13:40 AM »
give me 20 minutes
Rokas