Sansar Docs
  • 🚀Welcome to Sansar
  • 📚GLOSSARY
  • 🎏Patch Notes
  • 😇Work in Progress
  • ⚠️Creative Commons License
  • Support
    • General Troubleshooting
      • General FAQ
      • The Sansar Cache
      • The Sansar Log
    • Contact Support
  • Sansar Basics
    • Installation And Compatibility
      • Installing Sansar
      • System Requirements
      • Sansar Compatibility FAQ
      • Sansar on Mac
      • Body Tracking Vive
      • Configuring Firewalls
    • Account Management
      • Account Set Up
      • Avatar Name and ID
      • Adding Payment Method
      • Discord FAQ
      • Steam Integration
      • Subscription FAQ
    • Controls
      • Avatar Hand Gestures in VR
      • FreeCam and CineCam
      • Game Controller Buttons
      • HTC VIVE controls
      • Keyboard Shortcuts for Editing a Scene
      • Keyboard Shortcuts for Styling Your Avatar
      • Keyboard Shortcuts for Visiting an Experience
      • Mouselook Mode
      • Oculus Rift Controls
      • Vive Index Controls
    • Settings
      • General Settings
    • VR Settings
      • VR Settings Menu
      • Calibrating Height in VR
  • Exploring in Sansar
    • Navigate and Explore
      • The Codex
      • Instances
      • Interactive objects
      • The Main Menu
      • The Nexus
      • Portals
      • Quests
      • Quick Start: Exploring in Sansar
    • Socialize And Connect
      • Chat Panel
      • Experience Points, Levels, and Titles.
      • Finding People in Sansar
      • Identifying Interacting With Avatars
      • The People panel
      • User profiles
    • Attending events
      • Deploying Unpublished Event to Event World
      • Adding Events to Your Calendar
      • Attending Events in Sansar
      • Avatar Broadcasting FAQ
      • Creating Your Own Events
      • Redemption Codes
      • Tipping
    • Share Content
      • Streaming Sansar
      • Taking a photo
  • Avatar Creation
    • Avatar Basics
      • Avatar 2.0 FAQ
      • Customizing Your Avatar
      • Avatar Emotes
      • The Avatar Editor
    • Dressing The Avatar
      • Fitting Designer Clothing to your Avatar
      • Setting Custom Emotes
      • Wearing Accessories
      • Wearing Rigged Clothing
    • Managing Avatar Items
      • Importing Avatar-Related Items
      • Editing an inventory item's name
      • Editing an inventory item's image
      • Deleting avatar looks from your inventory
      • Importing a custom emote animation
      • Managing your avatar looks inventory items
    • Avatar Resources
      • Avatar Reference Files
      • Blender - Avatar files
      • Blender - Using Decimate Tool
      • Exporting Custom Avatars From Blender
      • Sansar Skeleton Skinning Details
      • Using Animation Skeleton
  • Creating In Sansar
    • Importing Things to Sansar
      • Supported file types
      • AABB Bounding Box and Item Restrictions
      • Importing Audio
      • Importing a Custom Avatar
      • Importing World Items
      • Importing Collision Volumes
      • Importing Accessories
      • Importing Clothing
      • Importing Emotes
      • Importing Hair
      • Importing Custom Scripts
      • Importing a Skybox
      • Troubleshooting Import Errors
    • Shaders and Materials
      • Shaders Information
      • Materials Information
      • VAT Shader Guides
        • VAT Shader Basics
        • VAT Technical Info
      • Displacement Guides
        • Simple Displacement
        • Advanced Displacement
    • Marvelous Designer Info
      • Marvelous Designer Integration
      • Marvelous Designer Creator Resources
      • Marvelous Import and Export
      • MD Limitations
    • Shader Scripting
    • Materials editing and shaders
    • Creator Tools
      • Creating a World
      • Creating Quests
      • Diagnostics Toolbar
      • Importing Items to Sansar
      • My Worlds Panel
    • Managing Worlds
      • Quick start: Creating experiences in Sansar
      • Deleting an experience or scene
      • Deploying a new scene to an existing experience
      • Editing a scene
      • Experience memos
      • Linking A Scene To A World
      • Managing your scenes and worlds
      • Moderation Tools for World Owners
      • Publishing Options for Your Experiences
      • Renaming a scene
      • Saving and Building A Scene
      • Sharing Your Experiences
      • Visiting your own experience
    • Part Of The World Editor
      • Object Stats Toolbar
      • Object Components
      • Parenting objects
      • Scene Item Inventory
      • Scene Objects Panel
      • Collision Volumes
      • Scene Settings
      • System objects
      • Object Motion Types
    • Working With Scripts
      • Working With Scripts
      • Working With Trigger Volume
      • Referencing Scene Components
      • Intro to Scripting in Sansar
      • Using the Script Console
      • Setting Script Parameters
      • Adding Scripts to an Object
      • Configuring Teleport Scripts
      • Simple Script User Guide
    • Working With Audio and Video
      • Working With Audio
      • Creating Media surface
      • Streaming Web Audio
      • Audio Emitter
      • Sansar Audio FAQ
      • Using Media Streams
      • Ambisonic Sounds
      • High Quality Spacial Audio
      • Audio Resource - Room Tones
      • Previewing Audio and Video in a Scene
      • Using Audio Materials
    • Working With Lights
      • Working With Lights
      • Light Types
      • Global Illumination
  • Sansar Store
    • Using the Sansar Store
      • The Sansar Store
      • Buying Items From The Store
      • Redelivering Lost Purchases
    • Buying and Selling Sansar Dollars
      • Gifting Sansar Dollars
      • Buying Sansar Dollars
      • Converting Sansar Dollars
      • Processing US Dollar Credit
    • Selling Your Content
      • Hidden Store Listings
      • Selling Items in Sansar Store
      • Selling Items in an Experience
      • Allowing Resale Of Items
      • Buyers Permissions
  • Guidelines and Moderation
    • Guidelines and Policies
      • Terms of service
      • Sansar's Discord Server Rules
      • Community Standards
      • Content Guidelines
      • World Publishing Guidelines
      • Store Listing Guidelines
      • Store Banner Guidelines
      • Event Guidelines
      • Privacy Policy
      • Sansar Freeware License Agreement
      • Intellectual Property Infringement Notification
      • Cookie Policy
    • Moderation and Reporting
      • Abuse and Griefing
      • Blocking Avatars
      • Muting Avatars
      • Reporting abuse
      • Reporting issues and bugs
      • Security issues
  • Script API Docs
    • General Information
      • External Script Repository's
      • Sansar Script API
      • Script API Updates
      • Restricted API's
    • Example Scripts
      • Example Scripts in Sansar
      • Cannonball
      • Follow The Path
      • Random Movement
      • Reflective Detector
      • Simple Script
      • Sound Randomizer
      • Stats Example
      • Teleport Hotkeys
      • Visitor Tracker
      • Mover Examples
    • Sansar Namespace
      • Namespace
      • Color
      • Mathf
      • Quarterion
      • Vector
      • Vector Extensions
    • Sansar.Script Namespace
      • AddEntryAttribute
      • CancelData
      • ComponentID
      • CoroutineException
      • Default Attributes
      • Editor Visible Attribute
      • Entries Attribute
      • Event Data
      • ICoroutine
      • IEvent Subscription
      • Instance Interface
      • Locked Attribute
      • Log
      • MaxEntriesAttribute
      • Memory
      • MinEntriesAttribute
      • NonReflectiveAttribute
      • ObjectID
      • OperationCompleteEvent
      • RangeAttribute
      • Reflective
      • Script.Base
      • Script Event Data
      • Script Handle
      • ScriptID
      • SessionID
      • Simple Script Event Data
      • ThrottleException
      • Timer
      • Tooltip Attribute
    • MetaData Namespace
      • Assembly MetaData
      • Script MetaData
    • Sansar Script Testing Namespace
      • Assertion Failure Exception
      • Assertions
    • Sansar Utility Namespace
      • GenericEnumerable <T>
      • GenericEnumerable<T>.GetItem
      • JSON Serialization Data
      • JSON Serialization Data 1
      • JSON Serializer
      • JSON Serializer Options
    • Sansar Simulation Namespace
      • Agent Info
      • Animation
      • Audio Component
      • Camera Control Mode
      • Character Tracker
      • Chat
      • Client
      • Cluster
      • Command Action and Data
      • Component Type
      • Control Point Type
      • Held Object
      • HTTP
      • Interaction
      • Light
      • Media Action
      • Mesh Component
      • Modal Dialogue
      • Move Mode and Mover
      • Objective
      • PlayHandle
      • PlaySettings
      • PlayStatus
      • Quest
      • RayCastHit
      • Rigid Body
      • Scene
      • Scene Public
      • Simple Script
      • Sit Event Type
      • Sit Object Data
      • Sound Resource
      • Stream Channel
      • Tutorial Hint
      • UI
      • User Data
Powered by GitBook
On this page
  • Exporting from Marvelous Designer 9
  • Step 1: Arrange your patterns.
  • Step 2: Setting up the UV alignment.
  • Step 3: Create a save point!
  • Step 4: Exporting your .SAMD file
  • Optional: Exporting a UV map for 2D texturing
  • Step 5: Exporting a .FBX from MD for texturing
  • Step 6: Removing extra material slots
  • Optional: FBX cleanup
  • Step 7: Export single material FBX.
  • Importing MD items to Sansar
  1. Creating In Sansar
  2. Marvelous Designer Info

Marvelous Import and Export

PreviousMarvelous Designer Creator ResourcesNextMD Limitations

Last updated 1 year ago

Exporting from Marvelous Designer 9

Once you have your clothing item made this guide will help you to get your file ready for exporting from MD to then import into sansar and for texturing externally in programs like substance painter.

NOTES:

  • Sansar only allows 1 material slot for MD based items so all of your materials (fabrics) will be combined into one set of Texture maps when exported so make sure you have no overlapping parts you need to texture separately.

  • Fabrics slots will still retain any individual settings the fabric itself had so even though they will be combined into a single map the individual cloth settings will remain. See for more info.

  • If you edit your pattern in any way you will need to repeat the UV alignment steps.


Step 1: Arrange your patterns.

You need to arrange your patterns as best you can into a square shape, as MD's 2d window also effects the size of the actual mesh just arrange them the best you can without resizing, you are ok to move and rotate and also make sure nothing is overlapping and has a bit of room 'Padding' around each part.


Step 2: Setting up the UV alignment.

Open the 'UV Editor' window from the top right menu

In the UV Editor window, Right click, then 'Set UV from pattern alignment' Your map may be in a different position than shown as it is based on its positioning in the 2D window, but will be fixed by the next step.

Now Right click again, and select, 'Fit UV to unified (0-1)'

In the next box that pops up: Set to; relative uv coordinate (0-1) make sure the number is 0.01. and this should fix the positioning.

Step 3: Create a save point!

After completing these steps make sure to create a save at this point in case you need to return as exporting can sometimes cause a crash in MD. If you edit the patterns in any way these previous steps will also need to be redone.

You are now ready to export your files a .SAMD for import into sansar and a .FBX for use in texturing that can also be uploaded to edit mode to use as a display item (it is recommended to optimize this mesh if using for edit mode).

Step 4: Exporting your .SAMD file

MD will automatically pack all fabrics into one material slot for the .SAMD

On the top left Click File > Export > .SAMD and select your desired location.

Now Set to; Use UV Map on UV Editor, Then Click OK

You have now created the .SAMD file you will use to upload into sansar.

If you have done your texturing in MD it may work but is usually not a good match in sansar and it is recommended to create your textures separately.

Optional: Exporting a UV map for 2D texturing

If you are texturing manually with 2D maps you can export a UV layout to make it easier to line up your texture in a image editing program.

In the 'UV Layout' window at the top left click the 'UV Snapshot button'.

Choose your Path, Your desired texture image size (2048 is fine most of the time) and make sure your UV area is set to (default) 0 - 1.

Step 5: Exporting a .FBX from MD for texturing

NOTES:

  • When Exporting a .FBX for texturing if you have more than one fabric (material) you may need to combine them into a single slot once exported, this is easier to do externally in blender rather than changing your MD projects file.

  • If you just require the garment for texturing you need to temporarily delete the Avatar from the scene otherwise it will be exported also. later versions of MD have this as a option on export.


In the Simulation window Right Click the avatar and select 'Delete all Avatars'

With just the garment in the scene at the top left, go to File > Export > FBX and choose your desired location.

Selecting the following settings

  • Single Object - combines the mesh into a single object.

  • Thin - sansar only accepts thin.

  • Unweld - doesn't combine seams vertex'and gives better shading.

  • Unified UV coordinates - exports the UV in 0 - 1 range.

  • Fill Texture Seams - set to about 4mm this is texture padding.

  • Unified Textures - combines any separated texture uv's into one (doesn't combine materials)

  • Auto Scale - matches the scale you patterned with.

Step 6: Removing extra material slots

If you had more than one Fabric type (material) you will need to remove them from your FBX in order for it to match sansars single material texture slot. This only needs to be done for your FBX you are using to texture and has no effect on the properties of the imported file. as the .SAMD export does this for you. if you only used one Fabric (material) in MD you can skip this step and use your .FBX right away.

Once exported from MD you can import your .FBX into Blender (or other 3D software)

Now select the garment in 'Object mode' (highlights in bright orange), opening the material properties panel on the right and delete all but one material slot.


Optional: FBX cleanup

NOTE: It is considered good practice to name your mesh and the remaining material slot while here and also apply any scale and rotations that have been picked up along the way by having your object selected and pressing CTRL+A and then apply all transforms. Best done if you intend to import the mesh into edit mode as a in world demo model.

Step 7: Export single material FBX.

Now with your garment selected you can Re-Export a new .FBX for use in 3D texturing programs like substance painter with a single material slot matching sansars .SAMD material setup. By going to File > Export > FBX then choosing your desired path and the following settings.

Your .FBX is now ready to use for texturing, and matches the .SAMD exports material and UV layout.

NOTES:

  • It may be a good idea to optimize the garments mesh as it is considered higher poly than needed for a display but not recommended if you are using it to texture as you want the best match to your .SAMD

  • This FBX is not used for import to the avatar clothing slots and would require rigging in order to be used on a avatar.

Importing MD items to Sansar

Coming soon...

Temp info: Import the .SAMD into the clothing slot of the chosen gender in lookbook.

MD Limitations