Kaleidoscope 2D/3D Manual

f:id:nkdtr:20170203133811p:plain

 

Kaleidoscope 2D/3D Manual

Updates

1.05

- bugfix : triangle modification not saved if it was done by handles

1.04

- new feature : texture baking

- new feature : texture offset

1.03

- new feature : texture scroll

1.02

- fixed typo

1.01

- released

 

Sample Video

 

youtu.be

 

Features

  • Simulates kaleidoscope with 3 mirrors via simple optical calculation
  • 2D / 3D versions available
  • Configurable
    - Attenuation rate per reflection
    - Layout of mirrors (vertices of the triangle constructed by mirrors)
    - Source texture pattern
      -- Also Nice with RenderTextures
  • Exporting as png image file(

    https://youtu.be/FI3xuAeAnws

    )

Store 

Asset Store

 

How to Use

-2D

youtu.be

  • Place KaleidoscopeQuad prefab on your scene
  • Modify the shape of triangle by the position handle (consists of three-arrows)
  • Replace the texture of the material

-3D

youtu.be

  • Place Kaleidoscope3D prefab on your scene
  • Modify the shape of triangle by the position handle
  • Replace the texture of the material

 

APIs

Methods

SetTexture(Texture)

-Replaces the texture to sample from

 

ApplyTriangleToParam

-Updates material parameter by triangle modified in editor

-Used for applying dynamically modified properties

 

Properties

Reflectance

-Reflectance of mirrors (expecting value in range of [0.0 1.0])

-This value is multiplied on the sampled color at every reflection.

  So the edge part of resulting material will be darker than center if reflectance is less than 1.0.

 

TextureScroll (ver 1.03 ~)

-Automatically scrolls the texture, changing simple pattern into complex animation.

 

TextureOffset (ver 1.04 ~)

-Similar to TextureScroll, but this doesn't cause automatic scroll.

-Better if you want to control the scroll speed dynamically.

 

OutputDirectory (ver 1.04 ~)

OutputFileNameBase

-For texture baking; defining the name and directory of created image file.