{"id":456404,"date":"2018-08-07T18:34:18","date_gmt":"2018-08-07T16:34:18","guid":{"rendered":"http:\/\/bim-me-up.com\/?p=456404"},"modified":"2019-02-18T18:32:54","modified_gmt":"2019-02-18T17:32:54","slug":"vivetrack-for-dynamo","status":"publish","type":"post","link":"https:\/\/bim-me-up.com\/en\/vivetrack-for-dynamo\/","title":{"rendered":"ViveTrack for Dynamo"},"content":{"rendered":"<p>Some days ago I stumbled upon this tweet and couldn't stop thinking about it:<\/p>\n<blockquote class=\"twitter-tweet\" data-lang=\"en\">\n<p dir=\"ltr\" lang=\"en\">I just published <a href=\"https:\/\/twitter.com\/hashtag\/ViveTrack?src=hash&amp;ref_src=twsrc%5Etfw\">#ViveTrack<\/a>, an <a href=\"https:\/\/twitter.com\/hashtag\/opensource?src=hash&amp;ref_src=twsrc%5Etfw\">#opensource<\/a> <a href=\"https:\/\/twitter.com\/DynamoBIM?ref_src=twsrc%5Etfw\">@DynamoBIM<\/a> package for real-time <a href=\"https:\/\/twitter.com\/hashtag\/HTCVive?src=hash&amp;ref_src=twsrc%5Etfw\">#HTCVive<\/a> tracking. Available for download from the pkg manager.<br \/>\n<a href=\"https:\/\/t.co\/SUrgawnPZv\">https:\/\/t.co\/SUrgawnPZv<\/a><a href=\"https:\/\/twitter.com\/hashtag\/DynamoBIM?src=hash&amp;ref_src=twsrc%5Etfw\">#DynamoBIM<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/HTC?src=hash&amp;ref_src=twsrc%5Etfw\">#HTC<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/Vive?src=hash&amp;ref_src=twsrc%5Etfw\">#Vive<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/GenerativeDesign?src=hash&amp;ref_src=twsrc%5Etfw\">#GenerativeDesign<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/Autodesk?src=hash&amp;ref_src=twsrc%5Etfw\">#Autodesk<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/Interaction?src=hash&amp;ref_src=twsrc%5Etfw\">#Interaction<\/a> <a href=\"https:\/\/twitter.com\/hashtag\/Design?src=hash&amp;ref_src=twsrc%5Etfw\">#Design<\/a> <a href=\"https:\/\/t.co\/cBweVRK8Pu\">pic.twitter.com\/cBweVRK8Pu<\/a><\/p>\n<p>- Jose Luis Garcia del Castillo (@garciadelcast) <a href=\"https:\/\/twitter.com\/garciadelcast\/status\/1023984565570953216?ref_src=twsrc%5Etfw\">July 30, 2018<\/a><\/p><\/blockquote>\n<p><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n<p>In our VR Center in Munich we have a lot of interesting usecases, but if I had to pick one to show you, it'd be the implementation of real-time tracking on a 2D drawing, which you can see in <a href=\"https:\/\/youtu.be\/E5H3c1euX9o?t=162\">this video<\/a>. This usecase is based on a professional <a href=\"https:\/\/ar-tracking.com\/\">ART system<\/a>\u00a0and <a href=\"https:\/\/www.autodesk.de\/products\/vred\/overview\">Autodesk VRED.\u00a0<\/a><\/p>\n<p>But what if you want to realize it with more simple tools, like Revit and HTC Vive? I tested the ViveTrack Package for this usecase and the result is pretty amazing:<!--more--><\/p>\n<p><span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe loading=\"lazy\" class=\"youtube-player\" width=\"1200\" height=\"675\" src=\"https:\/\/www.youtube.com\/embed\/WEIwpMWbxdc?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span><\/p>\n<p>Definitely, there is a certain latency and the Vive system is not as accurate as a professional tracking system, but still it's a very nice example for the power of Dynamo!<\/p>\n<p>The most complex thing was to figure out how to scale the output in order to align the real world measures with the model, but actually once it was done I would say it's pretty straight forward:\u00a0<a href=\"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"456410\" data-permalink=\"https:\/\/bim-me-up.com\/en\/vivetrack-for-dynamo\/capture-en\/\" data-orig-file=\"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?fit=3524%2C2538&amp;ssl=1\" data-orig-size=\"3524,2538\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Capture-en\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?fit=300%2C216&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?fit=750%2C540&amp;ssl=1\" class=\"aligncenter size-medium wp-image-456410\" src=\"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en-300x216.png?resize=300%2C216\" alt=\"\" width=\"300\" height=\"216\" srcset=\"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?resize=300%2C216&amp;ssl=1 300w, https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?resize=768%2C553&amp;ssl=1 768w, https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?resize=750%2C540&amp;ssl=1 750w, https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?resize=208%2C150&amp;ssl=1 208w, https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?w=3524&amp;ssl=1 3524w, https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/Capture-en.png?w=2400&amp;ssl=1 2400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>You can download the basic script incl. the comments <a href=\"https:\/\/www.dropbox.com\/s\/zvn8evkpg9u66r8\/Vive-Tracker-commented.dyn?dl=0\">here<\/a>. If you have any questions or thoughts, just drop me a comment below!<\/p>\n<p><span style=\"text-decoration: underline;\">Update August 8:<\/span><\/p>\n<p>Jose, the developer behind the ViveTrack Package, sent me a couple of notes which may increase the performance and which may be interesting for you out there as well:<\/p>\n<ul>\n<li><span style=\"font-size: 12.0pt; color: black;\">Rendering preview meshes is by far the most costly operation. Deactivate <i>all<\/i> mesh rendering and stick to just CS preview, it will run much better.<\/span><\/li>\n<li><span style=\"font-size: 12.0pt; color: black;\">Remove all nodes for devices that you are not using. Even if frozen, they consume a lot of memory. In your case, you only need the one Tracker node (the lighthouses and HMD are handled by the system, no need to track hem yourself).<\/span><\/li>\n<li><span style=\"font-size: 12.0pt; color: black;\">Your script is very lightweight otherwise, these tips should allow you to crank the Periodic speed to 100ms at least.<\/span><\/li>\n<li><span style=\"font-size: 12.0pt; color: black;\">Also, for the repositioning of the camera, you can set the system's origin with the Calibrate node in ViveTrack.<\/span><\/li>\n<\/ul>\n<p>I'll test do some more tests as soon as I get to and post an update on this project here! Please check out <a href=\"https:\/\/github.com\/garciadelcastillo\/ViveTrack-Dynamo\">Jose's Github page<\/a>\u00a0in the meanwhile for more references and information about this package and the related projects.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"Some days ago I stumbled upon this tweet and couldn't stop thinking about it: I just published #ViveTrack,...","protected":false},"author":1,"featured_media":456408,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[88,104],"class_list":{"0":"post-456404","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-dynamo","8":"tag-blog","9":"tag-enu","10":"cs-entry","11":"cs-video-wrap"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/bim-me-up.com\/wp-content\/uploads\/2018\/08\/thumb.jpg?fit=825%2C827&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p2lEa7-1UJm","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts\/456404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/comments?post=456404"}],"version-history":[{"count":7,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts\/456404\/revisions"}],"predecessor-version":[{"id":456414,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/posts\/456404\/revisions\/456414"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/media\/456408"}],"wp:attachment":[{"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/media?parent=456404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/categories?post=456404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bim-me-up.com\/en\/wp-json\/wp\/v2\/tags?post=456404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}