• Login
sketchucation logo sketchucation
  • Login
🤑 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] 'Camera2Vue.rb'

Scheduled Pinned Locked Moved Plugins
36 Posts 12 Posters 37.8k Views
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.
  • A Offline
    Alex Jenyon
    last edited by 22 May 2009, 10:30

    Thanks to some help from some ruby masters, I've managed to adapt Grant Marshall's 'Camera2Modo' script to export SketchUP cameras to E-on software's 'Vue' digital environment software.

    I hope it's useful. I've tested it on SU6 with Vue 7 infinite on a Mac. It will almost certainly work with SU6 on a PC, and with Vue7 / 7.4 infinite / xstream on either platform. Not tested with SU7.

    Here's my 'proof of concept'

    SU Render:

    http://www.aj-concepts.net/internet_uploads/camera2vue_output1.jpg

    Vue Render:

    http://www.aj-concepts.net/internet_uploads/camera2vue_output2.jpg

    Combined:

    http://www.aj-concepts.net/internet_uploads/camera2vue_output3.jpg

    You can download the script, a vue scene ready-setup and a tutorial here:

    camera2vue.zip

    I don't seem to be able to make the files into an attachment (might be safari), so if someone else / a mod can do it, that would be great. Let me know if there are any problems.

    Enjoy.

    AJ

    Concept artist / Matte painter
    www.aj-concepts.net

    1 Reply Last reply Reply Quote 0
    • M Offline
      matteo
      last edited by 22 May 2009, 12:44

      If this works, and I don't see why it should not (since you tested different combinations of vue + sketchup) thank you very much!

      I'll stop to to do the edge overlay by hand, attempting to match the vue perspective with the sketchup output set as background.

      I really like to combine sketchup edges with a radiosity rendering of the some view. 👍

      hire me: http://www.nonsolo3d.it/ !

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by 22 May 2009, 12:57

        Attached the file, not sure why it didnt work for you.

        thanks for the script, as well. Although i dont use vue, im sure those who do will make good use of it.

        http://remusrendering.wordpress.com/

        1 Reply Last reply Reply Quote 0
        • C Offline
          Chris Fullmer
          last edited by 22 May 2009, 15:59

          Looks great, thanks Alex! Hopefully I'll get to use Vue more in the future and then I'll check this out in more detail,

          Chris

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • S Offline
            solo
            last edited by 22 May 2009, 16:08

            Alex

            Thank you so much for your efforts in bringing another very needed script to our community and especially when it involves SU and Vue.

            Would you mind if I did a video tutorial for the guys at geekatplay and Cornicopia so they too can benifit from this script?

            http://www.solos-art.com

            If you see a toilet in your dreams do not use it.

            1 Reply Last reply Reply Quote 0
            • S Offline
              solo
              last edited by 22 May 2009, 16:10

              one last thing...how does it work? 😳

              http://www.solos-art.com

              If you see a toilet in your dreams do not use it.

              1 Reply Last reply Reply Quote 0
              • S Offline
                solo
                last edited by 22 May 2009, 16:34

                Ah, seems to be working, the one thing that I missed was my SU resolution/aspect vs Vue render size.

                http://www.solos-art.com

                If you see a toilet in your dreams do not use it.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Alex Jenyon
                  last edited by 22 May 2009, 16:36

                  @Solo:

                  There's a 'readme' file in the zip folder I uploaded, which hopefully explains everything.

                  Let me know if you have any trouble getting it to work - I haven't tried it on any system apart from mine yet, so a bit of testing is probably in order.

                  If it's working well for you, then please post the script / tutorials wherever you want.

                  Enjoy!

                  AJ

                  Concept artist / Matte painter
                  www.aj-concepts.net

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    matteo
                    last edited by 22 May 2009, 17:00

                    hi Alex,

                    I've tested it with Vue 7 Esprit on windows xp: sadly it can't read this kind of python script (see attached image).

                    Howerer, if i open the python script with a text editor, i can copy and paste the camera coordinates and orientation into the upper right panel of Vue.

                    Now my problem is how to convert SU fov to Vue fov, since I can't find the the box labelled 'Vertical FoV' in the advanced camera options of Vue 7 Esprit. I'll have to develop a small trigonometric function to convert it.


                    su2vue_py.jpg

                    hire me: http://www.nonsolo3d.it/ !

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      solo
                      last edited by 22 May 2009, 17:14

                      success!!

                      http://img33.imageshack.us/img33/5546/0704sumodel518.jpg

                      http://img42.imageshack.us/img42/2504/testsu2vue.jpg

                      http://www.solos-art.com

                      If you see a toilet in your dreams do not use it.

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        craftycurate
                        last edited by 23 May 2009, 12:07

                        Hi ...

                        Thanks for making Camera2Vue available ...

                        However, although I'm sure I followed the instructions, the scene does not appear as expected - the camera is not positioned correctly relative to the 3B object.

                        I don't have Sketchup Pro so can't export as as OBJ with "swap yz" - would that make a difference?

                        I am using an OBJ exporter script instead.

                        Thanks
                        Richard

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Alex Jenyon
                          last edited by 23 May 2009, 21:02

                          @craftycurate:

                          I'm honestly not sure - I just tried to record my own process as closely as possible.

                          It's worth checking in 'vue' to see if the orientation of the object is nearly right - i.e. the vertical axis in SU is the same as the 'up' in Vue.

                          If it is, there are a couple of things to check:

                          1. The field of view matches (SU's 'field of view' is the VERTICAL field of view in 'VUE'

                          2. The units are the same. My script outputs the camera data in METRES. If your obj exporter uses mm, feet, or something else it's not going to match.

                          3. The object is not hidden by the ground plane in 'vue' (delete it to make sure). Also check that vue doesn't automatically centre or resize your obj geometry.

                          Hope you can sort it out!

                          @matteo:

                          Vue d'esprit can only read python scripts that e-on has created themselves. I don't have a copy, so I can't test out your problem. It should be possible to use the FoV and the aspect ratio to calculate the camera focal length - there's plenty of info around on how to do this, but it's a bit tricky. Let me know if you find a workaround, and I might try to add it to the script.

                          @Solo:

                          Yay! Great news - glad you got it playing ball. Did it work the way I described, or did you have to put in a bit of extra legwork?
                          Please put together a video tutoral if you've got the time - I'm not sure it's something I'm going to be able to do.

                          Thanks for your time everyone - most appreciated.

                          AJ

                          Concept artist / Matte painter
                          www.aj-concepts.net

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            craftycurate
                            last edited by 23 May 2009, 21:14

                            Hi Alex ...

                            Thanks - I'll try out your suggestions.

                            Cheers
                            Richard

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              craftycurate
                              last edited by 23 May 2009, 22:15

                              Here's another one - used a Sketchy Edge style to cover the inaccuracies, but it looks quite nice!


                              blank_scene2c.jpg

                              1 Reply Last reply Reply Quote 0
                              • C Offline
                                craftycurate
                                last edited by 23 May 2009, 22:16

                                I'm very close but not quite there - not sure what needs changing. I am working at maximum precision in Sketchup ... maybe rounding errors in Vue, which only accepts 3 dps.

                                it isn't just a scaling error, but there is a slight rotational one too - the left corner is matched, but the bottom one isn't.

                                I import the SKP file into Vue as an SKP - the free OBJ exporter creates a mirror image for some reason.

                                If I can get this working for the SKP file, it might be useful to other Free SU users.

                                Cheers
                                Richard


                                Camera2VueTest1b.jpg

                                1 Reply Last reply Reply Quote 0
                                • MarianM Offline
                                  Marian
                                  last edited by 23 May 2009, 22:34

                                  Doest it work with any of those free vue types?

                                  http://marian87.deviantart.com/

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    solo
                                    last edited by 23 May 2009, 23:27

                                    Should work with the PLE version.

                                    http://www.solos-art.com

                                    If you see a toilet in your dreams do not use it.

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      solo
                                      last edited by 24 May 2009, 21:37

                                      Here is a quick pdf tutorial with installation files:

                                      favicon

                                      (www.box.net)

                                      http://www.solos-art.com

                                      If you see a toilet in your dreams do not use it.

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        Alex Jenyon
                                        last edited by 25 May 2009, 11:11

                                        @Solo: That's brilliant - thank you so much for taking the time to put that together. Mind if I host a mirror of it on my own server?

                                        @craftycurate: Can you upload / email me the skippy file, and let me know which version of 'Vue' you are using? I'll look into it, see if I can some up with a solution for you. alex [at] aj-concepts.net

                                        Cheers

                                        AJ

                                        Concept artist / Matte painter
                                        www.aj-concepts.net

                                        1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          solo
                                          last edited by 25 May 2009, 13:06

                                          Sure thing Alex.

                                          http://www.solos-art.com

                                          If you see a toilet in your dreams do not use it.

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

                                          Advertisement