[offtopic] I found Mitsuba a free high quality renderer.

For other topics related to the FreeBASIC project or its community.
D.J.Peters
Posts: 7455
Joined: May 28, 2005 3:28

[offtopic] I found Mitsuba a free high quality renderer.

Postby D.J.Peters » Feb 22, 2017 22:23

I found the free and Open Source render package Mitsuba for Mac OS X(64-bit), Windows (32/64-bit) and Linux (64-bit).
at http://www.mitsuba-renderer.org

One amazing example (click to enlarge):
Image

Last two days I study some of the renderer source codes
and It comes with a bunch of them (integrators).

1 Direct illumination (direct)
2 Path tracer (path)
3 Simple volumetric path tracer (volpath_simple)
4 Extended volumetric path tracer (volpath)
5 Bidirectional Path Tracer (bdpt)
6 Photon map integrator (photonmapper)
7 Progressive Photon Mapping (ppm)
8 Stochastic Progressive Photon Mapping (sppm)
9 Primary Sample Space Metropolis Light Transport (pssmlt
10 Path Space Metropolis Light Transport (mlt)
11 Bidirectional Path Tracing
12 Energy Redistribution Path Tracing (erpt)
...

The input scenes are written in XML.

"mtsgui" is a QT frontend with fast OpenGL peview.

"mitsuba" is the command line version.

But it comes with a server app "mtssrv" also.

You can put the server app on many boxes in your network you like and build your own render farm.

I downloaded mitsuba for Win32 and put it on 4 older INTEL P4 boxes and on my main box.

The rendered results (quality and speed) are really awesome.

Joshy
Image
Image
Image
Image
Last edited by D.J.Peters on Sep 25, 2017 17:05, edited 3 times in total.
srvaldez
Posts: 1672
Joined: Sep 25, 2005 21:54

Re: [offtopic] I found Mitsuba a free high quality renderer.

Postby srvaldez » Feb 23, 2017 1:30

simply amazing!
vdecampo
Posts: 2981
Joined: Aug 07, 2007 23:20
Location: Maryland, USA
Contact:

Re: [offtopic] I found Mitsuba a free high quality renderer.

Postby vdecampo » Feb 23, 2017 13:58

Impressive! How long did these scenes take to render?
integer
Posts: 373
Joined: Feb 01, 2007 16:54
Location: usa

Re: [offtopic] I found Mitsuba a free high quality renderer.

Postby integer » Feb 23, 2017 17:08

Those are awesome!
Thanks for the link.
D.J.Peters
Posts: 7455
Joined: May 28, 2005 3:28

Re: [offtopic] I found Mitsuba a free high quality renderer.

Postby D.J.Peters » Feb 23, 2017 20:19

Tip 1: If you won't an HDR image *.exr as result you can use *.png instead.

The point are if in a XML scene a high dynmic range film are defined you have to replace it with an low dynamic.

With other words "mitsuba.exe -o box.png cbox\cbox.xml" does not create " box.png" instead it writes out "box.exr"

replace: <film type="hdrfilm">

with: <film type="ldrfilm">

than -o box.png works

Tip 2: you can disable the info banner in the image also (it's enabled by default)

Code: Select all

<!-- <film type="hdrfilm"> -->
<film type="ldrfilm">
  <boolean name="banner" value="false"/>
  <integer name="width" value="1024"/>
  <integer name="height" value="512"/>
  <rfilter type="gaussian"/>
</film>
Tip 3: Here are how I use it as backend for my own 3D editor and capture the progress.

Joshy

Code: Select all

'          1         2         3         4         5         6         7
' 1234567890123456789012345678901234567890123456789012345678901234567890123456
' Rendering: [++++++++++++++++++++++++++++++++++++++++++++] (14.5s, ETA: 0.0s)
#ifdef __FB_WIN32__
' on Windows you need the full path enclosed in double high quotes if a space is in the path
const MITSUBA = chr(34) & "D:\Mitsuba 0.5.0\mitsuba.exe" & chr(34)
const PARAMS  = " -r 1 -p 1 -o test01 .\scenes\joshy\test01.xml"
#else
' on linux it's installed in the path so you nead only the program name
const MITSUBA = "mitsuba"
const PARAMS  = " -r 1 -p 1 -o test01 ./scenes/joshy/test01.xml"
#endif

var hStdIn = FreeFile()
if open pipe(MITSUBA & PARAMS, for input, as #hStdIn) then
  print "error: can't execute " & MITSUBA & " !"
  beep : sleep : end 1
end if 

var aLine = ""
while not eof(hStdIn)
  line input #hStdIn, aLine
  aLine=trim(aLine)
  var nChars = len(aLine)
  if nChars>0 then
    var t=""
    for i as integer = 0 to nChars-1
      if aLine[i]>31 then t+=chr(aLine[i])
    next 
    nChars = len(t)
    if nChars>0 then
      if left(t,1)="R" then
        locate 1,1 : print t
      end if 
    end if 
  end if
wend
close #hStdIn
print "done ..."
beep
sleep
dafhi
Posts: 1220
Joined: Jun 04, 2005 9:51

Re: [offtopic] I found Mitsuba a free high quality renderer.

Postby dafhi » Feb 25, 2017 4:01

I found this paper on ray classification .. maybe you can make sense of it.

Mitsuba is awesome .. another renderer worth checking out is Appleseed
D.J.Peters
Posts: 7455
Joined: May 28, 2005 3:28

Re: [offtopic] I found Mitsuba a free high quality renderer.

Postby D.J.Peters » Feb 25, 2017 17:23

@dafhi I read many books and papers in the last 3 decades and can't count how many tracers I wrote in the past (the first was on a C64)
last days I wrote a octree with really fast AABB ray traversal in FreeBASIC
but the topic "5-dimensional space subdivision" was missing in my large collection.

thank you for sharing

Joshy

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests