Skip to content

3D Models specifications

Dimitrios Ververidis edited this page Sep 11, 2018 · 14 revisions

Formats

The Wavefrom OBJ format is currently supported. MTL is used for defining the materials. Textures can be either jpg or png.

OBJ format

Some rules exist

.obj

  • myModel.obj
    • Each obj file should not be more than 256MB!
    • Smoothing: : the 's' (smoothing meshes) tag should be always off like this 's off' (opposite 's 1'). We do not want our models to loose their fidelity.

.mtl

  • myModelMaterial.mtl
    • The textures jpgs should be stored without path, e.g. 'map_Kd mymodeltexture.jpg'
    • 'newmtl building2_NoGlossy': The material names could include the special word 'NoGlossy' that removes any glossiness in Unity3D.

Textures

Textures can be either jpg or png. Do not use jpgs and pngs simultaneously in one mtl file. Textures should be rectangular up to 8192px x 8192px .

jpg

  • myModelTexture_xdpi.jpg
    • '_xdpi' is a magic word where x takes the values 'h' (high quality), 'n' (normal quality), 'l' (low) quality that automatically imports the texture jpg with the following parameters:
      • h: 8192px, 100% jpg compression
      • n: 2048px, 95% jpg compression
      • l: 256px, 90% jpg compression

png

  • PNG format allows to make foliage (trees, plants) efficiently with planes textured with a png image with transparency.
  • Put the keyword "Transparent" in the obj, mtl, material names, jpg and png files. It is used as a keyword in order to enable the transparent rendering.
Clone this wiki locally