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.
    • Mike AmosM Offline
      Mike Amos
      last edited by

      Thanks, please excuse me again, I must be working on flat batteries and an old optic prescription. Slower, more notice............

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

        Hi,All.
        I update this to V1.2.9 in 20140330.
        Improves and bugfixes.
        Thanks.


        by TAK2HATA

        1 Reply Last reply Reply Quote 0
        • sadyoS Offline
          sadyo
          last edited by

          Thanks Tak2hata, it's dream come true

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

            @tak2hata,

            cheers for the update, will test on mac...

            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
            • D Offline
              driven
              last edited by

              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...download is free for 'Premiums'...

              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
              • T Offline
                tak2hata
                last edited by

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


                by TAK2HATA

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

                  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.

                  1 Reply Last reply Reply Quote 0
                  • 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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement