Starter kit 3d engine to display PicoCAD models:
- basic FPS controller
- perspective camera
- optimized transform & project pipeline
- global sorting
Note: sample code requires Pico8
Many points are left to the reader:
- efficient culling of non visible objects
- near plane clipping
- collision & anything related to a particular game
- Edit model using PicoCAD
- Export model to p8l file
- Edit p8l file to remove comments
- Copy texture image in picocad_player.p8 cart
- Edit Include p8l file in picocad_player.p8. Ex:
#include chunky_tank.p8l
- Create 3d entity in _init with:
_entities={
-- initial (x,y,z) position + reference to 3d model
-- note: y is up
make_3dobject({5,0,5},chunky_tank)
}
- Change game logic/structure to fit your game!
- Good luck
Tank model by Johan Peitz
Sort by Morgan McGuire
Sample code is licenced under: Creative Commons Attribution 4.0 International Public License