Skip to content

alhirzel/Mitsuba2.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package brings the Mitsuba 2 renderer to Julia using PyCall.jl.

Mitsuba2.jl relies on the mitsuba package being available in your local Python installation. On Arch Linux, this can be done by installing mitsuba2-git from the AUR. Different distributions of Linux (as well as other OSes like Mac OS and Windows) are un-tested, and may package the mitsuba Python module differently. Testing and feedback are very welcome for this pre-alpha package!

Example

A simple scene can be rendered with a few commands that closely parallel the Python examples in the mitsuba documentation.

using Mitsuba2
import Mitsuba2.scalar_rgb as mitsuba

scene = mitsuba.load_string(read("test_scene.xml", String))
sensor = first(scene.sensors())
scene.integrator().render(scene, sensor) # true means success
bmp = sensor.film().bitmap(raw=true)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Languages