Go Back  
Reply
 
Thread Tools
Old 10-08-2011   #1
corwin75
Member
 
corwin75's Avatar
 
Join Date: Sep 2011
Posts: 199
Likes: 38
Liked 129 Times in 52 Posts
Mentioned: 38 Post(s)
Tagged: 0 Thread(s)
TUTORIAL - Make 3d dynamic theme with SDK

Tutorial for make Dynamic theme with SDK (Raf tool) - YouTube

I am not responsible and does not force the download of the PS3 SDK.


XML Command :

<model id="id_model" file="model.dae" vertex_color="" >
<animation id="animation" file="animation.dae" start="1" end="100" sampling_rate="1" />
</model>

<material id="id_material" effect="pure_texture / pure_texture_alpha_0_depth_1 / pure_texture_alpha_1_depth_0 / pure_texture_alpha_0_depth_0 / basic_lighting / basic_lighting_alpha_0 / basic_lighting_edge_lit / basic_lighting_edge_lit_alpha_0 / basic_lighting_alpha_add" >
<texture file="texture.jpg" type="color_map / normal_map / specular_map / tangent_normal_map" />
</material>

<actor id="name" model="id_model" material="id_material" position="x,y,z" rotation="x,y,z" scale="x,y,z" color="r,g,b,a" uv_scale="u,v" uv_offset="u,v" anim_weight="anim0, anim1, anim2, anim3" anim_speed="anim0, anim1, anim2, anim3" anim_time="anim0, anim1, anim2, anim3" />

<camera id="name" file="camera.dae" type="perspective / orthographic" yfov="1" ymag="1" znear="1" zfar="1" position="x,y,z" direction="x,y,z" up="x,y,z" />

<light id="name" file="light.dae" type="ambient / point" color="r,g,b" position="x,y,z" direction="x,y,z" attenuation="1,1,1" />

<script file="script.js" />

----------------------------------------------------------------------------------------------------------------------------------

JS Command :

var name = new Actor("name")
name.position = <x,y,z>
name.rotation = <x,y,z>
name.direction = <x,y,z>
name.up = <x,y,z>
name.scale = <x,y,z>
name.color = <r,g,b,a>
name.uv_scale = <u,v>
name.uv_offset = <u,v>
name.enable = true / false
name.timer[]

var cam = new Camera("name")
cam.position = <x,y,z>
cam.direction = <x,y,z>
cam.up = <x,y,z>
cam.aspect = 1
cam.yfov = 1
cam.ymag = 1

var light = new light("name")
light.position = <x,y,z>
light.direction = <x,y,z>
light.color = <r,g,b,a>
light.attenuation = <1,1,1>

var date = new Date()
var year = date.Year
var month = date.Month
var day = date.Day
var hour = date.Hour
var minute = date.Minute
var second = date.Second

System.timer[0]
System.interval
System.resolution

writeln("hello world")

The animation curve, or the interpolation method between frames in the interval, is specified by using the
arguments interpolation (method) and parameter (interpolation parameters). These arguments are
specified as follows.
• Linear interpolation
interpolation = INTERPOLATION_LINEAR
(parameter is ignored)
• 3-D Bezier interpolation
interpolation = INTERPOLATION_BEZIER

Exemple :
1: var cube = new Actor("cube");
2: cube.setPosition( <0, 1, 2>, 2, INTERPOLATION_LINEAR );
3: cube.setPosition( <10, 10, -1>, 3, INTERPOLATION_BEZIER, <0.4, 0.0, 0.6, 1.0> );

In Line 1, an object with the id attribute "elephant0" is created and substituted for the variable
elephant. (elephant0 is one of the <actor> elements written in the scene file.)
In Line 2, elephant is moved to the position <x, y, z> = <0, 1, 2> over 2 seconds. The positions in the
intermediate frames are calculated through linear interpolation.
In Line 3, elephant is moved to the position <x, y, z> = <10, 10, -1> over 3 seconds. The positions
Pcurrent(s) in the intermediate frames are calculated through Bezier interpolation using the following 3-D
Bezier curve.



-setPosition(position, [time], [interpolation], [parameter] )
Issues a translation to the position specified with position, to be executed over the time specified with
time (seconds).

-setRotation(rotation, [time], [interpolation], [parameter] )
Issues a rotation of the angle specified with rotation, to be executed over the time specified with time
(seconds).

-setDirection(direction, [time], [interpolation], [parameter] )
Issues a turn to face the direction specified with direction, to be executed over the time specified with
time (seconds).

-setUp(up, [time], [interpolation], [parameter] )
Issues a turn to align the up direction with the direction specified with up, to be executed over the time
specified with time (seconds).

-setScale(scale, [time], [interpolation], [parameter] )
Issues a scale change to the scale specified with scale, to be executed over the time specified with time
(seconds).

-setColor(color, [time], [interpolation], [parameter] )
Issues a color change to the color specified with color, to be executed over the time specified with time
(seconds).

-setUVScale(uv_scale, [time], [interpolation], [parameter] )
Issues a scale change to the scale of the texture coordinates specified with uv_scale, to be executed over
the time specified with time (seconds).

-setUVOffset(uv_offset, [time], [interpolation], [parameter] )
Issues a change to the offset of the texture coordinates specified with uv_offset, to be executed over the
time specified with time (seconds).

-setAnimWeight(index, weight, [time], [interpolation], [parameter])
Issues a change to the blend weights specified with weight, to be executed over the time specified with
time (seconds), for the animation specified with index

-setAnimSpeed(index, speed, [time], [interpolation], [parameter])
Issues a change to the speed specified with speed, to be executed over the time specified with time
(seconds), for the animation specified with index

-setAnimTime(index, current)
Issues a change to the time specified with current, for the animation specified with index

-getAnimWeight(index)
Returns the blend weights of the animation specified with index

-getAnimSpeed(index)
Returns the speed of the animation specified with index

-getAnimTime(index)
Returns the time of the animation specified with index

-getAnimIndex(id)
Returns the index of the animation with the id attribute specified with id
Attached Files
File Type: txt Commande XML.txt (1.1 KB, 18 views)
File Type: txt Commande JS.txt (787 Bytes, 17 views)

Last edited by corwin75; 11-30-2011 at 04:36 PM.
corwin75 is offline   Reply With Quote
Old 10-08-2011   #2
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,839
Likes: 1,008
Liked 811 Times in 477 Posts
Mentioned: 160 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
This is great unfortunately I can't understand it lol, I only understand English, curse my ignorance.
PS: what a strange resolution you have...1920x1160?
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!

Last edited by TizzyT; 10-08-2011 at 07:22 AM.
TizzyT is offline   Reply With Quote
Old 10-08-2011   #3
corwin75
Member
 
corwin75's Avatar
 
Join Date: Sep 2011
Posts: 199
Likes: 38
Liked 129 Times in 52 Posts
Mentioned: 38 Post(s)
Tagged: 0 Thread(s)
agree I will translate it into English. I am in 1920 * 1200 on the first screen and 1280 * 1024 on the second.
corwin75 is offline   Reply With Quote
Old 10-08-2011   #4
a100miles2go
Member
null
 
Join Date: Sep 2011
Posts: 44
Likes: 5
Liked 10 Times in 5 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Nice going with the tutorial

If you can't make something in maya and want some sample models you could look for 3D models on google 3D warehouse.
http://sketchup.google.com/3dwarehouse/ not all models are Collada format.
a100miles2go is offline   Reply With Quote
Likes: (1)
Old 10-08-2011   #5
zembor0
Member
 
Join Date: May 2010
Posts: 63
Likes: 4
Liked 32 Times in 10 Posts
Mentioned: 3 Post(s)
Tagged: 0 Thread(s)
Nice tutorial, i could follow it, but it would be nice for some more info on the xml and js file. Looking forward to your program.
zembor0 is offline   Reply With Quote
Old 10-08-2011   #6
corwin75
Member
 
corwin75's Avatar
 
Join Date: Sep 2011
Posts: 199
Likes: 38
Liked 129 Times in 52 Posts
Mentioned: 38 Post(s)
Tagged: 0 Thread(s)
The translation is finished

Originally Posted by zembor0 View Post
Nice tutorial, i could follow it, but it would be nice for some more info on the xml and js file. Looking forward to your program.
I'm doing a list of commands
corwin75 is offline   Reply With Quote
Old 10-08-2011   #7
TizzyT
Homebrew Developer
 
TizzyT's Avatar
 
Join Date: Jul 2011
Location: USA-Unfortunately Sucks A$$
Posts: 1,839
Likes: 1,008
Liked 811 Times in 477 Posts
Mentioned: 160 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to TizzyT
Originally Posted by corwin75 View Post
The translation is finished



I'm doing a list of commands
OMG thank you.
__________________
If you are going to promote TB at least do it right!!!, or better yet DON'T!!!
TizzyT is offline   Reply With Quote
Likes: (1)
Old 10-08-2011   #8
alienkid
Senior Member
 
alienkid's Avatar
 
Join Date: Feb 2011
Location: Hovering over your home.
Posts: 2,369
Likes: 1,310
Liked 803 Times in 572 Posts
Mentioned: 78 Post(s)
Tagged: 0 Thread(s)
Originally Posted by corwin75 View Post
The translation is finished



I'm doing a list of commands
I can't tell ya Thanks enough @corwin75 !

Nice Job!
__________________
alienkid is offline   Reply With Quote
Likes: (1)
Old 10-08-2011   #9
corwin75
Member
 
corwin75's Avatar
 
Join Date: Sep 2011
Posts: 199
Likes: 38
Liked 129 Times in 52 Posts
Mentioned: 38 Post(s)
Tagged: 0 Thread(s)
Update : XML and JS Command but not finished
corwin75 is offline   Reply With Quote
Old 10-09-2011   #10
carldenning
Senior Member
 
Join Date: Jun 2009
Posts: 5,127
Likes: 1,880
Liked 1,791 Times in 1,171 Posts
Mentioned: 220 Post(s)
Tagged: 0 Thread(s)
hiya im stuck im tried to make a raf but it comes up as failed : unsupported no rsx only vertices model , what does that mean and how would i sort it out please
carldenning is online now   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 11:57 AM.