Difference between revisions of "3D - General information"

From Mashinky
Jump to: navigation, search
(Added links to wiki)
Line 1: Line 1:
<strong>Formats for assets in the game</strong>
+
Mashinky engine uses
 +
* [https://en.wikipedia.org/wiki/.x *.x (DirectX mesh)] format. It is native format for DirectX applications, fast, variable, 3 versions (text, binary, binary compressed). It supports multiple animations, adding meta data etc.
  
== 3D assets ==
+
Mashinky vanilla models are stored in DriveLetter:\SteamAppsPath\Mashinky\media\model\. You can preview them using appropriate .x viewer. See [[3dtools | Tools & Resources]] for more information.
Mashinky engine is able to load
+
 
* [https://en.wikipedia.org/wiki/.x *.x (DirectX mesh)] format. It is native format for DirectX applications, fast, variable, 3 versions (text, binary, binary compressed). It supports multiple animations, adding meta data etc.
+
Model complexity is determined by it's triangle (tris) count. Vanilla models adhere to a certain limit set for each type of 3d asset. While it is possible to import model with highter tri count, keep in mind that there can be many such objects loaded at the same time and all together can cause performance issues.
 +
 
 +
Example tri counts:
 +
*Train car -- 1k - 3k
 +
*Train engine -- 5k - 10k
 +
*Buildings -- 1k - 3k
 +
*Vehicles -- 3k - 10k
 +
 
 +
Of course the tri count depents on the complexity of its real life counterpart. Also, keep in mind that cargo vehicles need to include the cargo model itself.
  
Take a look into [[how to setup 3D modeling tool]] to prepare exporter and your 3d environment
+
More TBA
  
 
== 2D assets ==
 
== 2D assets ==

Revision as of 11:58, 22 March 2021

Mashinky engine uses

  • *.x (DirectX mesh) format. It is native format for DirectX applications, fast, variable, 3 versions (text, binary, binary compressed). It supports multiple animations, adding meta data etc.

Mashinky vanilla models are stored in DriveLetter:\SteamAppsPath\Mashinky\media\model\. You can preview them using appropriate .x viewer. See Tools & Resources for more information.

Model complexity is determined by it's triangle (tris) count. Vanilla models adhere to a certain limit set for each type of 3d asset. While it is possible to import model with highter tri count, keep in mind that there can be many such objects loaded at the same time and all together can cause performance issues.

Example tri counts:

  • Train car -- 1k - 3k
  • Train engine -- 5k - 10k
  • Buildings -- 1k - 3k
  • Vehicles -- 3k - 10k

Of course the tri count depents on the complexity of its real life counterpart. Also, keep in mind that cargo vehicles need to include the cargo model itself.

More TBA

2D assets

Mashinky engine is able to load many different formats:

  • *.dds - preferred. DirectDraw Surface, it is native format for DirectX. Industry standard, able to store in many different bit formats, very fast for loading, custom mipmaps, etc.
  • *.bmp
  • *.jpg
  • *.png
  • *.tiff
  • ...

Take a look into how to setup 2D editor to prepare exporter and your 2d editor