RCOXML Animations: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 27: Line 27:
**0x4 - starts slow, ends fast
**0x4 - starts slow, ends fast


=(0x09 0x00) AnimTree=
=RCOXML TOC entry types=


==(0x09 0x01) Animation==
==(0x09 0x00) AnimTree==
 
===(0x09 0x01) Animation===
The '''AnimTree''' can have one or more '''Animation''' childrens, and every '''Animation''' can have a list of the childrens listed below
The '''AnimTree''' can have one or more '''Animation''' childrens, and every '''Animation''' can have a list of the childrens listed below


===(0x09 0x02) MoveTo===
====(0x09 0x02) MoveTo====
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 58: Line 60:
|}
|}


===(0x09 0x03) Recolour===
====(0x09 0x03) Recolour====
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 80: Line 82:
|}
|}


===(0x09 0x04) Rotate===
====(0x09 0x04) Rotate====
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 100: Line 102:
|}
|}


===(0x09 0x05) Resize===
====(0x09 0x05) Resize====
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 120: Line 122:
|}
|}


===(0x09 0x06) Fade===
====(0x09 0x06) Fade====
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 136: Line 138:
|}
|}


===(0x09 0x07) Delay===
====(0x09 0x07) Delay====
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 146: Line 148:
|}
|}


===(0x09 0x08) FireEvent===
====(0x09 0x08) FireEvent====
Triggers (or "fires") an event, there are different types of events (see [[RCOXML Coding]]). The most used inside animations are "native events" and "animation events" itself
Triggers (or "fires") an event, there are different types of events (see [[RCOXML Coding]]). The most used inside animations are "native events" and "animation events" itself


Line 160: Line 162:
|}
|}


===(0x09 0x09) Lock===
====(0x09 0x09) Lock====
Disables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_coldboot''', '''anim_coldboot2''', '''anim_gameboot''', and '''anim_otherboot''' animations starts by locking the XMB to dont interfere
Disables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_coldboot''', '''anim_coldboot2''', '''anim_gameboot''', and '''anim_otherboot''' animations starts by locking the XMB to dont interfere


Line 174: Line 176:
|}
|}


===(0x09 0x0A) Unlock===
====(0x09 0x0A) Unlock====
Enables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_gameboot''', and '''anim_otherboot''' animations doesnt unlocks XMB at the ending because when the animation is completed a game/app boots (doesnt returns to XMB)
Enables [[XMB]]. Note in [[Talk:Custom_render_plugin]] how '''anim_gameboot''', and '''anim_otherboot''' animations doesnt unlocks XMB at the ending because when the animation is completed a game/app boots (doesnt returns to XMB)


Line 186: Line 188:
|}
|}


===(0x09 0x0B) SlideOut===
====(0x09 0x0B) SlideOut====
{| class="wikitable"
{| class="wikitable"
|-
|-

Revision as of 02:17, 16 September 2016

Description

RCOXML animations are defined in the XML code embedded inside .rco files. See Resource Container (RCO) and RCOXML Coding

General concepts

Measure units and conversions

Measure units used in RCOXML code
  • XYZ Position, in pixels
  • RGBA Color Scale in percentage in a scale from 0 up to 1, where 1 represents the max value posible of 255 (decimal value divided by 255 to get into this scale)
  • XYZ Size, in pixels, negative numbers mirrors the image
  • XYZ Size Scale, in percentage in a scale from 0 up to 1, negative numbers mirrors the image
  • Time, in miliseconds, where 1000 is one second
  • XYZ Angle, in radians with right-handed rule coordinates, where radians=(π*degrees)/180, and degrees=(180*radians)/π, as example for one turn of 360º degrees: radians=(3.141*360)/180=6.283 ...so... 360º degrees = 6.283 radians

Reference loaders

Template:RCOXML reference loaders

Delays and execution timeline

RCOXML animations delays ---> http://endlessparadigm.com/forum/showthread.php?tid=19501&pid=262236#pid262236

Acceleration modes

  • accelMode. Used to accelerate or decelerate an animation effect, used by most of the animations, posible values are:
    • 0x0 - no accelaration
    • 0x1 - starts fast, ends slow
    • 0x2 -
    • 0x3 -
    • 0x4 - starts slow, ends fast

RCOXML TOC entry types

(0x09 0x00) AnimTree

(0x09 0x01) Animation

The AnimTree can have one or more Animation childrens, and every Animation can have a list of the childrens listed below

(0x09 0x02) MoveTo

Attribute How it works
Name Type PSP icon PS3 icon Examples
object ref Yes Yes PS3 icon object:ps3logo links the animation to an object
duration float Yes Yes 1000
accelMode int Yes Yes 0x0
x float Yes Yes updates the value of attribute PositionX from the animated object
y float Yes Yes updates the value of attribute PositionY from the animated object
z float Yes Yes updates the value of attribute PositionZ from the animated object
unknownInt5 int No Yes either updates SizeX, or is an override ?
unknownInt6 int No Yes either updates SizeY, or is an override ?
unknown7 unk No Yes either updates SizeZ, or is an override ?

(0x09 0x03) Recolour

Attribute How it works
Name Type PSP icon PS3 icon Examples
object ref Yes Yes PS3 icon object:ps3logo links the animation to an object
duration float Yes Yes 1000
accelMode int Yes Yes 0x0
red float Yes Yes updates the value of attribute ColorScaleR from the animated object
green float Yes Yes updates the value of attribute ColorScaleG from the animated object
blue float Yes Yes updates the value of attribute ColorScaleB from the animated object
alpha float Yes Yes updates the value of attribute ColorScaleA from the animated object

(0x09 0x04) Rotate

Attribute How it works
Name Type PSP icon PS3 icon Examples
object ref Yes Yes PS3 icon object:ps3logo links the animation to an object
duration float Yes Yes 1000
accelMode int Yes Yes 0x0
x float Yes Yes
y float Yes Yes
z float Yes Yes

(0x09 0x05) Resize

Attribute How it works
Name Type PSP icon PS3 icon Examples
object ref Yes Yes PS3 icon object:ps3logo links the animation to an object
duration float Yes Yes 1000
accelMode int Yes Yes 0x0
width float Yes Yes updates the value of attribute SizeScaleX from the animated object
height float Yes Yes updates the value of attribute SizeScaleY from the animated object
depth float Yes Yes updates the value of attribute SizeScaleZ from the animated object

(0x09 0x06) Fade

Attribute How it works
Name Type PSP icon PS3 icon Examples
object ref Yes Yes PS3 icon object:ps3logo links the animation to an object
duration float Yes Yes 1000
accelMode int Yes Yes 0x0
transparency float Yes Yes updates the value of attribute ColorScaleA from the animated object

(0x09 0x07) Delay

Attribute How it works
Name Type PSP icon PS3 icon Examples
time float Yes Yes

(0x09 0x08) FireEvent

Triggers (or "fires") an event, there are different types of events (see RCOXML Coding). The most used inside animations are "native events" and "animation events" itself

By triggering an animation event from inside an animation... both animations are played consecutivelly. Also is posible to reload the animation by triggering itself to create an infinite animation loop

Attribute How it works
Name Type PSP icon PS3 icon Examples
event ref Yes Yes

(0x09 0x09) Lock

Disables XMB. Note in Talk:Custom_render_plugin how anim_coldboot, anim_coldboot2, anim_gameboot, and anim_otherboot animations starts by locking the XMB to dont interfere

  • In latest firmwares (where is used coldboot.raf animation) if XMB is not locked + having a dynamic theme applyed the PS3 crashes. Is because inside dynamic themes the background is a .raf animation. Is not posible to play 2 .raf animations together overlapped (from coldboot.raf and from inside a dynamic theme)
Attribute How it works
Name Type PSP icon PS3 icon Examples
unknownInt0 int Yes Yes

(0x09 0x0A) Unlock

Enables XMB. Note in Talk:Custom_render_plugin how anim_gameboot, and anim_otherboot animations doesnt unlocks XMB at the ending because when the animation is completed a game/app boots (doesnt returns to XMB)

Attribute How it works
Name Type PSP icon PS3 icon Examples
unknownInt0 int Yes Yes

(0x09 0x0B) SlideOut

Attribute How it works
Name Type PSP icon PS3 icon Examples
object ref Yes Yes PS3 icon object:ps3logo links the animation to an object
duration float Yes Yes 1000
accelMode int Yes Yes 0x0
xspeed float Yes Yes
yspeed float Yes Yes
xcompress float Yes Yes
ycompress float Yes Yes

example