package
0.4.4
Repository: https://github.com/unixpickle/model3d.git
Documentation: pkg.go.dev

# README

tiffany

This rendering example creates textured objects with Tiffany Blue coloration. It uses bidirectional path tracing to greatly reduce variance (versus standard path tracing). 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,

and this line:

img := render3d.NewImage(200, 200)

Simply increase NumSamples to maybe 100000, increase MinSamples to 1000, and increase the resolution from 200x200 to whatever you want. Here's an example HD rendering at 800x800:

High-resolution rendering

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
ErrorMargin controls the amount of allowed noise in an HD rendering of the scene.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author