• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] Voodoo Camera Tracker Importer - March 9, 2011

Scheduled Pinned Locked Moved Plugins
24 Posts 11 Posters 31.2k 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.
  • C Offline
    Chris Fullmer
    last edited by 10 Apr 2010, 08:05

    This plugin imports data from Voodoo Camera Tracker, making it possible to recreate camera flightpaths in SketchUp, from real movies. Also known as camera tracking or camera matching. Honestly I don't know how useful this really is, but it is still pretty interesting and could have some limited, specialized instances where it might come in handy.

    Intended workflow:

    • Shoot your movie clip (Voodoo has guidelines on waht types of clips, length, etc, work best for their software) (See video #1 below - my video clip).
    • Turn movie clip into a series of images (I've used QuickTime Pro, but there are other free ones out there. I just need to rememeber what its called and put a link to it).
    • Open series of still images into Voodoo Camera Tracker.
    • Use that software to track the camera - creating a lot of 3d point clouds along the way!
    • Export as a text file. (I've attached an example text file that can be imported for testing purposes.)
    • Import text file into SU using this plugin (from the File > Import dialog or through Plugins > Chris Fullmer Tools > Voodoo camera tracker Importer).
    • Now you have a scene for each from of your movie, a camera path of construction points, and a cloud of construction points. (I've attached an example sketchup file that shows how the data is imported if you'd like to play with it).
    • Clean up any construction points that are way out of the range.
    • Play the scenes animation inside of SU to get a feeling for how well the import worked.
    • Add your model, using the pointcloud as a reference for where it should sit more or less.
    • Export an animation of your model (hide construction points first) as a series of image frames.
    • Now somehow figure out how to composite those frames cleanly back on top of your original frames (I used photoshop. I know other software does it too. If there is interest, I am looking at automating this part of the process with ImageMagick). (see 2nd video below for an example of my final output video).
    • The End.

    Ok, well that is a sort of theoretical workflow that worked for me. I should mention I have not used Voodoo very much, so my example video would have come out much better if I knew how to refine things inside of Voodoo. Also notice that Voodoo might be capable of exporting more info than I currently import. Right now I only import cameras and feature points. I do not know if Voodoo exports different/more data if you do more refining work inside the program. If so, I can add that to the importer once someone explains how it works πŸ˜„

    Please check out my original footage, my SketchUp model, my example Voodo export file that you can import just to test it out, and finally my final video, where I add an amazing fountain to the front of my office. It is amazing.

    Let me know what you think, if you can get it to work at all, if you need more tips on layering the frames afterwards, etc. This plugin was written as a fun exercise, but I will develop it further if there is real demand. I can't tell if this plugin is just a silly little toy, or on the verge of being something really useful.

    And lastly, I am not convinced that I have the camera FOV worked out perfectly. I have not tested it very thoroughly. So if someone notices that it is really off, let me know and I'll see if I can figure it out better. Oh yeah, and for some reason, my videos are always upside down in Voodoo, so this importer actually turns the Voodoo export upside down (which makes it look right in SU). But that could just be a quirk from how my video camera saves the movie file or something. So if you notice your videos come out upside down, or the scenes do not actually point at the geometry cloud, let me know! Thanks,

    Chris

    PS - Voodoo is apparently not for commercial use, so that is a bummer 😞

    My original video:
    [flash=720,405:dgmjqxlj]http://www.youtube.com/v/4F38QmJQ9sU&hd=1&fs=1[/flash:dgmjqxlj]

    My video of what the camera movement and 3d point cloud look like inside SU:
    [flash=720,405:dgmjqxlj]http://www.youtube.com/v/YSjow0gnCyo&hd=1&fs=1[/flash:dgmjqxlj]

    The finished product:
    [flash=720,405:dgmjqxlj]http://www.youtube.com/v/84qpYeG3E6E&hd=1&fs=1[/flash:dgmjqxlj]


    Test file to import


    Example of imported Data


    v1.1 release

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

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 10 Apr 2010, 14:12

      Yes Chris, I already exactly know where and how I will use this when it comes to there. You say it's currently just a toy - I say it's an extremely useful tool which has immense possibilities (of course, you need to edit that lamp post and fountain so that the post looks to be in front of the fountain but I know it's just nit-picking now πŸ˜„ )

      Thanks a bunch and I guess I will be closely following this topic to see if there is any development.

      BTW Could it be used with still images? Say if I shoot two (or more) images from two, different angles? It would be an easier tool to handle than PhotoMatch!

      Gai...

      1 Reply Last reply Reply Quote 0
      • X Offline
        xrok1
        last edited by 10 Apr 2010, 17:13

        now you need a shadow catcher. πŸ€“

        β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

        http://www.Twilightrender.com try it!

        1 Reply Last reply Reply Quote 0
        • K Offline
          ktslambieng
          last edited by 11 Apr 2010, 06:51

          @xrok1 said:

          now you need a shadow catcher. πŸ€“

          I think it just used to create shadow by photomatch in sketchup πŸŽ‰

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mike Lucey
            last edited by 11 Apr 2010, 09:50

            Well done Chris,

            Thanks for taking on this project. I looked at camera tracking possibilities some time back and thought there was great potential. I even researched some devices for keeping the camera steady while walking, cycling past the 'scene'.

            It would be fantastic to have a marriage of Camera Tracking with SketchUp at it would allow for very realistic 'This is how the building would look in reality' videos for presentation to clients and Planning Authorities. A plugin that would do this would definitely be worth its weight in gold and I am sure you would be well compensated for your efforts.

            Like Csaba I to will keep a close eye on your progress and send you the bits and pieces that I have filled away somewhere on my HD.

            Mike

            Support us so we can support you! Upgrade to Premium Membership!

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 11 Apr 2010, 20:13

              This is a very interesting plugin.
              I can see it being useful for arch viz. Grab a camera, go to location and film the project site from a human perspective and then insert your Sketchup model.

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • S Offline
                Sir
                last edited by 12 Apr 2010, 15:59

                Syntheyes is what we're currently experimenting with for our uni project. been used in films and things, its amazing...

                dont think it integrates with SKP tho, we've been using c4D with it.

                expensive too, but there are free demos

                This is the interesting bit

                Developing New Exporters

                currently exporters 'only' available for these

                @unknownuser said:

                Included exporters for MAXscript (3ds max, 3D Studio VIZ); Maya scene file; Softimage dotXSI; Lightwave; Maxon C4D (via .LWS); Modo; Bentley Microstation; Houdini; Blender; Carrara; Electric Image; Hash Animation: Master; Poser, Realsoft 3D; trueSpace; Vue 5 & 6 Infinite; Discreet Flame/Inferno/Smoke2008(3-D); Combustion(3-D); Combustion/Flame/Inferno 2-D ASCII tracker file; After Effects(2- & 3-D); Shake (2- & 3-D); Apple Motion(2- & 3-D); Nuke; FLAIR motion control cameras; Fusion (2-D); Fusion 5 (3-D); toxik; Mistika; Particle Illusion

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Chris Fullmer
                  last edited by 12 Apr 2010, 20:33

                  Yes, Syntheyes seems to be a popular option from what I've seen.

                  It would be amost equally easy to make my pluing incorporate synthese exports also. In fact, I could perhasp just make my script read in the 3ds max export file. Then theoretically it might be able to import the camera match data from any camera match software. Maybe that would be a good solution,

                  Chris

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

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    floric
                    last edited by 29 Oct 2010, 16:31

                    This plugin was exactly what I was looking for. But it seem not to work correct.
                    I generate a .txt (from 360 pictures, 132 kb) and then I import it with the plugin. The plugin asks me about the framerate, I klick OK and the scenes are generated. But all have the same perspective and there are no points from voodoo.
                    If I play the animation every "picture" is exactly the same. The camera also seems to be nearly exactly at the point of origin.
                    What went wrong? I used SU 8.
                    Please help me. Thats a really great tool and would be if I can use it! πŸ˜„
                    Thanks, floric

                    I'm german. Please feel free to correct my language mistakes. :D

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Chris Fullmer
                      last edited by 30 Oct 2010, 15:59

                      Hmm, that is a good question. This plugin was a bit of an experiment by me, but it definitely should work. I guess could you upload the .txt file here? You might need to zip it so the forum accepts it. I'll take a look at it and see if there is an oddity in the file that my script is not able to understand. Thanks,

                      Chris

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

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        floric
                        last edited by 30 Oct 2010, 17:28

                        Thanks for your answer. πŸ˜„
                        I attached the file in a ZIP. 😎


                        Track.txt

                        I'm german. Please feel free to correct my language mistakes. :D

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          floric
                          last edited by 12 Nov 2010, 15:07

                          PUSH

                          Any changes at this problem. Or is there any other possibilitie to use Voodoo in Kerkythea?

                          I'm german. Please feel free to correct my language mistakes. :D

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            Chris Fullmer
                            last edited by 12 Nov 2010, 16:39

                            😳 Sorry, I have not yet got to it. Perhaps this weekend I can though. Work has been unexpectedly bust the last couple of weeks - but we got a BIG project completed yesterday and this weekend I can finally relax.

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

                            1 Reply Last reply Reply Quote 0
                            • F Offline
                              floric
                              last edited by 13 Nov 2010, 14:57

                              No problem. There is no hurry. πŸ˜„

                              I'm german. Please feel free to correct my language mistakes. :D

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                floric
                                last edited by 23 Nov 2010, 13:52

                                I really don't want to ennoy but ANY changes? πŸ˜„
                                It would be great if this plugin would work. πŸ˜„

                                EDIT: Sorry. I studied the camera-file of the tracker and it seems to be a bug of voodoo. πŸ˜„

                                I'm german. Please feel free to correct my language mistakes. :D

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Chris Fullmer
                                  last edited by 6 Mar 2011, 01:19

                                  Hey Floric, I am finally finding some time to look into this, and the first thing that I'm seeing is that the data is not coming out of Voodoo tracker correctly. So somehow I think you have not got Voodoo set up right. Is there any chance you could uploade the video that you are trying to track?

                                  Chris

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

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    Bertier
                                    last edited by 15 Jul 2011, 09:10

                                    Chris

                                    that is great !

                                    I'll give it a try.

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sims
                                      last edited by 29 Dec 2011, 16:56

                                      At first, I apologize for my pretty poor English, I don't speak it really fluently.
                                      Whatever, I only wanted to thank you ! It's a pretty amazing work !
                                      I'm a student in movie/photography and it's so useful for green screens !
                                      Thanks a lot !

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sims
                                        last edited by 29 Dec 2011, 20:17

                                        After some tests, I still got a question: how do you make axes generated by voodoo match these of your sketchup model?
                                        Maybe my purpose is not really clear... (Shame on my pretty poor English ^^)
                                        So I join a screenshot:

                                        http://img706.imageshack.us/img706/6049/printscreent.th.jpg

                                        As you can see, there is some problem... And of course, if I simply rotate the model to make surface parallel to the ground, I lose scene views.
                                        I'd like to make red and green axes match initial sketchup axes (and horizon to get realistic light while rendering) but I absolutly don't know how to do so ! I've been looking for solutions over the web for hours, but I didn't find anything !
                                        No way to move horizon line in sketchup, nor to manually set axes in voodoo after tracking.
                                        Well, I'm lost, can anyone help me, please?

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          Chris Fullmer
                                          last edited by 2 Jan 2012, 02:48

                                          Hi Sims, I've been out on vacation for a few weeks, but I'm back now.

                                          I admit that I can't tell what it wrong with that image. It looks like it imported well to me. Could you upload the .txt file?

                                          Or in your PM you sent me, you mentioned just trying to use another file format. If you could give me some better detail on what file format it is, I might be bale to write another version that reads their file format.

                                          Chris

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

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

                                          Advertisement