dungeon_crawler

annotate prototype/doc/tiles @ 21:0588f8a1a351

converting LIGHT meshes to lights
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 21 Aug 2012 06:33:36 +0300
parents
children
rev   line source
nuclear@21 1 Notes on how to construct tiles for the prototype
nuclear@21 2 -------------------------------------------------
nuclear@21 3
nuclear@21 4 Tile grid size 1x1x1 (geometry can be of arbitrary size if it looks ok).
nuclear@21 5
nuclear@21 6 - Export as OBJ with MTL, including normals and multiple objects.
nuclear@21 7 - Associate geometry with a particular cardinal direction by prefixing NORTH_,
nuclear@21 8 SOUTH_, EAST_, or WEST_, in the object name. Directional geometry will be
nuclear@21 9 ignored appropriately for cells with neighboring cells occupied.
nuclear@21 10 - Lights should be meshes with the LIGHT substring in their name. Bounding
nuclear@21 11 sphere is used to specify the light position and attenuation. Material
nuclear@21 12 parameters (diffuse) control the light intensity/color.
nuclear@21 13
nuclear@21 14 This is terrible, but ok for a prototype. Should write a proper exporter to a
nuclear@21 15 custom tile format at some point.