[PLUGIN]MITSUBA Render Exporter v1.5.0(20141109)
-
Hi,All.
I update this to V1.2.9 in 20140330.
Improves and bugfixes.
Thanks. -
Thanks Tak2hata, it's dream come true
-
-
hi
can anyone else see if they can render one of Rich's models...
http://sketchucation.com/shop/models/furniture/303-marc-newson-wooden-chair
I'm getting this error message...john
-
@driven said:
hi
can anyone else see if they can render one of Rich's models...
http://sketchucation.com./shop/models/furniture/303-marc-newson-wooden-chair
I'm getting this error message...[attachment=0:3lajmeue]<!-- ia0 -->2014-04-06 05.34.02 pm.png<!-- ia0 -->[/attachment:3lajmeue]john
Hi,john.
This script roundup the matrix values.
42 line of code in mitsuba_main.rb
Please Delete that line.
The error will not appear.
Now I still can not return to home.
So I can not edit this script for a month.
Please modify it yourself.
Thanks. -
I am not sure this is related to this exporter plugin but allow me to ask it:
I tried rendering an animation with mitsuba and all worked fine apart that I got the frames in .exr format that is not supported by virtualdub so I can't make a movie of it;
how to change the output format of animation frames?
Sorry for my noobness, best regards and thanks in advance. -
@sminky said:
I am not sure this is related to this exporter plugin but allow me to ask it:
I tried rendering an animation with mitsuba and all worked fine apart that I got the frames in .exr format that is not supported by virtualdub so I can't make a movie of it;
how to change the output format of animation frames?
Sorry for my noobness, best regards and thanks in advance.hi,sminky.
It will be added in one or two week.
Now I can not return to home.
sorry please wait.tak2hata
-
for exr's there a very good open source app http://www.darktable.org/about/features/
[web 100%,300:6ukk5fh5]http://www.darktable.org/about/features/[/web:6ukk5fh5] -
Sorry, I forgot to say I am on windows 8.1.
Also, I could use an app to concert single exr images to jpg but when I have hundreds of frames, it becomes impossible to do it manually.
Sorry if I miss something about that app or anything else, as I said before I am still a newbie.
ThanksP.S.:It would be great if you could make mitsuba render animation of objects done with Proper Animation plugin or other similar tools.
-
Hi,Sminky and All.
I update this to version1.3.2 in 2014.04.26.
Add Selector image format in export dialog.
and Improve material editor.
and bug fix about transformation for very small.Enjoy!
-
cheers
I'll give it a run over the weekend
john -
First of all, thank you very much TAK2HATA for your precious work. I am liking Mitsuba-san more and more.
I am going to propose you some things, I don't know if they are of simple implementation or not .
1)I said it in my previous post already, sorry for repeating: rendering of objects animation made in sketchup using proper-animation plugin or similars.
2)Implementing a non-raytracing rendering algorithm similar to Houdini software or similar to compare the results with different techniques.
3)Rendering texture transparencies properly (maybe it's already possible but I couldn't do it) as explained in the following pictures. The first one is just exported directly from sketchup and you can see that the fence texture is shown with transparent parts but the shadows are like if it was a non-transparent texture; the second is rendered with Twilight and you see it has transparent parts in the texture and the shadow is properly calculated as if made by just the black parts of the texture; the third one is made with Mitsuba-san and it has no transparent parts both in the texture and in the shadow.
Thanks in advance for your time and patience.
ๅฎใใใ้กใใใพใใ
-
Hi,Sminky.
- I did not use proper animation ,yet.
So I consider it in future version.
2)It must need new exporter.It becomes too gigantic work.So I can not do it.
3)Please use mask option in material editor of my exporter.
Or I will consider automatically enabling the mask option in future.Thanks!
- I did not use proper animation ,yet.
-
Material preview:
I have Windows Vista 32bits carte Nvidia GT 630 4 go ram OpenGL Cuda core
Processor biquad 2.6 gHzSketchUp r8.0.14346 (run very well)
Mitsuba 0.5 (run very well)and your addon release 1.3.2
When I want material preview, notihng change! just a terminal window during few minute and close.
1 - But the thumnail don't change, I have always the "CLICK HERE UPDATE" message.2 - when i choose for a bump map, "Same as SU" with the "*" in the left case, and i want to export my scene, Mitsuba stop with a message "Error while creating object: (null)"
but without a bummpmap there is no problem!!!Congratulations for your great work, Mitsuba is a very good GI render engine!
Bye bye
Spirou4DPS: I have saw on the video: In your material windows, there is the date and at home, I have a "?" ! May be it's the problem...
-
Hi,Spirou4D.
1---On my computer,preview works fine.
So I want you to send me your sketchup file include that problem and tell me the material name of the problem.2---"*" means "Same as SU(Sketchup material)" in my plugin.
That error about bumpmap with "same as SU" will happen when the sketchup material does not have texture.
So I will change my plugin ignore mapping when sketchup material has no texture.
Please wait.And caution-->The texture can be read only PNG and JPG and EXR file in Mitsuba Render.
So the error will happen when you use other file format for texture.Thanks.
-
Hi Tak2hata,
I have made a copy of my screen and add in my work folder with the SU_render of Mitsuba:
https://www.dropbox.com/s/zer0avrjuuqvov0/Essat%20mitsuba%20sketchup.zipBut no materials have got a preview! nothing run! and not date!
To use Mitsuba, I have place his folder on the desktop because in program file, there are a several problems of permissions issues with SU and Mitsuba. In this way Mitsuba 0.5 work fine.Tell me if you want something...
Thanks a lot!
Bye bye -
Hi,Spirou4D and All.
I update this script to version 1.3.4.
1.3.3:Auto find alpha of png file.
1.3.3:Add Selector between mitsuba "GUI" and "CUI"
1.3.4:Bug fix "*" texture problem.@spirou4d said:
Hi Tak2hata,
I have made a copy of my screen and add in my work folder with the SU_render of Mitsuba:
https://www.dropbox.com/s/zer0avrjuuqvov0/Essat%20mitsuba%20sketchup.zipBut no materials have got a preview! nothing run! and not date!
To use Mitsuba, I have place his folder on the desktop because in program file, there are a several problems of permissions issues with SU and Mitsuba. In this way Mitsuba 0.5 work fine.Tell me if you want something...
Thanks a lot!
Bye byeI test your file.The material preview works very fine.
I could not find the problem.
So I modify the script of web dialog by my guess.
The path of mitsuba render include any special character?
Sketchup ruby can not accept file path include special character.Thanks.
-
Hi Tak2hata,
Hum....I think about autorisation because my SketchUp is not installed with an installer .exe but only with copy of folder and Mitsuba too.
In french Windows Vista, there are accentuation possible in the path but may be Ruby don't use...?
I try your 1.3.4 add-on and see....EDIT 1:
This is the path to Mitsuba : [C:/Users/Patrick/Documents/Mitsuba_0.5.0/mtsgui.exe]
1 - your release 1.3.4 run well but the "fitSize to SU" button prevents rendering for some texture too little. I have an error message to stop the render with for example: Metal_rusted. With 1000 x 1000 no problem but with fitSize to SU : 0.45 x 0.45 stop!2 - my preview don't run yet but I am sure: it's a problem of autorisation with the .dll or ruby?? no preview texture in the "su_render\preview_cash" folder!
Traceback ruby console when I clic on material's preview:
Error: #<NoMethodError: undefined methodexecute_script' for nil:NilClass> C:/Program Files/Google/Google SketchUp 8/Plugins/jbb_layers_panel/rb/states.rb:90:in
refreshStatesDialog'
C:/Program Files/Google/Google SketchUp 8/Plugins/jbb_layers_panel/rb/observers.rb:170:inonTransactionUndo' C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_su2objmtl.rb:446:in
undo'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_su2objmtl.rb:446:inexport_textures' C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:143:in
preview_start'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:316:inmaterial_edit_show_webdialog' C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:311:in
call'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:311
And here change of material:
"onMaterialSetCurrent triggered by material [Vegetation_Grass_Artificial]1"
onMaterialSetCurrent reusing LuxRender material
"call to set_current: Vegetation_Grass_Artificial1"
updating swatches
setting active material in SU2LUX material editor dropdown
"running sendDataFromSketchup for "
Vegetation_Grass_Artificial1
updating texture fields
running load_preview_image function
file doesn't exist, showing default image
And now when I make a render:
file doesn't exist, showing default image
Error: #<NoMethodError: undefined methodexecute_script' for nil:NilClass> C:/Program Files/Google/Google SketchUp 8/Plugins/jbb_layers_panel/rb/states.rb:90:in
refreshStatesDialog'
C:/Program Files/Google/Google SketchUp 8/Plugins/jbb_layers_panel/rb/observers.rb:170:inonTransactionUndo' C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_su2objmtl.rb:446:in
undo'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_su2objmtl.rb:446:inexport_textures' C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:124:in
export'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:23:instartexport' C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_settings.rb:109:in
render_show_webdialog'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:311:in `call'
C:/Program Files/Google/Google SketchUp 8/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:311
"All Mesh Stored:0.239000082015991 sec"
"OBJ file exported:0.25 sec"
"OBJ&MTL export finished! time is 0.983000040054321 sec"EDIT 2:
1 I have the solution: in your script the "fitSize to SU" use "," for float and it stop but with "." (dot), no problem! You must change the comma in your script.
In french, the numeric keyboard has a dot to float number.
2 -
"su_render\preview_cash" folder => empty ????
"su_render\output" folder => Mitsuba_scene.png ok!
"su-render\tx_default" all textures ok!I tried to change "mitsuba.exe" in your script "mod_mitsuba_material.rb" with "mtsgui.exe" to obtain console messages:
With the "Metal_rusted" material, I obtain this error of preview:
load [fileStream] Error while trying to open file "C:\User\Patrick\Documents\Mitsuba_0.5.0\su_render\preview_cash_Metal_Rusted_.png": the file is not found!
because nothing is in the preview_cash!!!
and then error with the matpreview2.xml in line 56::
<texture type="bitmap" id="45x2-YM255DSL-2.jpg">
<string name="filename" value="C:/freeware/Mitsuba 0.5.0/su_render/tx_default/45x2-YM255DSL-2.jpg"/>
<float name="uscale" value="0.127" /><float name="vscale" value="0.127" />
<boolean name="cache" value="false" />
</texture>What is this adress? "C:/freeware/...", in windows it's "C:\freeware..."
You can understand now. Where is the mistake?
-
hi
you need to disable jbb_layers_panel, first, as it's the first issue...
C;/Program Files/Google/Google SketchUp 8/Plugins/jbb_layers_panel/rb/states.rb;90;in `refreshStatesDialog'
if this then runs properly, you'll know what the problem is...
if not post the next report...
john
-
Yes Driven,
You are right, now in the ruby console I have just this:"All Mesh Stored:0.157000064849854 sec"
"OBJ file exported:0.177999973297119 sec"
"OBJ&MTL export finished! time is 1.2409999370575 sec"for one render! No other error message but no change about material preview!
EDIT 3: Today I have found this file mitsuba.PC-de-Patrick.log in my Mitsuba folder:
(Of'course PC-de-Patrick is the name of my computer!)2014-05-14 12:05:10 INFO main [mitsuba.cpp:256] Mitsuba version 0.5.0 (Windows, 32 bit), Copyright (c) 2014 Wenzel Jakob
2014-05-14 12:05:10 INFO main [mitsuba.cpp:356] Parsing scene description from "C:\Program Files\Google\Google SketchUp 8\Plugins\t2h_su2objmtl_mitsuba\matpreview\matpreview2.xml" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\volpath.dll" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\independent.dll" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\gaussian.dll" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\ldrfilm.dll" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\perspective.dll" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\envmap.dll" ..
2014-05-14 12:05:10 INFO main [EnvironmentMap] Loading environment map "envmap.exr"
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\lanczos.dll" ..
2014-05-14 12:05:10 INFO main [EnvironmentMap] Precomputing data structures for environment map sampling (515.0 KiB)
2014-05-14 12:05:10 INFO main [EnvironmentMap] Done (took 1 ms)
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\checkerboard.dll" ..
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\gridtexture.dll" ..
2014-05-14 12:05:10 WARN main [scenehandler.cpp:795] In file "C:\Program Files\Google\Google SketchUp 8\Plugins\t2h_su2objmtl_mitsuba\matpreview\matpreview2.xml" (near line 51): Unqueried attribute "(null)" in element "linewidth"
2014-05-14 12:05:10 INFO main [PluginManager] Loading plugin "plugins\bitmap.dll" ..
2014-05-14 12:05:10 INFO main [BitmapTexture] Loading texture "45x2-YM255DSL-2.jpg"and in the Mitsuba console, I had:
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\path.dll" ..
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\independent.dll" ..
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\mitchell.dll" ..
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\hdrfilm.dll" ..
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\thinlens.dll" ..
2014-05-14 12:13:03 WARN load [ThinLens] Can't have a zero aperture radius -- setting to 0.000100
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\sunsky.dll" ..
2014-05-14 12:13:03 WARN load [properties.cpp:76] Property "sunDirection" was specified multiple times!
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\sky.dll" ..
2014-05-14 12:13:03 DEBUG load [SunSkyEmitter] Rasterizing sun & skylight emitter to an 512x256 environment map ..
2014-05-14 12:13:03 DEBUG load [SunSkyEmitter] Done (took 41 ms)
2014-05-14 12:13:03 INFO load [PluginManager] Loading plugin "plugins\envmap.dll" ..
2014-05-14 12:13:03 DEBUG load [MIPMap] Created 1.0 MiB of MIP maps in 12 ms
2014-05-14 12:13:03 INFO load [EnvironmentMap] Precomputing data structures fofor the zero aperture, I have corrected but for "sunDirection multiple times" I don't see!
EDIT 4: For see in detail the problem, I have load matpreview with mtsgui.exe for obtain the preview and here is the result:
Fatal error with this line:
<string name="label[0, 0]" value="<!-- preview_material_name -->"/>
because the "!" is not read in the "..." like a soft letter but like a command to ruby!!!! Voilร the problem!EDIT 5: No excuse me I have understand your code: it's not with Mitsuba that file must be loaded but exec by ruby scripts! But no xml file is created by the ruby script in preview_cash!!!
EDIT 6: I have placed my Mitsuba folder at the same place like you:
C:\freeware\Mitsuba 0.5.0... and try but nothing new below the sun!
I can render a scene with Mitsuba but not a material preview!Do you have the same extension.rb and sketchup.rb files like me?
https://www.dropbox.com/s/m372x7o9ad0as3r/rubyfiles.zip
Advertisement