Editing Coldboot.raf

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 35: Line 35:
{| class="wikitable" style="font-size:x-small;"
{| class="wikitable" style="font-size:x-small;"
|+coldboot.raf contents
|+coldboot.raf contents
! rowspan=2 style="border-left:hidden; border-top:hidden; background:#fff" | !! colspan=2 | Original File !! rowspan=2 | {{arrowr}}<br>Converter !! colspan=2 | Converted File !! rowspan=2 | File Index !! rowspan=2 | Notes
! rowspan=2 | Usage !! rowspan=2 | File Index !! colspan=2 | Converted File !! rowspan=2 | Converter !! colspan=2 | Original File !! rowspan=2 | Notes
|-
|-
! Name !! MD5 !! Name !! MD5
! Name !! MD5 !! Name !! MD5
|-{{cellcolors|#fcc}}
|-{{cellcolors|#fcc}}
! Scene
! Scene
| coldboot.xml || {{cellcolors|lightgrey|black|center}} vary with coding style, use:<br>[[Coldboot.raf#Scene | wiki sample]] || raf_compiler.exe<br>raf_compiler.inf<br><abbr title="C:\workdir&gt;raf_pack.exe coldboot.sxml">raf_pack.exe</abbr> || coldboot.sxml || {{cellcolors|lightgrey|black|center}} vary with compiler version || {{cellcolors|lightgrey}} metadata || The original scene coldboot.xml is converted to coldboot.sxml and then embedded inside [[CXML_Containers | RAF]] structure as metadata
| {{cellcolors|lightgrey}} metadata || coldboot.sxml || {{cellcolors|lightgrey}} vary with compiler/extractor version || raf_compiler.exe<br>raf_compiler.inf<br>raf_pack.exe || coldboot.xml || {{cellcolors|lightgrey}} vary with coding style || The original scene coldboot.xml is converted to coldboot.sxml and then embedded inside [[CXML_Containers | RAF]] structure as metadata
|-
|-
! rowspan=2 | Model
! rowspan=2 | Model
| rowspan="2" | plane.dae || rowspan="2" style="font-family:monospace" {{cellcolors|lightgrey|black|center}} <abbr title="cell/samples/util/theme/raf_photo/raf/plane.dae (by daigo, 2008-12-15, Maya2008, ColladaMaya v3.05B)">024198CC37C2648AF7B68C9048715C04</abbr><br>or any other MD5<br>(vary with collada settings) || <abbr title="C:\workdir&gt;raf_geom.exe plane.dae plane.edge">raf_geom.exe</abbr> || plane.edge || style="font-family:monospace" | AC3AA7B2AE225DD1C2BB207ADDD4C2CB || 0 || A polygonal 3D object composed by <abbr title="The geometry is not optimized, there are several vertexes overlapped. raf_geom.exe displays a compilation warning: Merging identical vertexes...20 (out of 56) vertexes removed">16 vertexes and 18 triangles</abbr>
| 0 || plane.edge || style="font-family:monospace" | AC3AA7B2AE225DD1C2BB207ADDD4C2CB || <abbr title="C:\workdir&gt;raf_geom.exe plane.dae plane.edge">raf_geom.exe</abbr> || rowspan="2" | plane.dae || rowspan="2" {{cellcolors|lightgrey}} vary with collada settings || A polygonal 3D object, composed by 4 vertex at the corners of the screen
|-
|-
| <abbr title="C:\workdir&gt;raf_anim.exe -skel plane.dae plane.skel">raf_anim.exe</abbr> || plane.skel || style="font-family:monospace" | 67409457645F98B0066B52317BF4CB78 || 1 || The skeleton of the 3D object, composed by a single joint point, needed by all the animations
| 1 || plane.skel || style="font-family:monospace" | 67409457645F98B0066B52317BF4CB78 || <abbr title="C:\workdir&gt;raf_anim.exe -skel plane.dae plane.skel">raf_anim.exe</abbr> || The skeleton of the 3D object, composed by a single joint point, needed by all the animations
|-
|-
! rowspan=6 | Textures
! rowspan=6 | Textures
| new_logo.dds || style="font-family:monospace" | A4AF73E19F8E07542C5FA3DA39C21967 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo.gtf new_logo.dds">dds2gtf.exe</abbr> || new_logo.gtf || style="font-family:monospace" | 6BEEA65407EE1513F08F66E17BBADF61 || 2 || 700x350 pixels, the main logo (without the "copyright", "trademark" and "playstation3" text)
| 2 || new_logo.gtf || style="font-family:monospace" | 6BEEA65407EE1513F08F66E17BBADF61 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo.gtf new_logo.dds">dds2gtf.exe</abbr> || new_logo.dds || style="font-family:monospace" | A4AF73E19F8E07542C5FA3DA39C21967 || 700x350 pixels, the main logo (without the "copyright", "trademark" and "playstation3" text)
|-
|-
| new_logo_footer.dds || style="font-family:monospace" | ABFE60993D102E39926035D9DEA4CFEC || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_footer.gtf new_logo_footer.dds">dds2gtf.exe</abbr> || new_logo_footer.gtf || style="font-family:monospace" | 5E27DFBB474A2AB5A07A91143C8C8054 || 3 || 700x350 pixels, the "copyright", "trademark" and "playstation3" text
| 3 || new_logo_footer.gtf || style="font-family:monospace" | 5E27DFBB474A2AB5A07A91143C8C8054 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_footer.gtf new_logo_footer.dds">dds2gtf.exe</abbr> || new_logo_footer.dds || style="font-family:monospace" | ABFE60993D102E39926035D9DEA4CFEC || 700x350 pixels, the "copyright", "trademark" and "playstation3" text
|-
|-
| new_logo_blur.dds || style="font-family:monospace" | DE871FB0A8ACBD92CEC267816C072C14 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_blur.gtf new_logo_blur.dds">dds2gtf.exe</abbr> || new_logo_blur.gtf || style="font-family:monospace" | 49E30C3B46BE3B822324EB373EEF5A9C || 4 || 700x350 pixels, a blurry copy of logo+footer together
| 4 || new_logo_blur.gtf || style="font-family:monospace" | 49E30C3B46BE3B822324EB373EEF5A9C || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_blur.gtf new_logo_blur.dds">dds2gtf.exe</abbr> || new_logo_blur.dds || style="font-family:monospace" | DE871FB0A8ACBD92CEC267816C072C14 || 700x350 pixels, a blurry copy of logo+footer together
|-
|-
| new_logo_sd.dds || style="font-family:monospace" | 2B4B56CFFA2A3E3BA868DC56A7F2917C || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_sd.gtf new_logo_sd.dds">dds2gtf.exe</abbr> || new_logo_sd.gtf || style="font-family:monospace" | ED30E47123D3D68B846DDAC1EBDBDA65 || 5 || 240x120 pixels, the main logo (without the "copyright", "trademark" and "playstation3" text)
| 5 || new_logo_sd.gtf || style="font-family:monospace" | ED30E47123D3D68B846DDAC1EBDBDA65 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_sd.gtf new_logo_sd.dds">dds2gtf.exe</abbr> || new_logo_sd.dds || style="font-family:monospace" | 2B4B56CFFA2A3E3BA868DC56A7F2917C || 240x120 pixels, the main logo (without the "copyright", "trademark" and "playstation3" text)
|-
|-
| new_logo_sd_footer.dds || style="font-family:monospace" | B2718D07AB4B6714240F591D00237639 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_sd_footer.gtf new_logo_sd_footer.dds">dds2gtf.exe</abbr> || new_logo_sd_footer.gtf || style="font-family:monospace" | 4037567A9F5ED59D6E96402FA2859ABC || 6 || 240x120 pixels, the "copyright", "trademark" and "playstation3" text
| 6 || new_logo_sd_footer.gtf || style="font-family:monospace" | 4037567A9F5ED59D6E96402FA2859ABC || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_sd_footer.gtf new_logo_sd_footer.dds">dds2gtf.exe</abbr> || new_logo_sd_footer.dds || style="font-family:monospace" | B2718D07AB4B6714240F591D00237639 || 240x120 pixels, the "copyright", "trademark" and "playstation3" text
|-
|-
| new_logo_sd_blur.dds || style="font-family:monospace" | FF32C90F34FB350C34F58800F69318DB || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_sd_blur.gtf new_logo_sd_blur.dds">dds2gtf.exe</abbr> || new_logo_sd_blur.gtf || style="font-family:monospace" | 5821260B17B0A5BDD85D0F2BEE9596D0 || 7 || 240x120 pixels, a blurry copy of logo+footer together
| 7 || new_logo_sd_blur.gtf || style="font-family:monospace" | 5821260B17B0A5BDD85D0F2BEE9596D0 || <abbr title="C:\workdir&gt;dds2gtf.exe -o new_logo_sd_blur.gtf new_logo_sd_blur.dds">dds2gtf.exe</abbr> || new_logo_sd_blur.dds || style="font-family:monospace" | FF32C90F34FB350C34F58800F69318DB || 240x120 pixels, a blurry copy of logo+footer together
|-
|-
! Script
! Script
| coldboot.js || {{cellcolors|lightgrey|black|center}} vary with coding style, use:<br>[[Coldboot.raf#Script | wiki sample]] || <abbr title="C:\workdir&gt;raf_script.exe coldboot.js coldboot.jsx">raf_script.exe</abbr> || coldboot.jsx || style="font-family:monospace" | 5461466B242D81B57D872BBA95EED753 || 8 || Animation script, written in [[PlayStation JavaScript]] and converted to [[VSMX#VSMX_Decompilation_sample | VSMX]] format
| 8 || coldboot.jsx || style="font-family:monospace" | 5461466B242D81B57D872BBA95EED753 || <abbr title="C:\workdir&gt;raf_script.exe coldboot.js coldboot.jsx">raf_script.exe</abbr> || coldboot.js || {{cellcolors|lightgrey}} vary with coding style || Animation script, written in [[PlayStation JavaScript]] and converted to [[VSMX#VSMX_Decompilation_sample | VSMX]] format
|}
|}


Line 75: Line 75:
   
   
<raf>
<raf>
     <model id="plane" file="plane.dae"/>
     <model id="plane" file="plane.dae" />


     <material id="mtrl_logo" effect="sce01">
     <material id="mtrl_logo"                       effect="sce01" >
         <texture file="new_logo.dds"/>
         <texture file="new_logo.dds"              type="color_map" />
     </material>
     </material>
     <material id="mtrl_footer" effect="sce01">
     <material id="mtrl_footer"                     effect="sce01" >
         <texture file="new_logo_footer.dds"/>
         <texture file="new_logo_footer.dds"        type="color_map" />
     </material>
     </material>
     <material id="mtrl_blur" effect="sce01">
     <material id="mtrl_blur"                       effect="sce01" >
         <texture file="new_logo_blur.dds"/>
         <texture file="new_logo_blur.dds"          type="color_map" />
     </material>
     </material>
     <material id="mtrl_logo_sd" effect="sce01">
     <material id="mtrl_logo_sd"                   effect="sce01" >
         <texture file="new_logo_sd.dds"/>
         <texture file="new_logo_sd.dds"            type="color_map" />
     </material>
     </material>
     <material id="mtrl_footer_sd" effect="sce01">
     <material id="mtrl_footer_sd"                 effect="sce01" >
         <texture file="new_logo_sd_footer.dds"/>
         <texture file="new_logo_sd_footer.dds"    type="color_map" />
     </material>
     </material>
     <material id="mtrl_blur_sd" effect="sce01">
     <material id="mtrl_blur_sd"                   effect="sce01" >
         <texture file="new_logo_sd_blur.dds"/>
         <texture file="new_logo_sd_blur.dds"      type="color_map" />
     </material>
     </material>


     <actor id="logo"      model="plane" material="mtrl_logo"      position="1.85, 0, 0"      rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0"/>
     <actor id="logo"      model="plane" material="mtrl_logo"      position="1.85, 0, 0"      rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0" />
     <actor id="footer"    model="plane" material="mtrl_footer"    position="1.85, 0, 0.0001" rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0"/>
     <actor id="footer"    model="plane" material="mtrl_footer"    position="1.85, 0, 0.0001" rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0" />
     <actor id="blur"      model="plane" material="mtrl_blur"      position="1.85, 0, 0.001"  rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0"/>
     <actor id="blur"      model="plane" material="mtrl_blur"      position="1.85, 0, 0.001"  rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0" />
     <actor id="logo_sd"  model="plane" material="mtrl_logo_sd"  position="1.85, 0, 0"      rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0"/>
     <actor id="logo_sd"  model="plane" material="mtrl_logo_sd"  position="1.85, 0, 0"      rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0" />
     <actor id="footer_sd" model="plane" material="mtrl_footer_sd" position="1.85, 0, 0.0001" rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0"/>
     <actor id="footer_sd" model="plane" material="mtrl_footer_sd" position="1.85, 0, 0.0001" rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0" />
     <actor id="blur_sd"  model="plane" material="mtrl_blur_sd"  position="1.85, 0, 0.001"  rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0"/>
     <actor id="blur_sd"  model="plane" material="mtrl_blur_sd"  position="1.85, 0, 0.001"  rotation="1.570796, 0, 0" scale="1.28, 0.64, 0.64" color="1, 1, 1, 1" uv_scale="1, -1" uv_offset="0, 0" anim_weight="1, 0, 0, 0" anim_speed="1, 1, 1, 1" anim_time="0, 0, 0, 0" />


     <camera id="camera" type="perspective" yfov="0.927292" ymag="0" znear="0.01" zfar="1000" position="0, 0, 4" direction="0, 0, -2" up="0, 1, 0"/>
     <camera id="camera" type="perspective" yfov="0.927292" ymag="0" znear="0.01" zfar="1000" position="0, 0, 4" direction="0, 0, -2" up="0, 1, 0" />


     <light id="pointlight"  type="point"  color="1, 1, 1" position="0, 1, 0" attenuation="0, 1, 4"/>
     <light id="pointlight"  type="point"  color="1, 1, 1" position="0, 1, 0" attenuation="0, 1, 4" />
     <light id="ambientlight" type="ambient" color="0, 0, 0"/>
     <light id="ambientlight" type="ambient" color="0, 0, 0" />


     <script file="coldboot.js"/>
     <script file="coldboot.js" />
</raf>
</raf>
</syntaxhighlight>}}
</syntaxhighlight>}}
Line 144: Line 144:


{{Boxcode|title=coldboot.js|code=<syntaxhighlight lang="javascript">
{{Boxcode|title=coldboot.js|code=<syntaxhighlight lang="javascript">
var logo_hd = new Actor("logo");       // HD logo texture (initial attributes inherited from coldboot.xml:  color="1, 1, 1, 1" position="1.85, 0, 0"     scale="1.28,0.64,0.64")
var logo_hd = new Actor("logo");                       // HD logo texture (initial attributes inherited from coldboot.xml:  color="1.0,1.0,1.0,1.0" position="1.85,0.0,0.0"   scale="1.28,0.64,0.64")
var blur_hd = new Actor("blur");       // HD blur texture (initial attributes inherited from coldboot.xml:  color="1, 1, 1, 1" position="1.85, 0, 0.001"  scale="1.28,0.64,0.64")
var blur_hd = new Actor("blur");                       // HD blur texture (initial attributes inherited from coldboot.xml:  color="1.0,1.0,1.0,1.0" position="1.85,0.0,0.001"  scale="1.28,0.64,0.64")
var footer_hd = new Actor("footer");   // HD footer texture (initial attributes inherited from coldboot.xml: color="1, 1, 1, 1" position="1.85, 0, 0.0001" scale="1.28,0.64,0.64")
var footer_hd = new Actor("footer");                   // HD footer texture (initial attributes inherited from coldboot.xml: color="1.0,1.0,1.0,1.0" position="1.85,0.0,0.0001" scale="1.28,0.64,0.64")
var logo_sd = new Actor("logo_sd");     // SD logo texture (initial attributes inherited from coldboot.xml:  color="1, 1, 1, 1" position="1.85, 0, 0"     scale="1.28,0.64,0.64")
var logo_sd = new Actor("logo_sd");                     // SD logo texture (initial attributes inherited from coldboot.xml:  color="1.0,1.0,1.0,1.0" position="1.85,0.0,0.0"   scale="1.28,0.64,0.64")
var blur_sd = new Actor("blur_sd");     // SD blur texture (initial attributes inherited from coldboot.xml:  color="1, 1, 1, 1" position="1.85, 0, 0.001"  scale="1.28,0.64,0.64")
var blur_sd = new Actor("blur_sd");                     // SD blur texture (initial attributes inherited from coldboot.xml:  color="1.0,1.0,1.0,1.0" position="1.85,0.0,0.001"  scale="1.28,0.64,0.64")
var footer_sd = new Actor("footer_sd"); // SD footer texture (initial attributes inherited from coldboot.xml: color="1, 1, 1, 1" position="1.85, 0, 0.0001" scale="1.28,0.64,0.64")
var footer_sd = new Actor("footer_sd");                 // SD footer texture (initial attributes inherited from coldboot.xml: color="1.0,1.0,1.0,1.0" position="1.85,0.0,0.0001" scale="1.28,0.64,0.64")
var camera = new Camera("camera");     // Camera
var camera = new Camera("camera");                     // Camera
var light = new Light("pointlight");   // Light (initial attributes inherited from coldboot.xml:            color="1, 1, 1"   position="0, 1, 0"         attenuation="0, 1, 4")
var light = new Light("pointlight");                   // Light (initial attributes inherited from coldboot.xml:            color="1.0,1.0,1.0"     position="0.0,1.0,0.0" attenuation="0.0,1.0,4.0")


var first_wait = 1.5;                                                                                              // timer[0] wait gap (used to calculate timer[0] delay)
var first_wait = 1.5;                                                                                              // timer[0] wait gap (used to calculate timer[0] delay)
Line 196: Line 196:
         footer.scale = sd_scale;                                                                                    // footer scale x=1.0 y=0.5 z=0.5
         footer.scale = sd_scale;                                                                                    // footer scale x=1.0 y=0.5 z=0.5
     } else { // Else camera aspect ratio is different than 4:3 (used by 480p and 480i NTSC video modes) displace and scale SD textures
     } else { // Else camera aspect ratio is different than 4:3 (used by 480p and 480i NTSC video modes) displace and scale SD textures
         sd_offset_x = 2.0;                                                                                         // local variable used for texture displacements in x axis
         var sd_offset_x = 2.0;                                                                                     // local variable used for texture displacements in x axis
         logo.position->0 = sd_offset_x;                                                                            // logo position x=2.0
         logo.position->0 = sd_offset_x;                                                                            // logo position x=2.0
         blur.position->0 = sd_offset_x;                                                                            // blur position x=2.0
         blur.position->0 = sd_offset_x;                                                                            // blur position x=2.0
         footer.position->0 = sd_offset_x;                                                                          // footer position x=2.0
         footer.position->0 = sd_offset_x;                                                                          // footer position x=2.0
         sd_scale = <1.0, 0.5, 0.5>;                                                                                 // local variable used for textures scale in x,y,z axis
         var sd_scale = <1.0, 0.5, 0.5>;                                                                             // local variable used for textures scale in x,y,z axis
         logo.scale = sd_scale;                                                                                      // logo scale x=1.0 y=0.5 z=0.5
         logo.scale = sd_scale;                                                                                      // logo scale x=1.0 y=0.5 z=0.5
         blur.scale = sd_scale;                                                                                      // blur scale x=1.0 y=0.5 z=0.5
         blur.scale = sd_scale;                                                                                      // blur scale x=1.0 y=0.5 z=0.5
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)