
Originally Posted by
ak
Welcome.
FYI: RealityServer 3.1 has been released recently (
click here for more information). It comes with a new Web Service API and we would recommend writing your first RealityServer Flex application with version 3.1.
Best regards.
Thanks for your reply.
Here, I must realize the function like bf3 and bf4. In bf3, change the lightColor. Now, my code is
Code:
this.mView.add_command(new Rs_command( Rs_commands.SET_COLOR_ATTRIBUTE, ["spotLight_shader", ... ] ));
and I know there need another "color" parameter,but in flex API, I can't find the correct type. So ,I would like to konw how to write the code let it right?
And the other question is the element "cradle_material_shader" in bf3, if I want to change the materialColor, I need change several parameters such as specularColor,diffuse_color.. So, should I write the code like this :
Code:
this.mView.add_command(new Rs_command( Rs_commands.SET_COLOR_ATTRIBUTE, ["spotLight_shader.specularColor", ... ] ));
Actually, I really want to know whether the Flex API can realize all the functions like the demos(bf1,bf2...)?
Please someone gives me your help. Thanks!