Skip to content

Commit

Permalink
release tiiiiime
Browse files Browse the repository at this point in the history
  • Loading branch information
wurunduk committed Nov 24, 2020
1 parent 361a3d4 commit 2200196
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2200196

Please sign in to comment.