sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [PLUGIN]MITSUBA Render Exporter v1.5.0(20141109)

    Scheduled Pinned Locked Moved Plugins
    102 Posts 18 Posters 189.9k Views 18 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tak2hata
      last edited by

      @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


      by TAK2HATA

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        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]

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • SminkyS Offline
          Sminky
          last edited by

          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.
          Thanks

          P.S.:It would be great if you could make mitsuba render animation of objects done with Proper Animation plugin or other similar tools.

          1 Reply Last reply Reply Quote 0
          • T Offline
            tak2hata
            last edited by

            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!


            by TAK2HATA

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              cheers

              I'll give it a run over the weekend
              john

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0
              • SminkyS Offline
                Sminky
                last edited by

                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.
                ๅฎœใ—ใใŠ้ก˜ใ„ใ—ใพใ™ใ€‚


                Exported from sketchup directly.


                Rendered with Twilight.


                Rendered with Mitsuba.

                1 Reply Last reply Reply Quote 0
                • T Offline
                  tak2hata
                  last edited by

                  Hi,Sminky.

                  1. 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!


                  by TAK2HATA

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Spirou4D
                    last edited by

                    Material preview:

                    I have Windows Vista 32bits carte Nvidia GT 630 4 go ram OpenGL Cuda core
                    Processor biquad 2.6 gHz

                    SketchUp 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
                    Spirou4D

                    PS: 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...

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tak2hata
                      last edited by

                      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.


                      by TAK2HATA

                      1 Reply Last reply Reply Quote 0
                      • S Offline
                        Spirou4D
                        last edited by

                        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.zip

                        But 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

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          tak2hata
                          last edited by

                          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.zip

                          But 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

                          I 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.


                          by TAK2HATA

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            Spirou4D
                            last edited by

                            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 method execute_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:in onTransactionUndo' 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:in export_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:in material_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 method execute_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:in onTransactionUndo' 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:in export_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:in startexport' 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?

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by

                              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

                              learn from the mistakes of others, you may not live long enough to make them all yourself...

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                Spirou4D
                                last edited by

                                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 fo

                                for 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

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  tak2hata
                                  last edited by

                                  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!


                                  by TAK2HATA

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Spirou4D
                                    last edited by

                                    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 file

                                    and 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##

                                    1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      greenkot
                                      last edited by

                                      Hello,
                                      there is a problem with the position of the texture when exporting

                                      http://i61.fastpic.ru/big/2014/0514/2b/f77b1539f14199347d79ec3745bd1d2b.jpg

                                      http://i63.fastpic.ru/big/2014/0514/18/1549348eba3a5effd1c0a449cd58fa18.png

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        tak2hata
                                        last edited by

                                        @unknownuser said:

                                        Hello,
                                        there is a problem with the position of the texture when exporting

                                        http://i61.fastpic.ru/big/2014/0514/2b/f77b1539f14199347d79ec3745bd1d2b.jpg

                                        http://i63.fastpic.ru/big/2014/0514/18/1549348eba3a5effd1c0a449cd58fa18.png

                                        Hi,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.
                                        Thanks

                                        TAK2HATA


                                        by TAK2HATA

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          tak2hata
                                          last edited by

                                          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.


                                          by TAK2HATA

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            Spirou4D
                                            last edited by

                                            Hello Tak2hata,

                                            Always nothing new: no change with my preview....
                                            But the render run good!
                                            Good luck for the future.
                                            Spirou4D

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 4 / 6
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement