Log In  

@electricgryphon

Follow
Follow

Cart [#landscape_16-0#] | Code | 2019-10-05 | No License | Embed
10

Old Version

Cart [#landscape_07-0#] | Code | 2019-09-30 | License: CC4-BY-NC-SA | Embed
10

Explore alien lands with a high-color world generator.

This is a new take on Postcards From the Fringe, which I made a few years ago. https://www.lexaloffle.com/bbs/?tid=28026

Press "z" to visit a new, random planet.

Features:
--High-color flicker dither technology with 4,096 indexed colors/patterns [Warning flashing lights]
--Endless bicubic noise mountains
--Mountain shape variations: islands, hills, spires, etc.
--Alien sunset sky with clouds
--Water with ripples and sky reflection
--Preview render in standard (non flicker) mode
--Anti-aliased image composing with alpha channel

To do:
--Ability to save / share worlds
--Controls to tweak variables

Technical:
This is a voxel landscape engine, actually adapted from Pico Kart but with height added. The system is not very optimized for speed right now... definitely room to make it a lot faster even if not real-time.
Color handling is taken from my Hypercolor Paint cart. The palettes of colors and patterns are loaded from cart memory and generated by another cart that takes ages to run.

-Electric Gryphon

P#68270 2019-09-30 05:26 ( Edited 2019-10-05 22:09)

Cart [#hypercolor_paint-0#] | Code | 2019-07-18 | License: CC4-BY-NC-SA | Embed
6

Introducing Hypercolor Paint, a high-color painting application for the PICO-8.

Features:
Paint in either high color mode (flicker) or standard (dithered) mode.
While editing, pixels are treated as 56,535 level 3-channel color.
Use a variety of brushes, with control of color, size and pressure to achieve desired effects.
Save images (requires download)
Export images (requires download)

Example Images: (High color mode is simulated)

<b>Keyboard:</b>
Z: Switch between paint mode and palette mode
Tab: Switch between high color and standard color mode
Mouse: Paint with left mouse button

<b>Palette Screen:</b>
?: Show splash screen
Color: Switch between paint mode and palette mode
Save: Save image locally to hyper_color_save.p8 (image will be cropped)
Load: Load image locally from hyper_color_save.p8
Export: Export image to hyper_color_export.p8
For standard color images, the sprite sheet will capture the full image.
For high color images, data is stored in sprite sheet as well as map and sound effect locations.

In order to view images, paste the following code into hyper_color_export.p8:
<code>
k_display_adr=0x6000
k_screen_1_adr=0x0000
k_screen_2_adr=0x2000
k_screen_len=0x2000
cur_frame=0

function _update60()
end
function _draw()
cur_frame+=1
if(cur_frame%2==0)then
memcpy(k_display_adr,k_screen_1_adr,k_screen_len)
else
memcpy(k_display_adr,k_screen_2_adr,k_screen_len)
end
end
</code>

Technical notes:
Two different 16X16X16 color look up tables are used to achieve responsive paint effects with dithering at 60 fps. In order to avoid a massive slow down (it takes a number of minutes to build the color cube) the look up table is generated by a different cart and loaded into sprite, map and sound memory.

Example exported cart:

Cart [#bunny-0#] | Code | 2019-07-18 | No License | Embed
6

P#65915 2019-07-18 06:08 ( Edited 2019-07-18 06:18)

Cart [#flyover_toy-0#] | Code | 2019-05-31 | License: CC4-BY-NC-SA | Embed
7

Been playing with cubic smoothing of simple noise for endless landscape generation.
It's definitely slower than lerping, but I think it creates more realistic looking shapes. In order to get a nice interactive frame rate, I had to rely on scrolling the screen and just updating the top portion. It kinda works although the textures smear vertically.

Press "z" to randomize parameters.

-Electric Gryphon

P#64881 2019-05-31 04:43

Cart [#image_morph_a-0#] | Code | 2019-02-24 | No License | Embed
13

Pico Image Morph 2000

Use your personal Pico-8 computer to create professional-quality image morphing effects as seen in blockbusters such as "Willow" and "Terminator 2". Use the power of Pico Image Moprh 2000 to seamlessly transform one person into another or even change a cat into a dog!

Pico Image Morph 2000 can even be used to create wacky deformations! The possibilities are endless!

Instructions:

Pico Image Morph 2000 requires the use of the Pico Mouse Accessory.
While in "Position Mode", locate deform points along critical portions of the image, such as centers of eyes or the edges of lips.
Switch to "Deform Mode" to drag deform points to new locations.
Use the "Onion Skin" button to switch between viewing the Start Image, Target Image, or a blended overlay of both.
Click the "Animate" button to loop the animation
The system include 5 different image to morph between.

Technical notes:

Morphing is done by using affine triangle transformations, and blending control point and texture coordinate positions for a source and a destination image and then compositing them together. This is a naive way to morph images, but at this resolution it actually works pretty well.
Images are store in strings within the code--they are simply 64X64 16 level grayscale images. I can share the python script if anyone wants it.

https://en.wikipedia.org/wiki/Morphing

Totally worth watching is the demo real for Elastic Reality from the early 90's. https://www.youtube.com/watch?v=AD5R7dJM4eU

--Electric Gryphon

P#62193 2019-02-24 02:23 ( Edited 2019-02-24 02:30)

Cart [#vox_mine_28-1#] | Code | 2019-01-18 | No License | Embed
28

Mine your way to fame and fortune in a continuously generated 3D voxel world. But keep an eye on your energy level and make sure you can find your way back through the deep and twisted caves.

Build block fortresses with a variety of materials.

Use the Far-View 3D Map and GPS to stay safe.

Instructions:
s,f: turn left and right
e,d: move forward and backwards
lshift or z: jump (hold to jump higher if upgraded)

The mouse is required for mining and building.
Click on shop computer to enter store menu. Ore and gems will auto-sell.

With laser selected, click and hold on a block to mine it. Circular progress bar will indicate how long is left. Precious ores will take longer to mine.

With a placeable block selected, click on the side of an existing block to place a new block.

Energy will deplete when moving, jumping or mining. The battery can be recharged by standing on the glowing yellow charge squares near the shop. When your energy goes to zero, you will lose most of your money and be teleported back to the starting point.

Recommendations:

  • The GPS or Far View are good investments early on because it's easy to get lost.
  • Be very careful about falling into caves. They may go very deep and getting back home before energy runs out could prove a challenge.

Notes:
This game uses a modified ray-casting engine based on tutorials from (https://lodev.org/cgtutor/raycasting.html). This was extended to work with voxels, reading in a local 3-dimensional map array.

The map is generated dynamically as the player moves around. However, it is set up such that the same block will always exist at the same x,y,z coordinates. In addition, there is a user map that is used to store the locations of blocks that the user added or removed. These are essentially stored in a sparse matrix.

There is currently no way to save your constructions. It might be possible to save some aspects of the world with the persistent cart data, but I don't know that 256 bytes will be sufficient. Clipboard import and export might be a better way to allow folks to share creations.

The code is a dog's breakfast. Token count wasn't really a problem for me on this one, but it was a struggle to keep frame rate acceptable with the world rendering code. I'd love to be able to increase the view depth without dropping to 15 FPS.

-electricgryphon

P#60809 2019-01-14 06:52 ( Edited 2019-01-18 05:45)

Cart [#bw_scroll1-0#] | Code | 2018-12-16 | License: CC4-BY-NC-SA | Embed
7

Take a stroll through the swirly bits of my imagination.

Technical details:
--Image size: 1536X128, 2 bit
--Scanned from a drawing and imported into Pico8.
--Utilizes RLE encoding as well as storage in both strings and sprite page

-electricgryphon

P#60037 2018-12-16 23:49

Cart [#hituditeku-0#] | Code | 2018-12-04 | License: CC4-BY-NC-SA | Embed
19


Cart [#yonipakifi-0#] | Code | 2018-11-30 | License: CC4-BY-NC-SA | Embed
19

Here's a Pico-8 ray tracer with the amazing ability to render both spheres AND planes.

Let it run all the way through even though the colors will be funky at first. After it renders the image, it will switch to high-color mode.

Features:
-NEW High Color Mode
-Spheres
-Planes
-Textures (2d)
-Diffuse and Specular Shading
-Shadows
-Reflections

-ElectricGryphon

P#59480 2018-11-30 05:24 ( Edited 2018-12-04 20:30)

Cart [#57730#] | Code | 2018-10-09 | License: CC4-BY-NC-SA | Embed
7

These things always get stuck in my socks when I go hiking.

I've been playing with a z-buffer 3D rendering implementation, which lends itself to recursive additive fractal structures.

My ultimate plan was a static landscape renderer, but this was an interesting (if sluggish) detour.

-Electric Gryphon

P#57732 2018-10-09 02:09 ( Edited 2018-10-09 16:32)

Cart [#52504#] | Code | 2018-05-07 | License: CC4-BY-NC-SA | Embed
44

Old Version

Cart [#52440#] | Code | 2018-05-06 | License: CC4-BY-NC-SA | Embed
44

Pilot your state-of-the-art RAH-66 Comanche helicopter over once-peaceful tropical shores. Take on an endless barrage of enemies and leave their wreckage littering the voxel landscape.

The engine and overall game is inspired by the Comanche series from NovaLogic.
https://en.wikipedia.org/wiki/Comanche_(video_game_series)

Features:
--Voxel landscape engine (as seen in Tera Firma tech demo)
--Shaded 3D polygon enemies
--Seamless map
--Awful self-made music and sound effects

Controls:
z: Fire Missiles
x: Fire Mini Gun
tab: Enable Mouse Control (left button fires gun)

-ElectricGryphon

P#52441 2018-05-06 02:51 ( Edited 2018-05-24 08:41)

Cart [#51644#] | Code | 2018-04-15 | No License | Embed
19

Here's a landscape / flight simulation engine that I have been playing with. I'm still figuring out how to turn this into a game, but at least it's functional now and runs at 30 fps.

It takes a few seconds to generate the map using simplex noise mapped onto a sphere.

Controls:
Arrow keys to turn and pitch up and down.
Z-key to accelerate

Notes:
There's a 3D shaded polygon engine built into this as well, but I'm not using it yet.

Thanks Anthony DiGirolamo for the simplex noise:
--https://www.lexaloffle.com/bbs/?pid=32443

--ElectricGryphon

P#51645 2018-04-15 17:32 ( Edited 2018-06-22 20:52)

Cart [#46523#] | Code | 2017-11-20 | No License | Embed
9

Playing around for the text jam using Signed Distance Functions. It's not really fast enough for anything other than a proof of concept for textifying grayscale images.

-Electric Gryphon

P#46524 2017-11-20 16:28 ( Edited 2017-11-21 07:02)

Cart [#44775#] | Code | 2017-09-30 | License: CC4-BY-NC-SA | Embed
6

I've become unhealthily interested in image compression on Pico8.

Hit the "z" key to see the next image.

What we have here is something that might resemble the JPEG compression scheme if you squint.
Compression goes like this:
--Discrete Cosine Transform + Quantatization
--Zigzag encoding of blocks
--Huffman encoding
--Run Length Encoding
--Conversion to a base 64 character set
--Overall compresses to around 1/5 of original 8-bit grayscale size.

What didn't work well:
Image quality is kinda low. There are only about 16 levels of gray that are discernible on pico8 with dithering. Not sure that it makes a lot of sense to encode 256 shades of gray in that case. Not to mention that the image quality at 64x64 is pretty lame to begin with.

This path may be a dead-end because I can only get about 12 64X64 images in here before hitting compressed code limit. If I drop the base 64 coding, I could fit maybe 10 images into the sprite area... Because Pico8 compresses data as well (definitely with better algorithms), my compression may be working at cross purposes to Zep's compression. I still need to do an experiment to see whether the base 64 encoding is any better than the base 16 coding.

I've got some glitching in the bottom right blocks.

Here's the compression script: https://github.com/electricgryphon/pico_8_jpg

Perhaps this will inspire someone to greater image compression heights :-D.

-Electric Gryphon

P#44776 2017-09-30 14:36 ( Edited 2017-10-06 20:58)

Cart [#44669#] | Code | 2017-09-27 | License: CC4-BY-NC-SA | Embed
23

Step into cyberspace with cutting-edge 3D vector graphics. Battle tanks with your triangular pew-pew cannon. Explode into a number of polygons.

This is an homage to Specter VR, which came packaged with my Macintosh Performa back in the day.
https://www.mobygames.com/game/spectre

Features:
-60 fps
-Motion blur effects
-Blue/Red 3D glasses mode (it actually works)
-Multiple camera modes
-An attempt at writing title music

Issues:
Gameplay is a bit, well, simple. Basically drive around shooting and being shot at.

--Electric Gryphon

P#44653 2017-09-27 01:31 ( Edited 2017-10-02 00:51)

Cart [#43486#] | Code | 2017-08-20 | License: CC4-BY-NC-SA | Embed
23

Take aim, fire and score! It's Desert Lead 3D!

Spread the desert with the dented and shattered remains of bottles and cans. It's like recycling, but more destructive.

For use with the Pico Light Gun, Desert Lead 3D is also compatible with the Pico Mouse.
(Pico Light Gun is only available in selected dimensions.)
Click at the bottom of the screen to reload.

Old version

Cart [#43449#] | Code | 2017-08-20 | License: CC4-BY-NC-SA | Embed
23

Notes:
Sound effects could use some love. Anyone have a good shot and "plink" sound?
Affine texture mapped 3D isn't perfect, but it does create the appropriate effect.
Scoring system may be a bit glitched right now.

Credits:
Thanks Felice for the sound and cross hair improvements.

-Electric Gryphon

P#43451 2017-08-20 02:24 ( Edited 2017-08-23 16:04)

Cart [#43087#] | Code | 2017-08-05 | License: CC4-BY-NC-SA | Embed
10

I feel like I'm going around in circles here.

-Electric Gryphon

P#43088 2017-08-05 13:53 ( Edited 2017-08-09 00:07)

Cart [#40542#] | Code | 2017-05-13 | License: CC4-BY-NC-SA | Embed
20

Here's a demo effect kludged together from some doodles I had been playing with.
I'm quite fond of my new and improved 3D shading. (It's not quite as speedy as the line shading I was using previously, but it gives smoother gradients.)

-Electric Gryphon

P#40543 2017-05-13 15:29 ( Edited 2017-05-20 06:26)

Cart [#47234#] | Code | 2017-12-10 | No License | Embed
36

I've been hacking at a ray-marching 3D rendering app.

Features:
--Phong shading
--Shadows
--Dithered colors

Update:
playing with the dithering patterns a bit more.

-ElectricGryphon

P#40491 2017-05-12 02:36 ( Edited 2017-12-10 02:15)

Cart [#40009#] | Code | 2017-04-29 | License: CC4-BY-NC-SA | Embed
8

Here's a stab at some lossy compression of the Bad Apple animation-- clocking in at 25 seconds long without even touching the sprite sheet.

The compression algorithm finds the best possible dictionary of 32 different 8x8 tiles with which to represent all of the frames of the animation. Then for each 8x8 chunk of each frame that is being compressed, I find the closest possible match out of this dictionary and record the index of this chunk. Finally, I use run length encoding to compress the string of dictionary indexes for each frame. (That's the idea at least...)

That gets things down to around 54 bytes per frame while still being recognizable.

This is inspired by gamax92 (https://www.lexaloffle.com/bbs/?tid=3263) and this C64 version (https://www.youtube.com/watch?v=OsDy-4L6-tQ)

-ElectricGryphon

P#40010 2017-04-29 02:04 ( Edited 2017-05-16 21:39)

Cart [#39462#] | Code | 2017-04-09 | License: CC4-BY-NC-SA | Embed
17

Inspired by old-school demo-scene effects, here is a new and improved grayscale bump map render, which takes 8 bit height map input and generates real-time shading effects.

Please see GitHub for Python image conversion script and sample files. (https://github.com/electricgryphon/pico-9-height-map-converter)

I found the skull height map in the following forum:
http://www.cnczone.com/forums/artcam-pro/156994-last-supper-bas-relief-trade.html

--Electric Gryphon

P#39461 2017-04-09 15:51 ( Edited 2017-04-12 09:38)

Cart [#38734#] | Code | 2017-03-25 | License: CC4-BY-NC-SA | Embed
14

Why settle for single renderings of a Mandelbrot when we can smoothly zoom in?

Features:
--Dithered Palette Animation
--Smooth Bilinear Zoom from sprite buffer
--Background Rendering of Mandelbrot into a (third?) buffer

The way this works is that we graphically zoom into initially rendered view of the Mandelbrot from the sprite buffer. While doing this, we are drawing the next level of Mandelbrot zoom into a second background buffer. When it's done, this gets copied into the zoom/sprite buffer. Lather, rinse, repeat.

Overall, a neat effect I think. Though, I wonder if I should trade the (more or less) smooth frame rate and dithering for less chunky pixels.

Also, I realize that I am awful at spelling "Mandelbrot".

-Electric Gryphon

P#38735 2017-03-25 17:10 ( Edited 2017-04-03 10:11)

View Older Posts
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-10-16 15:16 | 0.148s | 4194k | Q:278