New Gmaterial Tool

Discussion in 'Track Modding' started by Mario Morais, Jan 11, 2013.

  1. Mario Morais

    Mario Morais Registered

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


    Download link and info


    The script is a macroscript to install go to “customize user interface” and look for “Category:MMtools” and drag into a menu or toolbar.


    Last version gMaterialtool v1.9c

    + Add Tessellate by selected edges (like graphite tools)

    - Glue objects and decals was moved to PointTools
    + Change Textures MAPS path ( Can change Textures maps path for a new one)

    I change and create some scripts for lienz conversion.

    [Material tool]
    + Now to open material in MatEditor need to press Right-mouse button on material name.
    + Select objects by matID amd material slot

    [Geometry]
    + Create groups of objects by distance and attach them
    + Copy Modifiers from one object to selected objects
    + Quick clibboard for store selected objects
    + Smooth faces for all selected objects. rf1 option is to detach faces
    + Detach by MatID
    + UV vertex manipulation

    [GMT Converter Tools]
    + Create BillBoard trees from selected objects. If no selected objects create the Billboard in 0,0,0 position.
    + set alpha vertex for selected objects
    + Materials Reports.
    Check materials for missing textures in selected objects and reports to MAXscript Listener.
    Can copy textures to other folder.
    Can search texture by name.
    + Export the list of reflections objects to text file
    + Create reflection plane from 3 points


    Version 1.6
    + Copy map channel to other channel for all selected objects
    + Fix Dead Vertices
    + WeldVertex for all selected objects
    + Attach multiply objects to one
    + Make unique instances for all selected objects
    + Detach selected objects by MatID
    + UV vertex can copy/paste or change UV vertex coordinates
    + Create Quads for trees

    New version 1.6b

    +Bugs fix
    +added a better Quadify function
    DX materials are disable.

    New Version 1.6c
    + Quads pivot fix!
    + Add backface cull unchecked

    note: disabled DX mats selection to avoid Open file error

    new Version 1.6f

    - Fix " ChkMat" button
    - reOrganize buttons

    + Stage display
    + Vertex Display
    + Copy/Paste Modifiers
     
    Last edited by a moderator: Mar 31, 2014
  2. Radar

    Radar Registered

    Joined:
    Oct 20, 2010
    Messages:
    687
    Likes Received:
    60
    You're a legend.. Thank you for these plugins and scripts you do, certainly makes life easier.
     
  3. A13

    A13 Registered

    Joined:
    Jul 31, 2012
    Messages:
    123
    Likes Received:
    29
    this looks very useful :)

    thanks a lot for this, will try this out :)
     
  4. WiZPER

    WiZPER Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,517
    Likes Received:
    186
    Great stuff, thanks!
     
  5. Mario Morais

    Mario Morais Registered

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

    Bugs fix

    added a better Quadify function

    GmaterialTool 1.6b

    DX materials are disable.
     
  6. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    Mario, when I use the BB tree function, I end up with some really thin faces. I have been trying to figure out a way to do this for over a year now, but my limited knowledge in max scripting has prevented me from getting anywhere with it.
    What I think it might need is something that will get the original tree's face's orientation, then align it's pivot and transform to that face. Then it's just a matter of rotating the object to z=0 using the transform type in. Or there might be another way to do it, I don't know, but I think the main issue here is finding that face's angle relative to the world axis.

    ie,,,
    In these pics, the first one is how it is to start with, then in the second pic, the pivot's axis is aligned to the face. (I rotated the pivot manually here for the purpose of the demonstration)
     

    Attached Files:

  7. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Thanks for report, now i know how to fix. get the normal vector from face and apply matrix rotation to pivot.
    I will try in next version
     
  8. mianiak

    mianiak Registered

    Joined:
    Oct 5, 2010
    Messages:
    691
    Likes Received:
    46
    Thanks Mario.

    Just for the record though, BB trees don't have to face any certain way in max, they will always face the camera in game.
     

    Attached Files:

  9. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Yes i know only pivot must be align to face.
     
  10. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Ok Quads pivot fix! and disabled DX mats selection to avoid Open file error

    Gmaterialtool 1.6c
     
  11. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    The script is a macroscript to install drag and drop in viewer max and go to “customize user interface” and look for “Category:MMtools” and drag into a menu or toolbar.
     
  12. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    I found a error in the script don't use "ChkMat" button !!
     
  13. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    new GmaterialTool 1.6f

    - Fix " ChkMat" button
    - reOrganize buttons

    + Stage display
    + Vertex Display
    + Copy/Paste Modifiers
     
    Last edited by a moderator: Jan 18, 2013
  14. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    New GmaterialTool 1.7h

    I change and create some scripts for lienz conversion.

    [Material tool]
    + Now to open material in MatEditor need to press Right-mouse button on material name.
    + Select objects by matID amd material slot

    [Geometry]
    + Create groups of objects by distance and attach them
    + Copy Modifiers from one object to selected objects
    + Quick clibboard for store selected objects
    + Smooth faces for all selected objects. rf1 option is to detach faces
    + Detach by MatID
    + UV vertex manipulation

    [GMT Converter Tools]
    + Create BillBoard trees from selected objects. If no selected objects create the Billboard in 0,0,0 position.
    + set alpha vertex for selected objects
    + Materials Reports.
    Check materials for missing textures in selected objects and reports to MAXscript Listener.
    Can copy textures to other folder.
    Can search texture by name.
    + Export the list of reflections objects to text file
    + Create reflection plane from 3 points
     
  15. vicent-sollana

    vicent-sollana Registered

    Joined:
    Jan 21, 2012
    Messages:
    416
    Likes Received:
    17
    Hi mario,

    In the gmaterialtool in the last version, the 1.7H, when I try to create ref.plain it shows an error that says:

    " Please, pick 3 points first".

    Do you know what that means and What I have to do?
     
  16. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Need to select 3 vertices from track mesh. One by one.

    Select center vertice of track and press "get center point", next edge and length. When get the 2 points press "create plane"

    When plane was created can rotate and resize but use LOCAL coordinate system.
     
  17. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
  18. vicent-sollana

    vicent-sollana Registered

    Joined:
    Jan 21, 2012
    Messages:
    416
    Likes Received:
    17
    Thanks mario, but i'm missing something tomorrow i keep looking.

    Thanks for this script is very usefull.
     
  19. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    new version 1.8a (link in first post)
    [​IMG]
     
  20. feels3

    feels3 Member Staff Member

    Joined:
    Sep 4, 2011
    Messages:
    1,201
    Likes Received:
    142
    Thanks Mario :)
     

Share This Page