{"id":28,"date":"2008-12-01T22:00:06","date_gmt":"2008-12-01T22:00:06","guid":{"rendered":"\/progress73465\/?p=28"},"modified":"2008-12-01T22:00:06","modified_gmt":"2008-12-01T22:00:06","slug":"more-animated-objects","status":"publish","type":"post","link":"https:\/\/railsimroutes.net\/blog\/openbve\/more-animated-objects\/","title":{"rendered":"More Animated Objects"},"content":{"rendered":"<p>While my favourite games are naturally openBVE and BVE Trainsim, another game which has also made a great impression on me is the first-person shooter Half-Life 2 and it&#8217;s follow-on episodes. I love this series of games because of the unfolding sci-fi story arc, mythology, characters, exotic technology, blend of elements of past, present and future, interactive environments and physics modelling; but they also feature some exceptionally high quality photo-realistic textures, lighting, atmospheric scenes, visual effects and a variety of nice touches which help to bring Half-Life 2&#8217;s dystopian world to life. Now that openBVE&#8217;s animation capabilities can be experimented with, I thought I&#8217;d bring a couple of the things I&#8217;ve noticed in Half-Life 2 to my own routes&#8211;no, not portal storms, teleportation devices or xenomorphic creatures wreaking havok in the streets of Birmingham, tempting though that is; rather animated birds and cables. Okay, maybe not quite as exciting, but anyway, <strong>Half-Life 2<\/strong> features birds which fly past in places, and cables which sway in the wind:<\/p>\n<p><a class=\"imglink\" href=\"\/images\/hl2_d1_trainstation_01.jpg\"><img decoding=\"async\" style=\"padding-right: 0px; padding-left: 0px; padding-bottom: 0px; padding-top: 0px\" title=\"Screenshot (Half-Life 2)\" src=\"\/images\/thumbnails\/hl2_d1_trainstation_01.jpg\" alt=\"Screenshot (Half-Life 2)\" \/><\/a> <a class=\"imglink\" href=\"\/images\/hl2ep2_outland_06a_01.jpg\"><img decoding=\"async\" style=\"padding-right: 0px; padding-left: 0px; padding-bottom: 0px; padding-top: 0px\" title=\"Screenshot (Half-Life 2 Episode 2)\" src=\"\/images\/thumbnails\/hl2ep2_outland_06a_01.jpg\" alt=\"Screenshot (Half-Life 2 Episode 2)\" \/><\/a><\/p>\n<p>Using <span class=\"emphasis_colour\"><strong>openBVE&#8217;s<\/strong> animated object translation and rotation functions<\/span>, similar effects can be created. I downloaded a Reverse Polish Notation calculator to assist me in understanding what some of the translation values being calculated actually are, and this helped me to create birds which move at the right speed at the right time, and have flapping wings to add a little life to them, although I haven&#8217;t figured out how to increase the speed of the flapping yet. The return conductor cables sway back and forth as though buffeted by strong gusts of wind, and I exchanged the sine and cosine functions in alternating objects so each cable length doesn&#8217;t sway at the same time as the next, making the overall movement look rather more natural. I&#8217;ve amended my previous video with some extra shots of these features:<\/p>\n<p><img decoding=\"async\" style=\"padding-right: 5px; float: left;\" title=\"openBVE \/ X-City South video - please use the YouTube links to the right\" src=\"\/images\/thumbnails\/xcs14_anim_2.png\" alt=\"Download openBVE \/ X-City South video - please use the YouTube links to the right\" \/><span style=\"white-space: nowrap\"><strong>Video:<\/strong> openBVE v0.9.1.7 and X-City South v1.4 (textures and scenery not finished yet)<\/span><\/p>\n<p>Animated clouds, flying birds, falling rain, swaying cables, moving water, and a passing train<\/p>\n<p>Note: This video is now included as part of a compilation on YouTube.<\/p>\n<p>\u00ab <a href=\"https:\/\/www.youtube.com\/watch?v=QtITwxTWLyM&amp;fmt=18\">[YouTube &#8220;High Quality&#8221; version]<\/a> | <a href=\"https:\/\/www.youtube.com\/watch?v=QtITwxTWLyM&amp;fmt=22\">[YouTube &#8220;High Definition&#8221; version]<\/a><\/p>\n<p>Class 150 objects from <a href=\"http:\/\/bve4.net\" target=\"_blank\" rel=\"noopener\">\u00bb Network West Midlands \u00ab<\/a><\/p>\n<table style=\"width: 100%;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td style=\"width: 100px;\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>I hope you like the effects. <img decoding=\"async\" style=\"vertical-align: text-top\" src=\"\/interface\/themes\/modern\/smilies\/icon_smile.gif\" alt=\"Emoticon Smile\" \/><\/p>\n<p><strong>Note: <\/strong>Just to reiterate, openBVE will have built-in rainfall in future, so using animated objects to create this effect won&#8217;t be required eventually; but I was curious to see if such effects were possible with animated objects alone. The passing train is just a fun experiment, and animated objects <strong>aren&#8217;t really suited for this purpose<\/strong> as the animated object doesn&#8217;t follow any track, but rather a direction defined in the animated object file; I probably won&#8217;t include it in the final release route as there&#8217;s no sound accompanying the train.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While my favourite games are naturally openBVE and BVE Trainsim, another game which has also made a great impression on me is the first-person shooter Half-Life 2 and it&#8217;s follow-on episodes. I love this series of games because of the unfolding sci-fi story arc, mythology, characters, exotic technology, blend of elements of past, present and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[6,8,11,15,20],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-openbve","tag-animated-objects","tag-cross-city-south","tag-openbve","tag-screenshots","tag-videos"],"_links":{"self":[{"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/railsimroutes.net\/blog\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}