MAX script Spline Track Maker

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

  1. Bink

    Bink Registered

    Joined:
    Nov 20, 2011
    Messages:
    523
    Likes Received:
    2
    Say you have 2 textures in a material.
    One is dark grass, and the other is dirt.
    You want a smooth transition between the dirt next to the track, and the grass in the infield.

    Google: rFactor Vertex Alpha...

    Be aware that the parts that you want to see through will look black in Max. The black part will look transparent once you export (correctly).

    roughly... one of the textures in the material is set to map channel 1, and the other is set to map channel 2. Next you would select a vertex that the material is on, and adjust it's vertex alpha on one of those map channels (the channel with the texture on top) ..... which will make the area around that vertex transparent... allowing the OTHER texture in the bottom material to show through... in a smooth transition.
     
    Last edited by a moderator: Jul 23, 2013
  2. Iker Doral

    Iker Doral Registered

    Joined:
    Jan 13, 2012
    Messages:
    57
    Likes Received:
    0
    It is in the malaysia circuit.Looks like the edges or the polya are painted, and that makes the texture take that colour

    Edit:thx Bink
     
  3. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
  4. Iker Doral

    Iker Doral Registered

    Joined:
    Jan 13, 2012
    Messages:
    57
    Likes Received:
    0
    Totally different subject.
    How much camber does a visually flat turn?
     
  5. Bink

    Bink Registered

    Joined:
    Nov 20, 2011
    Messages:
    523
    Likes Received:
    2
    great page, mm! [i'm out of here... (grid work) .. ]
     
  6. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    in trackmaker? this is a trackmaker thread.
     
  7. Iker Doral

    Iker Doral Registered

    Joined:
    Jan 13, 2012
    Messages:
    57
    Likes Received:
    0
    yes,sorry. I am asking how much camber should I give to corners,just a general value. My track is mostly flat and I don't know what value i should use
     
  8. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    is good question for a real cambers.


    4 degrees maybe If is a oval is more.
    If you use my last version of Trackmaker you can add a camera to track. Can help to see in a car perpective.

    EDIT: in Road Atlanta in first turn i get 1.696 degrees (2.96%).
     
    Last edited by a moderator: Jul 23, 2013
  9. maxredbull

    maxredbull Registered

    Joined:
    Dec 23, 2011
    Messages:
    169
    Likes Received:
    3
    Congratulations mario,
    continuous as!

    I just starting a circuit that is next to my home, the Albi circuit in the Tarn in France, but it is far from being clean, and it's never like your videos on Mario ... I do not control all of the software and I really struggle to understand everything. I will continue to persist in looking at your tutorial.
    I expected more forward ...

    [​IMG]
    [​IMG]
     
  10. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    @maxredbull Your struggle is with max right? :D.
    I see you import the background images right and the track look good.
     
  11. Jka

    Jka Member Staff Member

    Joined:
    Jan 31, 2011
    Messages:
    954
    Likes Received:
    213
    Generally road course cambers are build build between 2 - 3 degrees (in real life), but that depends a lot. Very long corners can have little bit more, but over 4 degrees is probably not practical. Somekind of "rule" is, that shorter corners have smaller camber than long corners. If short corner have big camber, car will bottom out easily.

    When speaking of track's corner camber, there are two different terminology about them. Some organizations talks about degrees and other percentage (%) cambers.

    1% camber = track raises 1 cm, measured along tangent (perpendicular) vector from 1 meter distance of reference point (like track inside line)

    1 degree camber = angle of vertical vector between reference points (inside- and outside line of the track) measured against horizontal reference line

    Sometimes you can have also "off-camber" corners, where outside is lower than inside. For example Sonoma (former Infineon) T2 is off-camber corner.

    Ovals are totally different case, though...

    Cheers!
     
    Last edited by a moderator: Jul 24, 2013
  12. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    My trackmaker can set two cambers. left and right (inside, outside)
     
  13. Jka

    Jka Member Staff Member

    Joined:
    Jan 31, 2011
    Messages:
    954
    Likes Received:
    213
    Yes, it's handy feature (though rarely used in real life race tracks). ;)

    Cheers!
     
  14. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    And now the cambers are in degrees or %.
     
  15. Bink

    Bink Registered

    Joined:
    Nov 20, 2011
    Messages:
    523
    Likes Received:
    2
    Curious about how the sim-engine handles having 2 cambers... but only one "normal' for for the same piece of track...

    Maybe that's part of what fast, wet, left, and right line "oriantation" is used for..... calculating 'instantaneous' camber and inclination at any point of a driving line. (?)
     
  16. Mario Morais

    Mario Morais Registered

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

    But you are thinking in AIW right? AIW not interfere with sim-physics. i hope. :)

    P.S. i'm working in Spline mapping in maxscript. is a mess :-( in max 2010 some MAXsxcript functions don't work.
     
  17. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
  18. Iker Doral

    Iker Doral Registered

    Joined:
    Jan 13, 2012
    Messages:
    57
    Likes Received:
    0
    If I apply 1 degree camber it is too heavy. My track is a 1.2 km long, 8 m wide karting circuit.
    Right now my values are between 0,3 and 0,7, is it enough?
    Visually and after a quick test drive, it feels ok. But could those be real or correct values?
     
  19. Jka

    Jka Member Staff Member

    Joined:
    Jan 31, 2011
    Messages:
    954
    Likes Received:
    213
    I'm not sure if 3ds max calculates these values correctly, as 1 degree camber means about 17,5 cm vertical difference between inside and outside track edges, if track is 10 meters wide.

    But you have to remember that FoV angle affects greatly to "feel" of corner cambers behind the wheel.

    Cheers!
     
  20. Iker Doral

    Iker Doral Registered

    Joined:
    Jan 13, 2012
    Messages:
    57
    Likes Received:
    0
    I'm trying to model the curbs but I don't know how. Should I use trackedge or 1st terrain?
     

Share This Page