Jump to content

XML:TRAM: Difference between revisions

1,526 bytes added ,  8 October 2023
→‎Motion blur: Explained how motion blur works and added info on how you can have multiple sequences, which is about the only thing you can make any tutorial on, in this otherwise self-explanatory part
(→‎List of tags, types, and flags: Explained motion blur tags based on info in https://wiki.oni2.net/OBD:TRAM/raw0x1C)
(→‎Motion blur: Explained how motion blur works and added info on how you can have multiple sequences, which is about the only thing you can make any tutorial on, in this otherwise self-explanatory part)
Line 957: Line 957:
===Motion blur===
===Motion blur===
[[Image:XML_TRAM_willow_kick_with_motion_blur.jpg|thumb|200px]]
[[Image:XML_TRAM_willow_kick_with_motion_blur.jpg|thumb|200px]]
Motion blur in Oni works much like ghosting/onion skinning features in any animation software: In the frame range specified by <Start> and <End> an additional instance of body parts specified in <Bones> are rendered for additional extra frames specified by <Lifetime>, with transparency set by <Alpha>, and every <Interval> frames within the frame range.
Example snippet from KONCOMcomb_p_p_k:
        <MotionBlur>
            <MotionBlur>
                <Bones>RightThigh RightCalf RightFoot</Bones>
                <Start>20</Start>
                <End>28</End>
                <Lifetime>4</Lifetime>
                <Alpha>127</Alpha>
                <Interval>1</Interval>
            </MotionBlur>
        </MotionBlur>
The one noteworthy thing is that you can have multiple motion blur sequences. If you wanted to add an extra motion blur to the above animation, you could do something like this:
        <MotionBlur>
            <MotionBlur>
                <Bones>LeftThigh LeftCalf LeftFoot</Bones>
                <Start>10</Start>
                <End>18</End>
                <Lifetime>4</Lifetime>
                <Alpha>127</Alpha>
                <Interval>1</Interval>
            </MotionBlur>
            <MotionBlur>
                <Bones>RightThigh RightCalf RightFoot</Bones>
                <Start>20</Start>
                <End>28</End>
                <Lifetime>4</Lifetime>
                <Alpha>127</Alpha>
                <Interval>1</Interval>
            </MotionBlur>
        </MotionBlur>


===Impact effect===
===Impact effect===
191

edits