tiffany

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 8 Imported by: 0

README

tiffany

This rendering example creates textured objects with Tiffany Blue coloration. It shows how one might render:

  • Inset ceiling lights
  • Area lights
  • Textures - both hard-coded and image-based

By default, this demo outputs a grainy low-resolution rendering (which takes a minute or two):

Low-res rendering

Raising the quality and resolution is as simple as modifying these lines:

NumSamples:           200,
MinSamples:           200,
MaxStddev:            0.05,

and this line:

img := render3d.NewImage(200, 200)

Simply increase NumSamples to maybe 100000, increase MinSamples to 10000, decrease MaxStddev to something like 0.02 (lower values mean less noise), and increase the resolution from 200x200 to whatever you want. Here's an example HD rendering at 800x800:

High-resolution rendering

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL