Skip to content

SamFrohlich/Hypertexture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hypertexture Domain Specific Language

Hypertexture

Hypertexture is shape description method that allows the representation of phenomena like fire or smoke. Instead of being represented as a shell 3D shapes are represented as an array of density values.

The Code

This is a domain specific language embedded into Haskell providing an expressive way of creating and combining Hypertextures. The code includes a deep embedding that can be given different semantics by providing different instances of the Alg type class. Two example instances are also given:

  • Maya: Turns a subset of the DSL into MEL code that creates 3D shapes in Maya
  • Set: Compiles the language down to a set membership function. This function can be used to sample densities at specific points to produce cross sections or 3D renderings of Hypertexture.

About

A domain specific language embedded into Haskell providing an expressive way of creating and combining Hypertextures.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors