• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[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 18 Mar 2014, 14:35

    @driven said:

    I can trap the create_directory error by appending at line 269 in mitsuba_main.rb
    the serialisation never occurs from the plugin...

    system(commandline, ;out => ['/tmp/log.txt', 'a'], ;err => ['/tmp/log.txt', 'a'])
    

    In my mac that occurs.
    Here is log.txt.

    2014-03-18 23;21;32.391 mtsimport[308;507] ApplePersistenceIgnoreState; Existing state will not be touched. New state will be written to /var/folders/v2/nc5st2054wvghywgtfrszpf00000gn/T/org.mitsuba.Mitsuba.savedState
    2014-03-18 23;21;32 INFO  main [converter.cpp;137] Beginning conversion ..
    2014-03-18 23;21;32 INFO  main [collada.cpp;1596] Loading "mitsuba_main.dae" ..
    2014-03-18 23;21;32 INFO  main [collada.cpp;1642] Importing materials ..
    2014-03-18 23;21;32 INFO  main [collada.cpp;1669] Importing scene ..
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
    2014-03-18 23;21;32 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
    2014-03-18 23;21;32 INFO  main [collada.cpp;1680] Done, took 0.0s
    2014-03-18 23;21;32 INFO  main [mtsimport.cpp;156] Encountered 14 warnings -- please check the messages above for details.
    Finished conversion (took 60 ms)
    
    

    In Sketchup Ruby Console
    system(%Q{'/Applications/Mitsuba.app/Contents/MacOS/mtsimport' '/Applications/su_render/mitsuba_main.dae' '/Applications/su_render/mitsuba_main.xml'})
    this return False?


    by TAK2HATA

    1 Reply Last reply Reply Quote 0
    • D Offline
      driven
      last edited by 18 Mar 2014, 14:46

      Here is my log.txt. after 2 attempts

      2014-03-18 13;58;36 INFO  main [converter.cpp;127] Creating directory "textures" ..
      Caught a critical exception; boost;;filesystem;;create_directory; Permission denied; "textures"
      2014-03-18 14;22;09 INFO  main [converter.cpp;127] Creating directory "textures" ..
      Caught a critical exception; boost;;filesystem;;create_directory; Permission denied; "textures"
      
      

      @tak2hata said:

      In Sketchup Ruby Console
      system(%Q{'/Applications/Mitsuba.app/Contents/MacOS/mtsimport' '/Applications/su_render/mitsuba_main.dae' '/Applications/su_render/mitsuba_main.xml'})
      this return False?
      YES it returns false

      and if you use this version, you get the same error as the log file in Ruby Console...

      %x(/Applications/Mitsuba.app/Contents/MacOS/mtsimport /Applications/su_render/mitsuba_main.dae /Applications/su_render/mitsuba_main.xml 2>&1)
      

      2014-03-18 14:42:03 INFO main [converter.cpp:127] Creating directory "textures" .. Caught a critical exception: boost::filesystem::create_directory: Permission denied: "textures"

      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 18 Mar 2014, 15:05

        @driven said:

        and if you use this version, you get the same error as the log file in Ruby Console...

        %x(/Applications/Mitsuba.app/Contents/MacOS/mtsimport /Applications/su_render/mitsuba_main.dae /Applications/su_render/mitsuba_main.xml 2>&1)
        

        2014-03-18 14:42:03 INFO main [converter.cpp:127] Creating directory "textures" .. Caught a critical exception: boost::filesystem::create_directory: Permission denied: "textures"

        I get this return.

        > %x(/Applications/Mitsuba.app/Contents/MacOS/mtsimport /Applications/su_render/mitsuba_main.dae /Applications/su_render/mitsuba_main.xml 2>&1)
        2014-03-18 23;58;34.268 mtsimport[472;507] ApplePersistenceIgnoreState; Existing state will not be touched. New state will be written to /var/folders/v2/nc5st2054wvghywgtfrszpf00000gn/T/org.mitsuba.Mitsuba.savedState
        2014-03-18 23;58;34 INFO  main [converter.cpp;137] Beginning conversion ..
        2014-03-18 23;58;34 INFO  main [collada.cpp;1596] Loading "mitsuba_main.dae" ..
        2014-03-18 23;58;34 INFO  main [collada.cpp;1642] Importing materials ..
        2014-03-18 23;58;34 INFO  main [collada.cpp;1669] Importing scene ..
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 WARN  main [collada.cpp;1288] instance_geometry does not contain a <bind_material> element!
        2014-03-18 23;58;34 WARN  main [collada.cpp;615] Referenced material could not be found, substituting a diffuse BRDF.
        2014-03-18 23;58;34 INFO  main [collada.cpp;1680] Done, took 0.0s
        2014-03-18 23;58;34 INFO  main [mtsimport.cpp;156] Encountered 16 warnings -- please check the messages above for details.
        Finished conversion (took 42 ms)
        

        Is this problem security permission?


        by TAK2HATA

        1 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by 18 Mar 2014, 15:14

          the problem seems to be the path from boost to the file not having the correct permissions, if that makes sense...

          As the folder is in the HD/Applications/ I have tried it at /tmp/, ~/Desktop, ~/Documents and in Plugins, all fail...

          my copy of boost lives in /usr/local/bin/include, but it's a symlink to homebrew/cellar so that my be the issue...

          not following symlink from ruby, I'll check it again from terminal...

          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 18 Mar 2014, 15:16

            that returns

            dyld; Symbol not found; __cg_jpeg_resync_to_restart
              Referenced from; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
              Expected in; /usr/local/lib/libJPEG.dylib
             in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
            Trace/BPT trap; 5
            

            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 18 Mar 2014, 15:29

              @driven said:

              that returns

              dyld; Symbol not found; __cg_jpeg_resync_to_restart
              >   Referenced from; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
              >   Expected in; /usr/local/lib/libJPEG.dylib
              >  in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
              > Trace/BPT trap; 5
              

              Avoiding this problem,

              I will write the code for serialized mesh exporter in ruby.

              Thanks.


              by TAK2HATA

              1 Reply Last reply Reply Quote 0
              • D Offline
                driven
                last edited by 18 Mar 2014, 15:36

                Good idea, it's probably the best long term solution...

                you can PM me if you want anything tested...

                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 19 Mar 2014, 00:00

                  I just had a thought and did some tests...

                  commandline tool need to modify .bashrc to point to python...

                  I don't use a .bashrc file, i use .bashprofile, so I created one under User/me/.bashrc and it's not written to...

                  where is your .bashrc located, and exactly what does it contain??

                  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 19 Mar 2014, 12:23

                    @driven said:

                    I just had a thought and did some tests...

                    commandline tool need to modify .bashrc to point to python...

                    I don't use a .bashrc file, i use .bashprofile, so I created one under User/me/.bashrc and it's not written to...

                    where is your .bashrc located, and exactly what does it contain??

                    john

                    I search in my mac.
                    I found "bashrc" in "/private/etc"
                    it contains this.

                    # System-wide .bashrc file for interactive bash(1) shells.
                    if [ -z "$PS1" ]; then
                       return
                    fi
                    
                    PS1='¥h;¥W ¥u¥$ '
                    # Make bash check its window size after a process completes
                    shopt -s checkwinsize
                    # Tell the terminal about the working directory at each prompt.
                    if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then
                        update_terminal_cwd() {
                            # Identify the directory using a "file;" scheme URL,
                            # including the host name to disambiguate local vs.
                            # remote connections. Percent-escape spaces.
                    	local SEARCH=' '
                    	local REPLACE='%20'
                    	local PWD_URL="file;//$HOSTNAME${PWD//$SEARCH/$REPLACE}"
                    	printf '¥e]7;%s¥a' "$PWD_URL"
                        }
                        PROMPT_COMMAND="update_terminal_cwd; $PROMPT_COMMAND"
                    fi
                    								    
                    
                    

                    by TAK2HATA

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      driven
                      last edited by 19 Mar 2014, 12:45

                      thanks for that,
                      I found a note in the 'Mitsuba' source repository that the .bashrc file was no longer written to, so their message-box needs updating.
                      It does seem to be a simple path issue, that halts the process...
                      I just can't find it.
                      I have a separate instal of 'boost', so it may be a version/path conflict when Mitsuba calls it from shell...

                      Mitsuba works with other .dae files when imported, and I have older scene files from a previous instal, that run after they are auto updated on loading...

                      I'll remove my copy of boost and see if that makes a difference...

                      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 19 Mar 2014, 14:32

                        hi
                        got it working...
                        will need tidying...
                        line 264

                        			commandline = %Q{cd /Applications && Mitsuba.app/Contents/MacOS/mtsimport #{objfile.gsub(/\\/,'/')} #{xmlfile.gsub(/\\/,'/')}}
                        
                        

                        OSX 10.9.2 must be stricter about the context...

                        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 19 Mar 2014, 15:50

                          @driven said:

                          hi
                          got it working...
                          will need tidying...
                          line 264

                          			commandline = %Q{cd /Applications && Mitsuba.app/Contents/MacOS/mtsimport #{objfile.gsub(/\\/,'/')} #{xmlfile.gsub(/\\/,'/')}}
                          > 
                          

                          OSX 10.9.2 must be stricter about the context...

                          john

                          Hi,john.
                          Thanks!!!

                          I change that line.and I update this to v1.2.1.

                          I am very Happy.

                          Thank you very much!


                          by TAK2HATA

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            tak2hata
                            last edited by 19 Mar 2014, 15:59

                            @sadyo said:

                            Mitsuba seem work fine on my Sketchup 2014-Windowc 8.1 64bit
                            But,
                            How to implementing the clipmap/2D object in Mitsuba ❓ ❓

                            http://s1.postimg.org/jtfu9opfj/image.jpg

                            it won't appear in Renderer

                            Hi sadyo.
                            This problem is still exists.
                            if it is clip mapped material ,please use mask option in "OTHER" tab of material editor.

                            But the Image object is not material.
                            So it can not edit by material editor.
                            Please explode it to face and material.

                            The image object is no supported in this plugin ,yet
                            It will support in future version.
                            But clipping of Image object will not be supported.

                            And other notice,mitsuba render can not read TIFF and PSD.

                            Thanks!


                            by TAK2HATA

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by 19 Mar 2014, 16:16

                              downloaded v1.2.1 and notice you left the log code in...

                              		system(commandline, ;out => ['/tmp/log.txt', 'a'], ;err => ['/tmp/log.txt', 'a'])
                              

                              not sure if it breaks PC's
                              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 19 Mar 2014, 16:43

                                @driven said:

                                downloaded v1.2.1 and notice you left the log code in...

                                		system(commandline, ;out => ['/tmp/log.txt', 'a'], ;err => ['/tmp/log.txt', 'a'])
                                

                                not sure if it breaks PC's
                                john

                                Sorry.

                                Now I deleted that log option.and updated.

                                Thanks john!


                                by TAK2HATA

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sergonavt
                                  last edited by 19 Mar 2014, 18:02

                                  ""sophi skin"" 😞((
                                  windows-7, 64-bit, SU-7.

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    Mike Amos
                                    last edited by 20 Mar 2014, 19:40

                                    Does anyone have any genderal advice on installing mitsuba? I am getting a report that a dll is missing and installation stops. Basically I can find no proper install documentation. Thanks.

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      driven
                                      last edited by 20 Mar 2014, 20:01

                                      @mike
                                      did you try either/both of these window.exe downloads?http://www.mitsuba-renderer.org/download.html

                                      maybe some machine specs would help us out, helping you...

                                      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
                                      • M Offline
                                        Mike Amos
                                        last edited by 20 Mar 2014, 21:23

                                        Thanks John, I feel like a right muppet not including specs, not as if I do not know, please put it down to a muppet day. I have tried the 64 bit program from that site/location.

                                        Specs as in the attached image.

                                        NVIDIA graphics card 1gb vram. This is updated as of about 1 week ago for drivers.


                                        System Specs

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          tak2hata
                                          last edited by 21 Mar 2014, 01:47

                                          Hi,All.
                                          I update this to v1.2.4. in 2014-03-21.
                                          I finally understood this problem of running mtsimport.
                                          I add code setting current directory in ruby.
                                          So mtsimport will make "textures" in setter directory.
                                          Thanks John.

                                          @mike amos said:

                                          Thanks John, I feel like a right muppet not including specs, not as if I do not know, please put it down to a muppet day. I have tried the 64 bit program from that site/location.

                                          Specs as in the attached image.

                                          NVIDIA graphics card 1gb vram. This is updated as of about 1 week ago for drivers.

                                          Hi,Mike.
                                          There is "vcredist_2013_x64.exe" in folder unzipped mitsuba render package.
                                          It is microsoft visual studio 2014 x64 redisributable package"
                                          Please install it.
                                          Mitsuba will work.

                                          Thanks!


                                          by TAK2HATA

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

                                          Advertisement