{"id":309,"date":"2023-11-04T18:58:42","date_gmt":"2023-11-04T18:58:42","guid":{"rendered":"https:\/\/sparkonelabs.com\/home\/?p=309"},"modified":"2023-11-17T16:22:35","modified_gmt":"2023-11-17T16:22:35","slug":"constructing-a-virtual-robot-webgl-experiment","status":"publish","type":"post","link":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/","title":{"rendered":"Constructing a Virtual Robot Three.js\/WebGL"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This post is about constructing a virtual robot WebGL experiment, using <a href=\"http:\/\/threejs.org\/examples\">Threejs.org\/examples<\/a> as a starting point. The ultimate goal is to have a training robot similar to the ones used in automotive manufacturing. <strong>Note<\/strong> that, in this article I am trying out a bibliographical style where in post references are marked with a bracketed number, e.g. [<strong>1<\/strong>]; and the source is listed after a separator at the end of the post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Given References:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\"><a href=\"https:\/\/threejs.org\/examples\/#webgl_loader_collada_kinematics\">https:\/\/threejs.org\/examples\/#webgl_loader_collada_kinematics<\/a><\/li>\n\n\n\n<li class=\"\"><a href=\"https:\/\/github.com\/rdiankov\/collada_robots\">https:\/\/github.com\/rdiankov\/collada_robots<\/a><\/li>\n\n\n\n<li class=\"\"><a href=\"http:\/\/openrave.org\/docs\/latest_stable\/robots_overview\/\">http:\/\/openrave.org\/docs\/latest_stable\/robots_overview\/<\/a><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The github project listed above had been cloned into:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">\/home\/sparkone\/projects\/robotics\/collada_robots<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The collada_robots project cloned from github is a folder full of .zae files. (A .<em>ZAE file<\/em>&nbsp;is a Compressed COLLADA Digital Asset Exchange file [<strong>1<\/strong>]). Well it needs to be uncompressed using zip, after renaming .zae to .zip; placed in their own directory to avoid overwriting manifest.xml. This has been accomplished and now each uncompressed .dae file exists in its own folder.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well then, what is COLLADA? COLLADA is an XML-based schema that&nbsp;enables you to transfer data among 3D digital content creation tools, such as SketchUp, Maya, 3ds Max, and Rhino [<strong>2<\/strong>].<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thus the project contains robot models only. Fortunately, we have an example related to this from the old WebGL book worked from on the old site.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The old project website book link is down, but the URL is: <a href=\"http:\/\/vorticieflux6626.ihostfull.com\/oreilly\/oreilly.php\">http:\/\/vorticieflux6626.ihostfull.com\/oreilly\/oreilly.php<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Went ahead and cloned all of <a href=\"https:\/\/github.com\/mrdoob\/three.js.git\">https:\/\/github.com\/mrdoob\/three.js.git<\/a> into:<\/p>\n\n\n\n<pre class=\"wp-block-syntaxhighlighter-code\">\/home\/sparkone\/projects\/robotics\/three.js<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This includes the documents and examples, the particular one of interest is <a href=\"https:\/\/threejs.org\/examples\/#webgl_loader_collada_kinematics\">webgl_loader_collada_kinematics<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So the example needs to be isolated and analyzed, then ported onto hostgator&#8217;s server and linked.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Meanwhile, the <a href=\"http:\/\/openrave.org\">openrave<\/a> project seems promising for one of the ultimate goals of this particular project. To that end the following link is noted:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.osrobotics.org\/osr\/installation\/motion_planning.html\">https:\/\/www.osrobotics.org\/osr\/installation\/motion_planning.html<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apparently the software is intended to be installed on Ubuntu, however; it may be possible to install it on Arch Linux.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;<em>Using&nbsp;<code>dpkg<\/code>&nbsp;for this is a BadIdea\u2122. The only sensible solution is to write a PKGBUILD (if one doesn&#8217;t already exist in the AUR) which extracts the contents of the deb and repackages them correctly for Arch.<\/em>&#8220;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2013&nbsp;<a href=\"https:\/\/unix.stackexchange.com\/users\/65525\/halosghost\">HalosGhost<\/a><a href=\"https:\/\/unix.stackexchange.com\/questions\/179235\/installing-ubuntu-debian-packages-on-arch#comment298099_179252\">Jan 15, 2015 at 13:51<\/a>&#8221; &#8211; [<strong>3<\/strong>]. How are .deb packages compressed differently than they way they are in PKGBUILD?<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\"><a href=\" https:\/\/bbs.archlinux.org\/viewtopic.php?id=244018\"> https:\/\/bbs.archlinux.org\/viewtopic.php?id=244018<\/a>. <\/li>\n\n\n\n<li class=\"\"><a href=\"https:\/\/cubethethird.wordpress.com\/2017\/08\/12\/installing-debianubuntu-packages-on-arch-linux\/\">https:\/\/cubethethird.wordpress.com\/2017\/08\/12\/installing-debianubuntu-packages-on-arch-linux\/<\/a><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">In order to rotate an arbitrary object using a 3d rotation matrix and vectors, the following post suggests that the object be translated to the origin, rotated then translated back.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/math.stackexchange.com\/questions\/2093314\/rotation-matrix-of-rotation-around-a-point-other-than-the-origin\">https:\/\/math.stackexchange.com\/questions\/2093314\/rotation-matrix-of-rotation-around-a-point-other-than-the-origin<\/a><a href=\"https:\/\/math.stackexchange.com\/posts\/2093322\/timeline\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>&#8220;Your first formula is correct. Remember, the point to which this is applied appears on the RIGHT:<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>T(x,y)\u2217R\u2217T(\u2212x,\u2212y)(P)<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>So to evaluate the expression above, we first translate&nbsp;P&nbsp;by&nbsp;(\u2212x,\u2212y), then rotate the result, then translate back. Let&#8217;s see what happens when&nbsp;P&nbsp;is the point&nbsp;(x,y,1). That amounts to evaluating the following product:<\/em><\/p>\n\n\n\n<div class=\"wp-block-mathml-mathmlblock\">f((x,y))=&lt;mtable>&lt;mtr>&lt;mtd>1&lt;\/mtd>&lt;mtd>0&lt;\/mtd>&lt;mtd>0&lt;\/mtd>&lt;\/mtr&lt;>&lt;mtr>010&lt;\/mtr>&lt;mtr>xy1&lt;\/mtr>&lt;\/mtable>\u23a5\u23a1\u23a3\u23a2cos(\u03b8)sin(\u03b8)0\u2212sin(\u03b8)cos(\u03b8)0001\u23a4\u23a6\u23a5\u23a1\u23a3\u23a2100010\u2212x\u2212y1\u23a4\u23a6\u23a5\u23a1\u23a3\u23a2xy1\u23a4\u23a6\u23a5=\u23a1\u23a3\u23a2100010xy1\u23a4\u23a6\u23a5\u23a1\u23a3\u23a2cos(\u03b8)sin(\u03b8)0\u2212sin(\u03b8)cos(\u03b8)0001\u23a4\u23a6\u23a5\u23a1\u23a3\u23a2001\u23a4\u23a6\u23a5=\u23a1\u23a3\u23a2100010xy1\u23a4\u23a6\u23a5\u23a1\u23a3\u23a2001\u23a4\u23a6\u23a5=\u23a1\u23a3\u23a2xy1\u23a4\u23a6<script id=\"wp-hooks-js\" src=\"https:\/\/sparkonelabs.com\/home\/wp-includes\/js\/dist\/hooks.min.js?ver=f0f188028580e8dc1255\"><\/script>\n<script id=\"wp-i18n-js\" src=\"https:\/\/sparkonelabs.com\/home\/wp-includes\/js\/dist\/i18n.min.js?ver=1dfe7db3940c23ea9216\"><\/script>\n<script id=\"wp-i18n-js-after\">\nwp.i18n.setLocaleData( { 'text direction\\u0004ltr': [ 'ltr' ] } );\n\/\/# sourceURL=wp-i18n-js-after\n<\/script>\n<script  async id=\"mathjax-js\" src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mathjax\/2.7.7\/MathJax.js?config=TeX-MML-AM_CHTML\"><\/script>\n<\/div>\n\n\n\n<div class=\"wp-block-mathml-mathmlblock\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><em>as expected: the point&nbsp;(x,y)&nbsp;remains fixed by this composite transformation.&#8221;<\/em> [4]<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">References:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li class=\"\"><a href=\"https:\/\/file.org\/extension\/zae\">https:\/\/file.org\/extension\/zae<\/a><\/li>\n\n\n\n<li class=\"\"><a href=\"http:\/\/help.sketchup.com\/en\/sketchup\/importing-and-exporting-collada-files#:~:text=COLLADA%20is%20an%20XML%2Dbased,export%20COLLADA%20files%20pretty%20easily.\">http:\/\/help.sketchup.com\/en\/sketchup\/importing-and-exporting-collada-files#:~:text=COLLADA%20is%20an%20XML%2Dbased,export%20COLLADA%20files%20pretty%20easily.<\/a><\/li>\n\n\n\n<li class=\"\"><a href=\"https:\/\/unix.stackexchange.com\/questions\/179235\/installing-ubuntu-debian-packages-on-arch\">https:\/\/unix.stackexchange.com\/questions\/179235\/installing-ubuntu-debian-packages-on-arch<\/a><\/li>\n\n\n\n<li class=\"\"><a href=\"https:\/\/math.stackexchange.com\/questions\/2093314\/rotation-matrix-of-rotation-around-a-point-other-than-the-origin?newreg=50be929e5a6c4e9598467c545690fea5\">https:\/\/math.stackexchange.com\/questions\/2093314\/rotation-matrix-of-rotation-around-a-point-other-than-the-origin?newreg=50be929e5a6c4e9598467c545690fea5<\/a><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><em>&#8220;Thank you, this answer made it simple for me to create a Transformer class in javascript with chainable methods&nbsp;<code>.set()<\/code>,&nbsp;<code>.translate()<\/code>,&nbsp;<code>.rotate()<\/code>&nbsp;and&nbsp;<code>.get()<\/code>, allowing me to write un-nested expressions such as&nbsp;<code>transformer.set(coords).translate([-4,4]).rotate(Math.PI\/2).translate(4,-4).get();<\/code>. Yay!&nbsp;<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u2013&nbsp;<a href=\"https:\/\/math.stackexchange.com\/users\/993449\/roamer-1888\">Roamer-1888<\/a><a href=\"https:\/\/math.stackexchange.com\/questions\/2093314\/rotation-matrix-of-rotation-around-a-point-other-than-the-origin?newreg=50be929e5a6c4e9598467c545690fea5#comment8972381_2093322\">Nov 15, 2021 at 18:18<\/a>&#8220;<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is about constructing a virtual robot WebGL experiment, using Threejs.org\/examples as a starting point. The ultimate goal is to have a training robot similar to the ones used in automotive manufacturing. Note that, in this article I am trying out a bibliographical style where in post references are marked with a bracketed number,<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"pagelayer_contact_templates":[],"_pagelayer_content":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Constructing a Virtual Robot Three.js\/WebGL - SparkOne() Labs Official Site<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Constructing a Virtual Robot Three.js\/WebGL - SparkOne() Labs Official Site\" \/>\n<meta property=\"og:description\" content=\"This post is about constructing a virtual robot WebGL experiment, using Threejs.org\/examples as a starting point. The ultimate goal is to have a training robot similar to the ones used in automotive manufacturing. Note that, in this article I am trying out a bibliographical style where in post references are marked with a bracketed number,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/\" \/>\n<meta property=\"og:site_name\" content=\"SparkOne() Labs Official Site\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/profile.php?id=61551444286908\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-04T18:58:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-17T16:22:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/sparkonelabs.com\/home\/wp-content\/uploads\/2024\/01\/logo_sparkone_12.png?fit=1152%2C896&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1152\" \/>\n\t<meta property=\"og:image:height\" content=\"896\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sparkonelabs\" \/>\n<meta name=\"twitter:site\" content=\"@sparkonelabs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#\\\/schema\\\/person\\\/ee3bd21f007818ac04abf178e749642c\"},\"headline\":\"Constructing a Virtual Robot Three.js\\\/WebGL\",\"datePublished\":\"2023-11-04T18:58:42+00:00\",\"dateModified\":\"2023-11-17T16:22:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/\"},\"wordCount\":674,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/\",\"url\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/\",\"name\":\"Constructing a Virtual Robot Three.js\\\/WebGL - SparkOne() Labs Official Site\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#website\"},\"datePublished\":\"2023-11-04T18:58:42+00:00\",\"dateModified\":\"2023-11-17T16:22:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/2023\\\/11\\\/04\\\/constructing-a-virtual-robot-webgl-experiment\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Constructing a Virtual Robot Three.js\\\/WebGL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/\",\"name\":\"SparkOne() Labs Official Site\",\"description\":\"SparkOne Labs is a Science, Art and Technology blog. Email: sparkonelabs@sparkonelabs.com\",\"publisher\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#organization\"},\"alternateName\":\"SparkOne Labs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#organization\",\"name\":\"SparkOne() Labs\",\"alternateName\":\"SparkOne Labs\",\"url\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/logo_sparkone_12.png\",\"contentUrl\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/logo_sparkone_12.png\",\"width\":1152,\"height\":896,\"caption\":\"SparkOne() Labs\"},\"image\":{\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=61551444286908\",\"https:\\\/\\\/x.com\\\/sparkonelabs\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/#\\\/schema\\\/person\\\/ee3bd21f007818ac04abf178e749642c\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bc8a8c84ca952e624e7407ec63589bc91e7996574dee7a01c13a96c536c341e9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bc8a8c84ca952e624e7407ec63589bc91e7996574dee7a01c13a96c536c341e9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bc8a8c84ca952e624e7407ec63589bc91e7996574dee7a01c13a96c536c341e9?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\\\/\\\/sparkonelabs.com\\\/home\"],\"url\":\"https:\\\/\\\/sparkonelabs.com\\\/home\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Constructing a Virtual Robot Three.js\/WebGL - SparkOne() Labs Official Site","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/","og_locale":"en_US","og_type":"article","og_title":"Constructing a Virtual Robot Three.js\/WebGL - SparkOne() Labs Official Site","og_description":"This post is about constructing a virtual robot WebGL experiment, using Threejs.org\/examples as a starting point. The ultimate goal is to have a training robot similar to the ones used in automotive manufacturing. Note that, in this article I am trying out a bibliographical style where in post references are marked with a bracketed number,","og_url":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/","og_site_name":"SparkOne() Labs Official Site","article_publisher":"https:\/\/www.facebook.com\/profile.php?id=61551444286908","article_published_time":"2023-11-04T18:58:42+00:00","article_modified_time":"2023-11-17T16:22:35+00:00","og_image":[{"width":1152,"height":896,"url":"https:\/\/i0.wp.com\/sparkonelabs.com\/home\/wp-content\/uploads\/2024\/01\/logo_sparkone_12.png?fit=1152%2C896&ssl=1","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@sparkonelabs","twitter_site":"@sparkonelabs","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/#article","isPartOf":{"@id":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/"},"author":{"name":"admin","@id":"https:\/\/sparkonelabs.com\/home\/#\/schema\/person\/ee3bd21f007818ac04abf178e749642c"},"headline":"Constructing a Virtual Robot Three.js\/WebGL","datePublished":"2023-11-04T18:58:42+00:00","dateModified":"2023-11-17T16:22:35+00:00","mainEntityOfPage":{"@id":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/"},"wordCount":674,"commentCount":0,"publisher":{"@id":"https:\/\/sparkonelabs.com\/home\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/","url":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/","name":"Constructing a Virtual Robot Three.js\/WebGL - SparkOne() Labs Official Site","isPartOf":{"@id":"https:\/\/sparkonelabs.com\/home\/#website"},"datePublished":"2023-11-04T18:58:42+00:00","dateModified":"2023-11-17T16:22:35+00:00","breadcrumb":{"@id":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sparkonelabs.com\/home\/2023\/11\/04\/constructing-a-virtual-robot-webgl-experiment\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sparkonelabs.com\/home\/"},{"@type":"ListItem","position":2,"name":"Constructing a Virtual Robot Three.js\/WebGL"}]},{"@type":"WebSite","@id":"https:\/\/sparkonelabs.com\/home\/#website","url":"https:\/\/sparkonelabs.com\/home\/","name":"SparkOne() Labs Official Site","description":"SparkOne Labs is a Science, Art and Technology blog. Email: sparkonelabs@sparkonelabs.com","publisher":{"@id":"https:\/\/sparkonelabs.com\/home\/#organization"},"alternateName":"SparkOne Labs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sparkonelabs.com\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/sparkonelabs.com\/home\/#organization","name":"SparkOne() Labs","alternateName":"SparkOne Labs","url":"https:\/\/sparkonelabs.com\/home\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sparkonelabs.com\/home\/#\/schema\/logo\/image\/","url":"https:\/\/sparkonelabs.com\/home\/wp-content\/uploads\/2024\/01\/logo_sparkone_12.png","contentUrl":"https:\/\/sparkonelabs.com\/home\/wp-content\/uploads\/2024\/01\/logo_sparkone_12.png","width":1152,"height":896,"caption":"SparkOne() Labs"},"image":{"@id":"https:\/\/sparkonelabs.com\/home\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/profile.php?id=61551444286908","https:\/\/x.com\/sparkonelabs"]},{"@type":"Person","@id":"https:\/\/sparkonelabs.com\/home\/#\/schema\/person\/ee3bd21f007818ac04abf178e749642c","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bc8a8c84ca952e624e7407ec63589bc91e7996574dee7a01c13a96c536c341e9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bc8a8c84ca952e624e7407ec63589bc91e7996574dee7a01c13a96c536c341e9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bc8a8c84ca952e624e7407ec63589bc91e7996574dee7a01c13a96c536c341e9?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/sparkonelabs.com\/home"],"url":"https:\/\/sparkonelabs.com\/home\/author\/admin\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":4,"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":447,"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/posts\/309\/revisions\/447"}],"wp:attachment":[{"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sparkonelabs.com\/home\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}