Also. How do i animatedly increase/decrease transparency of 3d mesh or 2d overlay
Viewing post in CopperCube - upgraded API's v2 comments
You setup a variable before start as 0 and then update every few ms or whenever you click etc (up to you) in the range of 0 to 1 and apply that For 2D overlays: use 'ccbSetSceneNodeProperty" and property type 'Image Alpha' - ie something like:
ccbSetSceneNodeProperty(node, "Image Alpha", 0-1);
For 3D statiuc mesh use:
ccbSetTransparency3D(node, 0-1);
if you are already using 'Transparent Alpha' material you can also instead just adjust Param1 (0-1) also.
Thanks, what about crouch(change collision shape) for fps cam, when you press E the second time the camera just snaps back to top instead of animatedly just like when you press E firstly and fps cam crouches, is there a fix for that
Also is there a way to disable PP shaders during runtime with js code
If you want to slowly bring back the player from crouch, you will have to adjust its shape over time so that happen as you like more slowly.
To turn off PP shaders (binary method) just set 'Shader_nameOn' to false but with the Action method just set the main variables adjust to 0 and it will not run then -ie for Chromatic abberation, set: Chroma = 0;