Glotzerlab Fresnel Save

Publication quality path tracing in real time.

Project README

fresnel

fresnel is a python library for path tracing publication quality images of soft matter simulations in real time. The fastest render performance is possible on NVIDIA GPUs using their OptiX ray tracing engine. fresnel also supports multi-core CPUs using Intel's Embree ray tracing kernels. Path tracing enables high quality global illumination and advanced rendering effects controlled by intuitive parameters (like roughness, specular, and metal).

fresnel Community

Use the fresnel discussion board to post questions, ask for support, and discuss potential new features. File bug reports on fresnel's issue tracker. fresnel is an open source project. Please review the contributor's guide for more information before contributing.

Documentation

Read the tutorial and reference documentation on readthedocs. The tutorial is also available in Jupyter notebooks in the fresnel-examples repository.

Here are a few samples of what fresnel can do:

nature chemistry cover art cuboid sample sphere sample

Installing fresnel

See the installation guide for details on installing fresnel with conda, docker, singularity, and compiling from source.

Example

This script generates the spheres gallery image:

import fresnel, numpy, PIL

data = numpy.load('spheres.npz')

scene = fresnel.Scene()
scene.lights = fresnel.light.cloudy()

geometry = fresnel.geometry.Sphere(
    scene,
    position = data['position'],
    radius = 0.5,
    outline_width = 0.1)

geometry.material = fresnel.material.Material(
    color = fresnel.color.linear([0.1, 0.8, 0.1]),
    roughness = 0.8,
    specular = 0.2)

out = fresnel.pathtrace(scene, samples=64,
                        light_samples=32,
                        w=580, h=580)
PIL.Image.fromarray(out[:], mode='RGBA').save('sphere.png')
Open Source Agenda is not affiliated with "Glotzerlab Fresnel" Project. README Source: glotzerlab/fresnel
Stars
107
Open Issues
8
Last Commit
1 week ago
Repository
License

Open Source Agenda Badge

Open Source Agenda Rating