diff --git a/CHANGELOG.md b/CHANGELOG.md index 4246ed5..dd9b41c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) ### Changed ### Fixed -## [1.6.0] +## [1.6.0] 2020-11-24 ### Added - Added option to use texture name to use as material name, enabled by default. Needs testing, and suggestions - Added bounding box option on export. 'Main' mode deals makep3d results, 'All' mode should make the whole model collidable - Added option to force select a main mesh on export +- Added 'Crashday - Mesh' panel. Currently contains flags, which are saved into .p3d. Check readme for more info on flags. ### Changed - Changed plugin mesh limits from 32k to 65k. If models start to crash CD, pls report! - Renamed 'CDRE' to 'Crashday' in panels for nicer look diff --git a/README.md b/README.md index 411a107..e97022c 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,15 @@ Though, makep3d sets coronas to off and environment light up to on for every lig ## Moddeling guidelines CD .p3d format does not support a lot of options available in blender and also uses some old techniques to achieve certain things. Because of that users need to model and structure the scene in a certain way to achieve a good look. Y+ axis in blender is forward direction for cars. +Z+ axis is height in cd world. ### Materials For materials a new panel was added named "Crashday - Material". This panel has material type and texture name used by Crashday. There is no need to add an extension to the texture name, but remember CD uses .dds or .tga. ### Creating hard edges CD .p3d files do not store any information about normals which means we can not change how smoothing works(only by using pre-set material types). While Flat materials will show triangles and all the edges will look hard, Gouraud materials will smooth everything. Sometimes it is needed to create a hard edge on smooth surface. The CD way to do this is to split the edge. +### Mesh flags +Since this is highly undocumented, you really shouldn't mess with those. The exporter will auto set every flag as Crashday usually expects. +Every mesh has a flags field saved into .p3d. This fields stores some general information about the mesh. Usually, only 'Main', 'Visible', 'Tracing' and 'Collision' are set by the exporter. Other ones i used by the game and set on model load. For example 'Detachable' flag might be set when a mesh with 'det_' is found. In short, these flags are not supposed to be edited not by the game, but who will stop us from trying ;). Some flags should have no effect, but others might. ## TODO: - dimensions in .p3d mesh are read in the wrong order