Giter VIP home page Giter VIP logo

geometer's Introduction

splash

Geometer

In my continuing effort to get the Clojure community to notice Karsten Schmidt, and the creative coding community to notice Clojure, I've created this little interactive playground for experiments with Karsten's th.ing libraries. A live version is hosted here.

Usage

  • Select model to generate from pallette
  • Switch between normal & stereo rendering modes

Keyboard shortcuts

  • w / s - zoom in/out
  • [ / ] - adjust eye separation for stereo rendering mode (see HUD in top-right corner)

Since it's hard to determine the correct eye separation without a VR device, with my cross-eyed experiments, I believe the sweetspot is at ~ -0.31. It's best to use a simple object (e.g. cube) and also somewhat zoom out. Once you see in stereo, then switch to more exciting objects (e.g. algae)...

Getting Started

After checking out the repo (and assuming boot is installed):

  1. Start the boot development server: $ boot dev

  2. Point your browser of choice at http://localhost:3000/

  3. Connect your editor to the nrepl server that boot started, which in emacs can done via M-x cider-connect โ‡’ localhost โ‡’ geometer:port-number.

  4. Refresh your browser to make sure all the bits are talking to each other.

  5. If you're using emacs, cider-eval-buffer.

  6. Begin evaluating forms.

N.B. Saving any cljs file will trigger recompilation of the entire file and an automatic reload of the namespace. The current model and view rotation are defined using defonce to avoid jankiness.

The Code

There are examples of creating meshes from primitive shapes, including extruding 3D meshes from 2D primitives, and implementations for a couple of simple generative techniques. More will follow.

geometer's People

Contributors

jackrusher avatar postspectacular avatar

Watchers

 avatar

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.