纳金网

标题: Billboard (Physics Behavior) [打印本页]

作者: Asen    时间: 2011-10-15 10:54
标题: Billboard (Physics Behavior)






               Billboard (Physics Behavior)
              









           Summary
         

           Causes the parent object to always face the camera, with a variety of options.
         





               Category
              


              Latest Behaviors
            




               Author
              


              Gavin Kistner
            




               Difficulty
              


              (Reference)
            




               Time to Complete
              


              5 Minutes
            








           Downloads
         


            Click Here
           
           to download the associated files.
         


            (This document covers version 0.9.1 of the 'Billboard' behavior, current as of 2005-Feb-23)
           

            Description
           


             This behavior is primarily useful for simulating a 3D object by using an image map on a flat object, and causing that object to always face the camera as it or the camera moves.
            

             To cause the object to face the correct camera, you must choose the camera which will be rendering the layer with the object, using the
            
              Render Camera
            
             option. You may alternatively choose any other object, to cause the parent of this behavior to face that object.
            

             There are two types of billboarding available:
            



               Face Camera
              
              – the object rotates so that it is always facing the eye point of the camera. The object behaves like a small animal always watching a predator, even if the predator is walking past the animal without looking at it.
              

               
            


               Match Camera Rotation
              
              – the object rotates so that it always faces the same direction as the camera. (Also known as “side-of-the-road” billboarding; as the camera moves past the object, the object will behave like a billboard on the side of the road, showing its edge as the camera goes by. Flat and Depth Text objects use this type of billboarding.)
            


             For both types of billboarding, there is the option to either let the object rotate on all axes (the default) or to only rotate around the global y-axis by using the
            
              Y-Axis Only?
            
             property. For smoke and other particle effects, you likely will want to leave this unchecked. For cases where the object is sitting in the ground (such as a tree), you will want to check this property so that the object does not tilt forward and backward as the camera rises and falls.
            

             By default, this behavior assumes that the ‘front’ of the object is the negative Z side. You may use the
            
              Front Axis
            
             advanced property to change which local axis of the object should be rotated to face the camera.
            

             To cause particles created by the Particle Emitter behavior to billboard, attach this behavior
            
              to the Particle Emitter behavior itself
            
             .
            


            Basic Properties
           



              Render Camera
            

              The camera which will be rendering the scene.
            

              Billboard Type
            

              Always face the camera, or only match its rotation.
            

              Y-Axis Only?
            

              Only rotate the object about the global y-axis?
            



            Advanced Properties
           



              Front Axis
            

              The axis and direction that specifies the 'front' direction of the parent object.
            

              Start Immediately?
            

              Start immediately, or wait for the Enable action to be called?
            



            Actions
           



              Enable
            

              Begin keeping the parent object billboarded.
            

              Disable
            

              Stop rotating the parent object.
            



            Demonstration
           




              View Demonstration Project
            




              Download Project File
            




作者: C.R.CAN    时间: 2012-1-22 23:25
节气交替,温差变幻;天气寒冷,注意流感;多加衣服,适时添穿;不为瘦身,只为保暖;关怀送上,短信祝愿:平安快乐,健康过年!

作者: 奇    时间: 2012-1-31 23:21
新年快乐,龙马精神,万事如意,百尺竿头,恭喜发财,年年有余。

作者: 菜刀吻电线    时间: 2012-4-22 23:20
赞一个,哈哈

作者: tc    时间: 2012-6-8 23:20
加精、加亮滴铁子,尤其要多丁页丁页

作者: C.R.CAN    时间: 2012-7-29 23:20
其实楼主所说的这些,俺支很少用!

作者: 奇    时间: 2012-8-18 00:06
先顶上去,偶要高亮加精鸟!

作者: 晃晃    时间: 2012-9-6 23:38
我是老实人,我来也!

作者: 奇    时间: 2012-11-28 23:19
水……生命之源……灌……

作者: C.R.CAN    时间: 2013-1-26 23:27
不错 非常经典  实用





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5