Skip to content

freds72/picocad-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PicoCAD Client

Starter kit 3d engine to display PicoCAD models:

  • basic FPS controller
  • perspective camera
  • optimized transform & project pipeline
  • global sorting

Tank Prototype

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

How To Use

  • 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

Credits

Tank model by Johan Peitz

Sort by Morgan McGuire

Licence

Sample code is licenced under: Creative Commons Attribution 4.0 International Public License