u/Dry-Wallaby114

▲ 188 r/pygame

Small 3D map illusion in pygame

Credits to Mr DaFluffyPotato video on sprite stacking. Heres how to achieve the effect with Voxel models:

  1. Export voxel files as slices from Magicavoxel, then crop it into layers (the export file comes as a single png file out of magicavoxel, so you can create an script to separate them in individual files for each layer or manually create each layer out of the main image by cropping each slicd)
  2. With the help of pygame, stack those layers with a small offset one on top of another, this will give the illusion of 3D to your models.
  3. The map tiles on the ground are also 2D png files, everytime tou rotate the camera, make sure you place them to have the tiles closest to the camera (bottom) drawn first
u/Dry-Wallaby114 — 6 days ago

Just a quick community service for everyone. Earlier today a high profile character was detained in Nayarit. Bus routes were suspended for about 30 minutes mainly because the company in charge ATM was worried stuff may happen to their buses as it happened on Domingo Negro.

As of 6:30pm, Bus routes to and from Nayarit have been normalized after 30 minutes suspension in service. You can travel freely to and from Sayulita/San Pancho to Vallarta, but it is advised to stay home at least for the rest of the day as a precaution. Stay safe and keep an eye on local news. No further advice has been given by the authorities. Peace

reddit.com
u/Dry-Wallaby114 — 17 days ago