Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Show off your project!

Realtime autostereogram shader for Godot

DezrasDragons
Saturday, November 14, 2020 - 08:41
DezrasDragons's picture

I have recently been playing around with shaders in Godot, and I decided to implement this (https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/ch...) one, since I LOVED Magic Eye as a kid.

The code is on github under MIT license: https://github.com/voxibit/godot-autostereogram

It's pretty easy to set up in Godot, you just import some models, place them into the scene, and hit play! You can change the texture being used by clicking on the Autostereogram node, clicking on "Material" in the inspector (right hand side of screen), clicking to expand "Shader Param", and dragging a new texture onto the "Image" field.

SPACEBAR takes a screenshot that goes into the screenshots directory, and TAB cycles between showing the raw scene, the depth buffer, and the autostereogram.

I had a lot of fun making scenes using some models and textures from OGA! Here are a few that came out well, with credits posted below, to avoid spoilers :)

Welcome to Hell!

Sunken

Take me to church

Marble

Idyllic

I even did an animated version of the last one, which is on imgur here: https://i.imgur.com/JEvhzeI.mp4

  • Log in or register to post comments
DezrasDragons
joined 7 years 4 months ago
Saturday, November 14, 2020 - 08:45
DezrasDragons's picture

Credits for the above scenes - SPOILERS BE HERE! (and here: https://github.com/voxibit/godot-autostereogram/tree/main/samples)

### Textures ###
Mitch Featherston used under the CC0 license
https://opengameart.org/content/100-seamless-textures

Yughues/Nobiax, edited by CryHam, used under the CC0 license
https://opengameart.org/content/terrain-textures-pack-from-stunt-rally-23

Rubberduck, used under the CC0 license
https://opengameart.org/content/50-free-textures-5-with-normalmaps

### Models ###

Demon statue by yd, used under the CC0 license
https://opengameart.org/content/demon-statue

Hammerhead shark by STKRudy85, used under the CC0 license
https://opengameart.org/content/shark-low-poly

Sunken ship by Kenney used under the CC0 license
https://opengameart.org/content/pirate-kit

Well model from OwlishMedia, used under the CC0 license
https://opengameart.org/content/basic-well

Church by AnyRPG, used under the CC0 license
https://opengameart.org/content/medieval-church-interior

Tree by amuzen, used under the CC-BY-SA 3.0 license
https://opengameart.org/content/squiggly-tree-in-fall

Ancient temple by OdinTdh, used under the CC-BY-SA 4.0 license
https://opengameart.org/content/ancient-temple-0

Statue with lamppost by Colorado Stark, used under the CC0 license
https://opengameart.org/content/statue-holding-lightpost

Windmill model from luke1985 used under the CC0 license
https://opengameart.org/content/windmill-4

Cow, and sheep model from quaternius used under the CC0 license
https://opengameart.org/content/lowpoly-animated-farm-animal-pack

  • Log in or register to post comments