MAX script Spline Track Maker

Discussion in 'Track Modding' started by Mario Morais, Nov 20, 2012.

  1. JJStrack

    JJStrack Registered

    Joined:
    Dec 23, 2011
    Messages:
    469
    Likes Received:
    9
    um, no :p
    what i see on your picture, is that the points have equal distances between each other, but the vectors have different angles between each other.
    What i meant is, that the vectors have equal angles between each other and the points have different distances to each other.
    Your spline gets less curved in the upper part of the picture. Because of that, there are less polygons needed.
    I made another, better picture to explain:
    View attachment 5196
    The yellow lines are tangents to the spline. You see, that the spline gets less curved to the right side. so, when the tangents have the same angle between each other (here 15 °), the points have more distance to each other to the right. On the left, where the spline is more curved, the points are closer to each other.
    The distance between two points is the length of the polygon at that spot. That way, the edges of the polygons will have the 15 degree angle between each other at every point of the curve.
    Now if you choose that angle low enough, so that the eye will not see any edges between the poly edges, you will have the optimal polycount for that corner.
    Just as an example: on the down left side of my picture, the polygon would be very short. But it would have to be that short, because the curvature is very high. So on an unoptimized corner, you would model that corner out of polygons with that short length. Then the corner would have around 20 polys in the length. But with the optimization, it now has only 6.
     
    1 person likes this.
  2. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Thanks for JJStrack idea now i can fix the crosslines orientation in turns.

    The blue lines are the correct orientation
    [​IMG]
     
    1 person likes this.
  3. vicent-sollana

    vicent-sollana Registered

    Joined:
    Jan 21, 2012
    Messages:
    416
    Likes Received:
    17
    This is great

    Enviado desde mi GT-I9100 usando Tapatalk 2
     
  4. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Pro Version

    Download v 0.8

    Full options
    Create Track | Edit Track | Vertex Clipboard and UV map
    [​IMG] [​IMG] [​IMG]

    UV mapping is not ready
    Soon i will made videos and some notes.


    I recommend this plugin to normalize splines.


    Install:
    Unzip and copy folder "Trackmaker" to your MAX "Scripts" folder.
    Run once the script "trackmaker.mcr" is in "3ds Max\Scripts\Trackmaker".
    Add the macro script to a menu or toolbar. go to “customize user interface” and look for “Category:MMtools” and drag into a menu or toolbar.
     
    Last edited by a moderator: Dec 30, 2012
  5. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Video How to install the script

     
  6. Jka

    Jka Member Staff Member

    Joined:
    Jan 31, 2011
    Messages:
    954
    Likes Received:
    213
    Hi Mario,

    Your Mediafire download link do not work over here...;)

    Cheers!
     
  7. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169


    What you mean not work? mediafire not work in your country?
     
  8. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    New version v 0.81

    Changes:
    Some bugs fix
    - Can update track by a reference spline.
     
  9. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    First Video

     
  10. Luc Van Camp

    Luc Van Camp Track Team Staff Member

    Joined:
    Oct 4, 2010
    Messages:
    1,030
    Likes Received:
    15
    Good to see you keep up the development :) .
     
  11. vicent-sollana

    vicent-sollana Registered

    Joined:
    Jan 21, 2012
    Messages:
    416
    Likes Received:
    17
    The script is very helpfull to people like me, now is easier to create the layout from scratch, Following the steps shown in the video is very easy all one needs is patience,:)

    Thanks.

    View attachment 5453

    View attachment 5454
     
  12. Jka

    Jka Member Staff Member

    Joined:
    Jan 31, 2011
    Messages:
    954
    Likes Received:
    213
    Mediafire page opens, but download link does not lead anywhere. It's probably more likely Mediafire problem, if you keep your browser/network protection settings pretty tight and do not accept all pop-up windows and ads.

    EDIT: For some reason download start working now...;)

    Cheers!
     
  13. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Version v 0.82
    - Fix lines distribution. Issues to solve : first line in middle of selection
    - build-in Better Normalize spline (External normalize spline script is not necessary)

    Link in first post
     
  14. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
  15. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    New video
     
  16. boblug

    boblug Registered

    Joined:
    Jan 15, 2012
    Messages:
    51
    Likes Received:
    1
    Is there an easy way to get the surface mapped with V0.7? Cant seem to get the materials to show so am clearly not doing the spline mapping correctly.
     
  17. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    if your track don't have various widths spline mapping will work without editing the uv unwrap

    make a new spline from center of editable poly
     
  18. boblug

    boblug Registered

    Joined:
    Jan 15, 2012
    Messages:
    51
    Likes Received:
    1
    This still doesnt work, no materials show up at all just gray shade. Is it possible to just add the fix uvw code button into v0.7?
     
  19. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    the fix uvw code button don't work yet.

    Convert your Spline track to EdPoly and apply spline mapping.
     
  20. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    a new video How to do a Spline uv mapping

     
    Last edited by a moderator: Jan 7, 2013

Share This Page