Git Product home page Git Product logo

pinworld's Introduction

PinWorld

PinWorld is 3d pin canvas. You can use it to create metashaders that control each pin height. It is a simple 3d engine that uses raylib and raygui.

demo.mp4

Features

  • Fast pins renderer
  • Minimal dependencies
  • Simple Metashader to position pins
  • Cpp Metashader - you can develop your own metashaders in C++
  • Py Metashader - you can develop your own metashaders in Python, support via pocketpy
  • Py animation code is not fast, but it can be usefull for prototyping
  • Gif Metashader - it plays out the gif animations
  • Water Metashader loosely based on Acerola's video
  • Works on Mac, Windows and WASM - web demo

Controls

  • menu_key = KEY_M
  • up_key = KEY_W
  • down_key = KEY_S
  • left_key = KEY_A
  • right_key = KEY_D
  • forward_key = KEY_Q
  • backward_key = KEY_E
  • next_shader_key = KEY_RIGHT
  • next_shader_fast_key = KEY_DOWN
  • previous_shader_key = KEY_LEFT
  • previous_shader_fast_key = KEY_UP

Development

git [email protected]:RuiVarela/PinWorld.git
cd PinWorld

mkdir build
cd build

# General
cmake ..
cmake --build .

# To build a Release version on Linux and Mac:
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
cmake --build . -- -j 8

# Build a release version for mac with arm support
cmake -DCMAKE_OSX_ARCHITECTURES="arm64x86_64" -DCMAKE_BUILD_TYPE=Release .. 
cmake --build . -- -j 8
lipo -archs Senos.app/Contents/MacOS/Senos

# To build a Release version on Windows with the VisualStudio toolchain:
cmake ..
cmake --build . --config Release
cmake --build . --config MinSizeRel

# Emscripten
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/Users/ruivarela/projects/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DPLATFORM=Web ..
cmake --build . -- -j 8
# run web version using a tiny webserver

python3 web/wasm-server.py

Credits

pinworld's People

Contributors

ruivarela avatar

Stargazers

 avatar

Watchers

 avatar

pinworld's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.