[PLUGIN]MITSUBA Render Exporter v1.5.0(20141109)
-
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 -
Hi,everyone!
I update this to version 1.3.5 in 2014.05.15.
v1.3.5:Unit Length problem fixed.Local comma problem fixed.Enjoy!
-
Hi Tak2hata,
Thanks for your job.
In this release 1.3.5, I have this new problem:
https://www.dropbox.com/s/1gn2r6h1dww691d/Capture_render1.3.5.PNG
When I click the render button in Mitsuba, there are a double line in the progress-bar and I don't see the little bucket-pass jogging on the image! ???TRACEBACK Mitsuba console:
2014-05-14 19:21:16 INFO main [mainwindow.cpp:80] Mitsuba version 0.5.0 (Windows, 32 bit), Copyright (c) 2014 Wenzel Jakob
2014-05-14 19:21:16 INFO main [mainwindow.cpp:83] Configured for RGB-based rendering
2014-05-14 19:21:16 DEBUG main [WGLSession] Initializing WGL session
2014-05-14 19:21:16 DEBUG main [WGLRenderer] Using an existing WGL context
2014-05-14 19:21:16 DEBUG main [GLRenderer] OpenGL renderer : GeForce GT 630/PCIe/SSE2
2014-05-14 19:21:16 DEBUG main [GLRenderer] OpenGL vendor : NVIDIA Corporation
2014-05-14 19:21:16 DEBUG main [GLRenderer] OpenGL version : 4.4.0
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Framebuffers objects are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: GLSL is supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Floating point textures are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Floating point color buffers are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Fast buffer blitting is supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Multisample framebuffer objects are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Vertex buffer objects are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Geometry shaders are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Custom texture filtering is supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Synchronization objects are supported.
2014-05-14 19:21:16 DEBUG main [GLRenderer] Capabilities: Bindless rendering is supported.
2014-05-14 19:21:16 DEBUG main [Thread] Spawning thread "prvw"
2014-05-14 19:21:16 DEBUG prvw [WGLDevice] Initializing WGL device
2014-05-14 19:21:16 DEBUG prvw [WGLRenderer] Initializing WGL renderer
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Accumulation program']
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Directional shadow map generator']
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Paraboloid shadow map generator', maxVertices=4]
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Cube/Hemicube shadow map generator (5/6 pass version)']
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Cube shadow map generator (1 pass version)', maxVertices=18]
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Hemicube shadow map generator (1 pass version)', maxVertices=15]
2014-05-14 19:21:16 DEBUG main [GLProgram] Uploading a GPU program : GPUProgram[name = 'Tonemapper [Gamma]']
2014-05-14 19:21:16 DEBUG main [GLProgram] Uploading a GPU program : GPUProgram[name = 'Tonemapper [Reinhard et al. 2002]']
2014-05-14 19:21:16 DEBUG main [GLProgram] Uploading a GPU program : GPUProgram[name = 'Downsampling program']
2014-05-14 19:21:16 DEBUG main [GLProgram] Uploading a GPU program : GPUProgram[name = 'Log-luminance program']
2014-05-14 19:21:16 DEBUG main [Thread] Spawning thread "load"
2014-05-14 19:21:16 INFO load [sceneloader.cpp:101] Parsing scene description from "C:\freeware\Mitsuba 0.5.0\su_render\Mitsuba_scene.xml" ..
2014-05-14 19:21:16 INFO load [scenehandler.cpp:675] In file "C:\freeware\Mitsuba 0.5.0\su_render\Mitsuba_scene.xml" (near line 2): Parsing included file "(null)" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\bitmap.dll" ..
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "vegetation_grass_artificial.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "vegetation_grass_artificial.jpg" in 1 ms
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\lanczos.dll" ..
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 29 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_embossed.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_embossed.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 128.2 KiB of MIP maps in 1 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_steel_textured_white1.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_steel_textured_white1.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 6 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "vegetation_grass_artificial1.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "vegetation_grass_artificial1.jpg" in 1 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 18 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_corrogated_shiny.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_corrogated_shiny.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 128.2 KiB of MIP maps in 1 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_rusted.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_rusted.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 9 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_steel_textured_white.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_steel_textured_white.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 8 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "vegetation_grass_artificial1.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "vegetation_grass_artificial1.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 6 ms
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\scale.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\roughdiffuse.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\twosided.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\bumpmap.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\diffuse.dll" ..
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_steel_textured_white.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_steel_textured_white.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 7 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "vegetation_grass_artificial.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "vegetation_grass_artificial.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 6 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_rusted.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_rusted.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 512.2 KiB of MIP maps in 8 ms
2014-05-14 19:21:16 INFO load [BitmapTexture] Loading texture "metal_embossed.jpg"
2014-05-14 19:21:16 DEBUG load [BitmapTexture] Loaded "metal_embossed.jpg" in 0 ms
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 128.2 KiB of MIP maps in 1 ms
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\serialized.dll" ..
2014-05-14 19:21:16 INFO load [SerializedMesh] Loading shape 4 from "mitsuba_main.serialized" ..
2014-05-14 19:21:16 DEBUG load [SerializedMesh] Done (2 triangles, 4 vertices, 0 ms)
2014-05-14 19:21:16 INFO load [SerializedMesh] Loading shape 0 from "mitsuba_main.serialized" ..
2014-05-14 19:21:16 DEBUG load [SerializedMesh] Done (20 triangles, 32 vertices, 0 ms)
2014-05-14 19:21:16 INFO load [SerializedMesh] Loading shape 1 from "mitsuba_main.serialized" ..
2014-05-14 19:21:16 DEBUG load [SerializedMesh] Done (2 triangles, 4 vertices, 0 ms)
2014-05-14 19:21:16 INFO load [SerializedMesh] Loading shape 2 from "mitsuba_main.serialized" ..
2014-05-14 19:21:16 DEBUG load [SerializedMesh] Done (12 triangles, 20 vertices, 0 ms)
2014-05-14 19:21:16 INFO load [SerializedMesh] Loading shape 3 from "mitsuba_main.serialized" ..
2014-05-14 19:21:16 DEBUG load [SerializedMesh] Done (2 triangles, 4 vertices, 0 ms)
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\path.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\independent.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\mitchell.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\ldrfilm.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\thinlens.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\sunsky.dll" ..
2014-05-14 19:21:16 WARN load [properties.cpp:76] Property "sunDirection" was specified multiple times!
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\sky.dll" ..
2014-05-14 19:21:16 DEBUG load [SunSkyEmitter] Rasterizing sun & skylight emitter to an 512x256 environment map ..
2014-05-14 19:21:16 DEBUG load [SunSkyEmitter] Done (took 41 ms)
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\envmap.dll" ..
2014-05-14 19:21:16 DEBUG load [MIPMap] Created 1.0 MiB of MIP maps in 14 ms
2014-05-14 19:21:16 INFO load [EnvironmentMap] Precomputing data structures for environment map sampling (515.0 KiB)
2014-05-14 19:21:16 INFO load [EnvironmentMap] Done (took 1 ms)
2014-05-14 19:21:16 INFO load [KDTreeBase] Constructing a SAH kd-tree (38 primitives) ..
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Creating a preliminary index list (152 B)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Computed scene bounds in 0 ms
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] kd-tree configuration:
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Traversal cost : 15.00
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Query cost : 20.00
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Empty space bonus : 0.90
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Max. tree depth : 14
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Scene bounding box (min) : [-118.964, -2.13982e-014, -55.8909]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Scene bounding box (max) : [119.318, 3.14887, 53.2021]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Min-max bins : 128
2014-05-14 19:21:16 DEBUG load [KDTreeBase] O(n log n) method : use for <= 65536 primitives
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Perfect splits : yes
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Retract bad splits : yes
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Stopping primitive count : 6
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Build tree in parallel : no
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 INFO load [KDTreeBase] Finished -- took 0 ms.
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Temporary memory statistics:
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Classification storage : 50 B
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Indirection entries : 0 (0 B)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Main thread:
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Left events : 1 chunks (512.0 KiB)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Right events : 1 chunks (512.0 KiB)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] kd-tree nodes : 81 entries, 1 blocks (512.0 KiB)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Indices : 144 entries, 1 blocks (512.0 KiB)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Total: 2.0 MiB
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Optimizing memory layout ..
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Finished -- took 0 ms.
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Structural kd-tree statistics:
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Parallel work units : 0
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Node storage cost : 632 B
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Index storage cost : 576 B
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Inner nodes : 39
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Leaf nodes : 40
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Nonempty leaf nodes : 35
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Leaf node histogram : 0(5) 1(4) 2(4) 3(2)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] 4(10) 5(6) 6(8) 7(0)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] 8(1) 9(0) 10(0) 11(0)
2014-05-14 19:21:16 DEBUG load [KDTreeBase] 12(0) 13(0) 14(0) 15(0)
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Qualitative kd-tree statistics:
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Retracted splits : 1
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Pruned primitives : 1
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Largest leaf node : 8 primitives
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Avg. prims/nonempty leaf : 4.11
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Expected traversals/query : 1.61
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Expected leaf visits/query : 1.03
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Expected prim. visits/query : 2.04
2014-05-14 19:21:16 DEBUG load [KDTreeBase] Final cost : 64.90
2014-05-14 19:21:16 DEBUG load [KDTreeBase]
2014-05-14 19:21:16 DEBUG load [ShapeKDTree] Precomputing triangle intersection information (1.8 KiB)
2014-05-14 19:21:16 DEBUG load [ShapeKDTree] Finished -- took 0 ms.
2014-05-14 19:21:16 DEBUG load [ShapeKDTree]
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\disk.dll" ..
2014-05-14 19:21:16 INFO load [PluginManager] Loading plugin "plugins\sphere.dll" ..
2014-05-14 19:21:16 DEBUG load [Thread] Thread "load" has finished
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'Background program']
2014-05-14 19:21:16 INFO prvw [PluginManager] Loading plugin "plugins\halton.dll" ..
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'vpl=EnvironmentMapShader, bsdf=BumpMapShader[TwoSidedShader[RoughDiffuseShader[BitmapTextureShader, ConstantFloatTextureShader]], ScalingTextureShader[BitmapTextureShader]], ds']
2014-05-14 19:21:16 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'vpl=EnvironmentMapShader, bsdf=TwoSidedShader[SmoothDiffuseShader[BitmapTextureShader]], ds']
2014-05-14 19:21:17 DEBUG main [Thread] Spawning thread "wrk0"
2014-05-14 19:21:17 DEBUG main [Thread] Spawning thread "wrk1"
2014-05-14 19:21:17 DEBUG main [Thread] Spawning thread "wrk2"
2014-05-14 19:21:17 DEBUG main [Thread] Spawning thread "wrk3"
2014-05-14 19:21:17 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'vpl=BumpMapShader[TwoSidedShader[RoughDiffuseShader[BitmapTextureShader, ConstantFloatTextureShader]], ScalingTextureShader[BitmapTextureShader]], bsdf=BumpMapShader[TwoSidedShader[RoughDiffuseShader[BitmapTextureShader, ConstantFloatTextureShader]], ScalingTextureShader[BitmapTextureShader]], ds']
2014-05-14 19:21:17 DEBUG prvw [GLProgram] Uploading a GPU program : GPUProgram[name = 'vpl=BumpMapShader[TwoSidedShader[RoughDiffuseShader[BitmapTextureShader, ConstantFloatTextureShader]], ScalingTextureShader[BitmapTextureShader]], bsdf=TwoSidedShader[SmoothDiffuseShader[BitmapTextureShader]], ds']
2014-05-14 19:21:24 DEBUG main [Thread] Spawning thread "rend"
2014-05-14 19:21:24 INFO rend [SamplingIntegrator] Starting render job (800x600, 16 samples, 4 cores, SSE2 enabled) ..
2014-05-14 19:21:40 INFO rend [RenderJob] Render time: 16.0550s
2014-05-14 19:21:40 DEBUG rend [LDRFilm] Developing film ..
2014-05-14 19:21:40 INFO rend [LDRFilm] Writing image to "C:\freeware\Mitsuba 0.5.0\su_render\Mitsuba_scene.png" ..
2014-05-14 19:21:40 DEBUG rend [Bitmap] Writing a 800x600 PNG fileand my material preview problem: no change!
Here are the Metal_Rusted.mtbmat.txt for example:
##MAIN_PROPS##
bump
C:/freeware/Mitsuba 0.5.0/su_render/tx_default/metal_rusted.jpg [url no problem!]
bump_width
0.46
useFastApprox
true
bump_scale
43
reflectance
From MODEL
alpha
0.1
bump_height
0.46
twosided
Yes
bsdf_type
roughdiffuse
##COAT_PROPS##
coat_type
none
##LIGHT_PROPS##
light_type
none
##DIPOLE_PROPS##
dipole_type
none
##END## -
Hello,
there is a problem with the position of the texture when exporting -
@unknownuser said:
Hello,
there is a problem with the position of the texture when exportingHi,GreenKot.
I limit the precision of unit for the purpose of smaller file size of mesh.
So I will modify for more higher precision.
And I want to test with your data.
Please send me the skp file.
ThanksTAK2HATA
-
Hi,All.
I uptate this to v1.3.7.
Fix the texture offset problem.
Add Rendering Parameter in export dialog.and set better default values.The problem of texture offset is not caused by unit precision.
It is texture uv-scaling problem in mitsuba render.
I add uv-offset to exporting texture uv-coords.Thanks.
-
Hello Tak2hata,
Always nothing new: no change with my preview....
But the render run good!
Good luck for the future.
Spirou4D -
Hi,everyone.
I update this to v1.4.0 in 2014.09.15.
Improve material editor.Selecting Texture-file was improved.
Material preview maybe run well in any case.Thanks.
-
Trying for the first time. Geting this error messsage in ruby console on export. Sketchup 2014 Mac:
Error: #<NoMethodError: undefined method
alpha' for nil:NilClass> /Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:1145:in
matcoder'
/Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:1093:inblock in export_this_material' /Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:1083:in
each'
/Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:1083:inexport_this_material' /Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:804:in
export_mtl_material'
/Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:311:inexport_geom_xml' /Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:125:in
export'
/Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:23:instartexport' /Users/m_singer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_settings.rb:109:in
block in render_show_webdialog'
-e:1:in `call' -
Hi,m_singer.
I update this to v1.4.1 in 2014.09.17.
I think you set the default material as dielectric.
I find the problem on windows 7,too.
It become fixed.
Thanks. -
Hello!
Its may first post on Skechucation sohello to everyone and special thanks to Tak2hata
for Mitsuba interface, its great idea&job ! /I hope you keep on developing it still )))Lately I tried to use Mitsuba w/Skecthup for my work but it ran unpredicatbly - once was OK, the other time it stopped importing scene, below one of the examples of failure:
http://www.pasteall.org/pic/79184
cheers,
bbcd
-
Hi,bluecd.
I update this to v1.4.4.@bluecd said:
Hello!
Its may first post on Skechucation sohello to everyone and special thanks to Tak2hata
for Mitsuba interface, its great idea&job ! /I hope you keep on developing it still )))Lately I tried to use Mitsuba w/Skecthup for my work but it ran unpredicatbly - once was OK, the other time it stopped importing scene, below one of the examples of failure:
http://www.pasteall.org/pic/79184
cheers,
bbcd
The problem is fixed.
I think it work fine now.
Thanks! -
Still some error:
-
Yeaahhh ! great-seems I needed to reopen SKetchup, thank you !
BTW: is lightbulb effect for s point light still present?
-
Wll, for me its great news and support for present work, I got a few questions to you though:
- Is/would light temperature be supported? (Spectra Lighting) ?
- Volumetrics?
- Antialiasing (how to adjust) ?
- Pls help w/some hint to fully understand and make use of the settings in Your Exporter 0 I am NOT a novice in CG/Viz but many of the parameters are not so obvious still..)))
- UI would need some organizing-I am open to help in any way(graphics?), personally I'd suggest a vertical windows like VRay's or CleanUp3 plugin?
How could one help you to polis/develope this great work (I am not a programmer unfrotunately ((
cheers,
-
And another very annoying error: after a few tries ,when I push EXPORT it holds for a while,
then releases and ...nothing happens: (AMD Phenom X4)Error: #<ArgumentError: Cannot convert "14.999999999999998" to Length>
C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:1018:into_l' C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:1018:in
export_this_material'
C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:822:inblock in export_mtl_material' C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:818:in
each'
C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_material.rb:818:inexport_mtl_material' C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:311:in
export_geom_xml'
C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:125:inexport' C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mitsuba_main.rb:23:in
startexport'
C:/Users/AB/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/t2h_su2objmtl_mitsuba/mod_mitsuba_settings.rb:109:inblock in render_show_webdialog' -e:1:in
call'
Advertisement