• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

CryEngine - Attachments to modells

  • Views Views: 538
  • Last updated Last updated:

Navigation

      Modeling guidelines
         Architecture
         Unity - Modelsetup (MAYA)
         Unity - Setup of a gun in Maya
         Advanced foliage shader
         Emissive shader
         Fabric shader
         Main shader
         ReliefTerrain shaders
         Sail shader
         SSS shader
         Suimono 2.0 water shader
         VolumeGlass
         WindowGlass
      Texturing Guidelines
            (3a) CryEngine - CGF setup Maya
            (3b) CryEngine - CGA setup Maya
         CryEngine - Console commands
         CryEngine - Important keys
      Bahamas
      Greater Antilles
         Cuba
         Hispaniola
         Jamaica
         Puerto Rico
         St Domingo
      Lesser Antilles
         Anegada
         Anguilla
         Antigua
         Barbados
         Barbuda
         Dominica
         Granada
         Grenadines
         Guadeloupe
            La Désirade
            Marie-Galante
         Martinique
         Montserrat
         Nevis
         Saba
         Sint Eustatius
         St Barts
         St Croix
         St Johns
         St Kitts
         St Lucia
         St Martins
         St Thomas
         St Vincent
         Tortola
         Virgin Gorda
      Southern Caribbean
   03. Credits
  • This tutorial will be updated regularly! (6. Feb 2014)

    Inside CryEngine you have more the one way to attach parts to another part. In this tutorial I describe the most used method with attachment-helpers and little codework inside the XML for -in this example- an vehicle.

    So the CryEngine can place an attachment, its need first to place an attachment-helper inside Maya (my tutorials based on Maya).
    You see at the picture below the structure of the hierarchy. The attachment-helper should named "ATTACHMENT_NAME". In my example is "attachment" clearly and after the "_" my name "mast" and after the 2nd attachment-helper "lyonhoy2" for the CGF-part of the ship. Needs your ship more attachments then place similar inside the hierarchy and name for right assignment correctly.

    Remember: To make a ship work its need, to setup one part (I mostly use the underwater-hull) plus the physical proxy in an CGA - format. CGA can only handle one part with LODs, so I hold the standrad to only setup one part in a CGA. The rest of the ship we export as CGF. This CGF need to be attached to the ship. Here we fit in this "attachment-theme".

    Picture:
    You see here the helpers and my both meshes. "hull_white" is the underwater hull and the "mesh_phys_proxy" the physical proxy (remember = for the whole ship).
    unbenannt-1kopiei9l1r.jpg


    Now, for the export of this modell is need to know, that we here export the lyonhoy1 - CGA modell! The exportsettings should be:

    Picture:
    unbenannt-28sac0.jpg


    Now we need to switch to the vehicle-xml. NOTE: How to create an xml and for what, I describe in another tutorial. A few the programmparts Captain Murphy is programming, so I only want to point actual, how to setup in this way attachments.
    A few very simple code-segments need to tell the engine what parts should connect with the attachment-helpers, we placed in Maya.
    The vehicle-xml is placed in the root: Scripts/Entities/Vehicles/Implementations/Xml

    Here a picture: You see the highlighted segments for the two attachment-helpers inside the <PART> - block. This block starts at the position I insert a blank line above the "chassis"-entry. The next two blank lines separate for better view the new (highlighted) entrys:

    Save and close the file after editing (I recommend the Notepad++ for editing an XML-file).

    Picture:
    (Note, that the path is case sensitive and should be right)
    unbenannt-389x75.jpg


    After loading the free SDK and placing the ship you see, that is not only the underwaterhull from "lyonhoy1.cga". Now, the ship is complete. This situation show us, that the attachments and the entrys inside the vehicle-xml works right. The already exported "mast" and "lyonhoy2.cgf" is required to make this work!

    Picture:
    (The debug screen of the attachments you get by typing "e_debugdraw 15" in the console)
    unbenannt-4spzlj.jpg


    To reduce future work inside the XML, you can open now the vehicle-editor because the required entrys for the both new attachments inside the XML are already done.

    Picture:
    You see, that you can place a damaged mesh too and that the attachment-helpers are already placed below the "chassis" entry. Info: When you turn the "asset-helpers" and "vehicle-helpers" displayoptions on then you see the attachment-helpers two times because the physical helpers (the placed helpers inside Maya) will then shown at the main root of the vehicle hierarchy too.
    unbenannt-5ltlpc.jpg
Back
Top