Log In  

Cart #51359 | 2018-04-06 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

What it is and does:

  • 3D single-point camera(pan and zoom, no rotation)
  • Sorted draw of "scubes" (small cubes/sprite cubes) and "lcubes" (large cubes, collections of scubes - but they could be any shape)
  • Generates voxel data from the cart's sprite map! It works by combining a texture map, a depth map, and an address into the texture data to generate scubes. Then some additional post-processing allows the scubes to be transformed opening possibilities for procedural terrain etc.

I'm not sure how much further I'll go in developing this one because the game I'm making needs something a little more suited to crisp, accurate walls and corridors and I ended up with this after iterating through polygonal voxel cubes first and finding that this technique could approximate that result with far fewer tokens. So I cleaned it up a bit and started thinking about how to make it do things more like old Sega games(Space Harrier, Outrun, Power Drift, Galaxy Force), but the asset pipeline isn't quite as complete as I want yet - so if you want to step in, please go ahead. This probably won't be my focus for a while.

P#51360 2018-04-05 22:04 ( Edited 2018-04-06 02:33)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-09-30 05:26:57 | 0.009s | Q:12