Changeset 37384 in project


Ignore:
Timestamp:
03/16/19 17:42:16 (16 months ago)
Author:
Kooda
Message:

Document noise for CHICKEN 5

File:
1 copied

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/noise

    r37369 r37384  
     1
    12== noise
    23[[toc:]]
    3 noise implements several coherent noise generation functions for the GLSL. Each type of noise is implemented as a [[http://wiki.call-cc.org/eggref/4/glls|glls]] shader. While it is not necessary to use glls in your application, it is recommended since it makes things much easier. It is also entirely possible to use this library to create noise for an application that doesn’t otherwise use OpenGL. In this case, noise can be generated (very quickly!) on the GPU and then saved as a texture for access by the CPU. See the [[#examples|Examples]] section for an example of this.
     4noise implements several coherent noise generation functions for the GLSL. Each type of noise is implemented as a [[https://wiki.call-cc.org/egg/glls|glls]] shader. While it is not necessary to use glls in your application, it is recommended since it makes things much easier. It is also entirely possible to use this library to create noise for an application that doesn’t otherwise use OpenGL. In this case, noise can be generated (very quickly!) on the GPU and then saved as a texture for access by the CPU. See the [[#examples|Examples]] section for an example of this.
    45
    56noise is indebted to Stefan Gustavson and Ashima Arts who created the highly optimized shaders that this library re-implements. You can see a description of these shaders [[https://github.com/ashima/webgl-noise/wiki|in their own words]].
     
    113114
    114115=== Examples
    115 An example of the use of each type of noise can be seen in [[https://github.com/AlexCharlton/noise/tree/master/examples|the examples directory]]. These examples rely on [[http://wiki.call-cc.org/eggref/4/opengl-glew|opengl-glew]], [[http://wiki.call-cc.org/eggref/4/gl-math|gl-math]], [[http://wiki.call-cc.org/eggref/4/gl-utils|gl-utils]], and [[http://wiki.call-cc.org/eggref/4/glfw3|glfw3]]. They can either be run directly with {{csi}} or, since they use {{glls-render}}, they can be compiled by linking with GL (e.g. {{csc -lGL 2d-simplex.scm}}).
     116An example of the use of each type of noise can be seen in [[https://www.upyum.com/cgit.cgi/noise/tree/examples|the examples directory]]. These examples rely on [[https://wiki.call-cc.org/egg/epoxy|epoxy]], [[https://wiki.call-cc.org/egg/gl-math|gl-math]], [[https://wiki.call-cc.org/egg/gl-utils|gl-utils]], and [[https://wiki.call-cc.org/egg/glfw3|glfw3]]. They can either be run directly with {{csi}} or, since they use {{glls-render}}, they can be compiled by linking with libepoxy (e.g. {{csc -L -lepoxy 2d-simplex.scm}}).
    116117
    117 It is important to note how the noise shaders are being imported in these examples: through [[http://wiki.call-cc.org/eggref/4/glls#shaders-that-export|glls’ {{use}} keyword]]. This makes it so that the prototypes from the noise shaders are automatically added to the examples’ fragment shaders.
     118It is important to note how the noise shaders are being imported in these examples: through [[https://wiki.call-cc.org/egg/glls#shaders-that-export|glls’ {{use}} keyword]]. This makes it so that the prototypes from the noise shaders are automatically added to the examples’ fragment shaders.
    118119
    119 [[https://github.com/AlexCharlton/noise/tree/master/examples/render-to-texture.scm|The render-to-texture example]] provides an additional example to illustrate how noise can be captured to a texture via a framebuffer. With the noise in a texture, it can then be retrieved to RAM if access to the noise from the CPU is desired.
     120[[https://www.upyum.com/cgit.cgi/noise/tree/examples/render-to-texture.scm|The render-to-texture example]] provides an additional example to illustrate how noise can be captured to a texture via a framebuffer. With the noise in a texture, it can then be retrieved to RAM if access to the noise from the CPU is desired.
    120121
    121122
    122123=== Version history
     124
     125==== Version 0.2.0
     126* Maintenance given to [[/users/kooda|Kooda]]
     127* Port to CHICKEN 5
     128
    123129
    124130==== Version 0.1.0
     
    127133
    128134=== Source repository
    129 Source available on [[https://github.com/AlexCharlton/noise|GitHub]].
     135Source available [[https://www.upyum.com/cgit.cgi/noise/|here]].
    130136
    131 Bug reports and patches welcome! Bugs can be reported via GitHub or to alex.n.charlton at gmail.
     137Bug reports and patches welcome! Bugs can be reported to kooda@upyum.com
    132138
    133139
    134 === Author
     140=== Authors
    135141Alex Charlton
     142
     143Adrien (Kooda) Ramos
    136144
    137145
    138146=== License
    139147BSD
     148
Note: See TracChangeset for help on using the changeset viewer.