Update3: Works with Mitsuba 4.1, most of sun options are supported). Thin dielectric added. But dipole is still broken.
Update4: Should fix some camera bugs, increased some allowed max parameters values .
Here is updated blender exporter that works with Blender 2.64 and Mitsuba 4.1
Supported engine integrators are (all except AO – who uses it today anyway):
- Energy redistribution PT
- Path Space MLT
- Primary Sample Space MLT
- Photon mapper
- Adjoint Particle Tracer
- Bidirectional path tracer
- Volumetric path tracer (Extended)
- Volumetric path tracer (Simple)
- Path tracer
- Direct Illumination
Supported integrators are (basically all):
- Sobol QMC sampler
- Hammersley QMC sampler
- Halton QMC sampler
- Low discrepancy
- Stratified
- Independent
Other features included:
- support for blend bsdf (see gold statue that uses gold and diffuse, with smooth dielectric coating)
- Modifiers are finally supported (thanks to updated collada exporter that has this feature now)
- HDR environment maps – through hemi light.
- instances
- Thind dielectric – Architectural glass support
- Multiple materials per object support
Broken features:
-sunsky, sky, sun (I think there is problem with transforming sunsky coordinates – I reported but to mitsuba creator Wenzel Jakob
- no support for dof – no time to implement it now Should work now in update 3.
- dipose sss – It is fixed in newest Mitsuba release, should be out soon. I know lots of blender guys are waiting for it – sorry for make you waiting :/ (if you really want you can copy manually dipole xml code inside scene to tag and it should work)
And some screens. Car is from blender swap made by user tom120934. I had to remake all materials for mitsuba. Render time was 6minutes with Photon Mapping. Thanks for great car tom120934:







Przypadkowo trafiłem na ten renderer i pozytywnie mnie zaskoczył – choć używałem go tylko jako “silnik zewnętrzny”. Jestem laikiem w temacie Blendera, więc zadan typowo laickie pytanie- jak zintegrować Mistubę z Blenderem? – czy instaluje się go poprzez Addons ? czy kopiuje pliki do siakiegoś folderu ?
Witam. Należy skopiować folder folder z eksporterem do katalogu : …\scripts\addons. Potem w ustawieniach blendera -> zakładka ‘Addons’ wyszukaj mitsuba (przycisk ‘testing’ musi być włączony)
Dziękuję bardzo za odpowiedź ! -właśnie poległem na tej końcówce bo nie skojarzyłem, że powinienem szukać w skryptach testowych. Chylę przy okazji czoła za wytrwałość z kodowaniem. Może powinienem się także przyjrzeć stronie sryptowej bo mam kilka pomysłów na kilka usprawnień (powiązanie rozwiązań z różnych narzędzi Blendera) oraz na narzędzia do Blendera (choć mogłyby być i do każdego innego softu) usprawniające modeling (hard surface)
Pozdrawiam
WOW thank you so much for this!! Really, really well done.
I don’t mean to sound ungrateful because this thing is very feature-rich! but if you could incorporate the mitsuba network (distributed rendering) settings into the exporter I would love you till the day I die =)
I would love to do that, but it is above my programing skill. Sorry.
nothing to be sorry about – you’ve done an incredible job with this! i can just export and use the mitsuba gui to render over a network =)
How do you render over a network?
Well I figured it out already
Pingback: Getting started with Blender and Mitsuba Render | Blender 3D Architect
Pingback: Tutorial Blender: Usando o Mitsuba Render com o Blender | Allan Brito
I can not download the newest .11fix. I think it’s not accessing your dropbox properly :\ is there any other way to share a working link? Thanks for all your hard work! I love it!
OK. it works now, probably just a network glitch. Thanks again for this plugin. It’s awesome to have more options when rendering from Blender.
I’m having trouble installing the add-on.
The following error occurs when I try to enable Mitsuba Exporter.
found bundled python: / Applications / Blender 2.64/blender.app/Contents/MacOS/2.64/python
Traceback (most recent call last):
File “/ Applications / Blender 2.64/blender.app/Contents/MacOS/2.64/scripts/modules/bpy/utils.py”, line 78, in _test_import
mod = __ import__ (module_name)
File “/ Applications / Blender 2.64/blender.app/Contents/MacOS/2.64/scripts/startup/mitsuba/__init__.py”, line 48, in
from. import core
File “/ Applications / Blender 2.64/blender.app/Contents/MacOS/2.64/scripts/startup/mitsuba/core/__init__.py”, line 34, in
from .. import properties (
ImportError: No module named properties
I seems you are on mac. Unfortunately I don’t use it. Bu maybe if you move script from startup to /scripts/addons/ it may help.
It’s the same error.
: (
Marcelo, Please see my comment below.
Would help?
Try to uncompress 7z archive and re-compress in zip format, then install add-on.
I’m no preview in blender material
Here is a solution
blender3darchitect_com/2012/10/getting-started-with-blender-and-mitsuba-render/
I am using the version of Python 2.7.2
You must upgrade to version 3.3.0?
grateful
see post http://bartoszstyperek.wordpress.com/2012/10/07/mitsuba-exporter-1-0/#comment-163 I hope it works now.
I get out the following errors
http://www.pasteall.org/pic/38851
Blender 2.64 for Windows XP 32 Bit
I would need xml file of blender file to test it.
thank you very much ….. but already works
i begin to test all configurations
sorry for my English
Material emission isn’t exported properly for objects with multiple materials. (It only works for the first material in the object.)
Also, I’ve found some scenes with instances don’t export their materials at all.
About emission – this is how emission works in mitsuba. Emission can only be assigned to object (not to material). So one object -> only one emission property (but can have multiple materials). About scenes with instances. I would have to test that with your file (but I’m not sure if I will have time this week for fix)
Hi! Thank you very much for the exporter!
I have made some modifications to it to support DOF.
I hope it is useful to you. Feel free to modify it to suit your coding style, I am a complete newbie to Blender and Python.
DOF Interface:
http://www.pasteall.org/pic/38932
Exporter:
https://www.box.com/s/6uk6940shwlqcmuike8u
Thanks. I updated code with your modificarion.
Hello, bump material don’t work ?
Marcelo’s problem is the same I had in Ubuntu 12.04 until updating the python script Wenzel described at https://www.mitsuba-renderer.org/tracker/boards/2/topics/35
That change, which might improve Mac as well as Linux performance, was described at http://bartoszstyperek.wordpress.com/2012/04/18/almost-instance-support-for-blender-mitsuba-exporter/ but it seems the change is not yet made in the new exporters. BTW, it is better to use the code Wenzel lists because it has the indents needed by python, whereas my post on this site somehow dropped the indents.
Great work, Bartosz, on this latest exporter.
Thanks for info. I updated link to dropbox again. Hope it works now on Ubuntu.
Latest downloaded exporter works in Ubuntu.
Those new to Mitsuba might want to start Blender in a terminal with ./blender to get useful messages when rendering.
Thank you for your attention Aurosutru. I will update my python to check.
The MLT renderers need to be set to independant sampler by default –
and higher than 1024 sampels per pixel. The exporter won’t allow a higher value than 1024
I usually set it to 8192 or higher so I get a more progressive render and stop it manually.
I increased max samples. But you have to change sampler type manualy. I did some fixes to camera so maybe it will fix your bug too. if not, then I would need your blend file.
Updated exporter link is same as previous.
Thanks for the updates
It seems it’s a Mitsuba 0.4.1 bug.
It renders fine when set to export+render in the addon.
But everytime I try to change the rendering method in the Mitsuba GUI menu, Mitsuba complains about the camera
Also can you allow direct samples to be set to -1
Doing this in Mitsuba turns it off, so MLT can fully compute the direct lighting itself
I keep getting this when loading an exported scene
012-10-20 19:52:05 WARN main [main.cpp:147] Caught exception: 2012-10-20 19:52:05 ERROR main [PerspectiveCamera] Please specify either a focal length (‘focalLength’) or a field of view (‘fov’)!
Also direct samples need to be able to go higher than 100
at least 256 or more
Also… no Progressive Photon mapper and SPPM intergrators?
as bump mapping works?
on or off, render all layers
I hawe the same problem as Colin (…specify focal length…) after switching to anything else than direct ilumination. Exporting from blender.
Help!
Hi, I got this error:
MtsBlend: Launching mtsimport
/usr/bin/mtsimport: Symbol `_ZTV3DAE’ has different size in shared object, consider re-linking
INFO main [converter.cpp:127] Creating directory “textures” ..
INFO main [converter.cpp:137] Beginning conversion ..
INFO main [collada.cpp:1590] Loading “untitled.Scene.00001.dae” ..
/usr/bin/mtsimport: symbol lookup error: /usr/bin/mtsimport: undefined symbol: _ZN3DAE4initEP11daeDatabaseP11daeIOPlugin
Can anyone help me.
BR
i’m having a problem, an object i created and applied a smooth plastic material to is rendering black in both the preview and mitsuba. no matter what i change the material to it still renders black, the object is a cylinder shaped into a teacup with 3 subdivisions. picture here:http://i.imgur.com/iwm1I2s.png
other materials and objects seem to be working fine, an egg cup holder with a dialectric material in the same scene here http://i.imgur.com/iwm1I2s.png
This seems to be a very odd error, as the egg cup holder is very similar to the teacup. i have tried remaking it from scratch a few times and it still renders as black. any solution?
sorry: egg cup picture here:http://i.imgur.com/h00SKAg.png
Sorry for late reply :/. It is mitsuba bug, but it was fixed some time ago;
Thanks for the Blender exporter.
May I suggest to set minimum value of ‘maxSampleFactor’ in integrator.py to -1, since Mitsuba treats it as ‘no upper limit’? And maybe increase the positive limit up to 1000 or so.
Thanks again.
Cheers
Andrey