Ambiera ForumDiscussions, Help and Support. |
|
[ 1 2 ] Page 2 of 2 |
|
|||||
|
CopperCube API doesn't return mesh data for animated objects... but you can attach your animated object to a cube and make the cube transparent: It's actually the proper way to do this because it's faster than calculating bounding box of a complex animated model and additionally you can have collision |
||||
|
For me it doesn't work. If I choose "transparent (alpha channel)", "transparent (add)" or "transparent fake reflective" in materials of the cube, the cube is still visible Is that a problem because of the mac OS target maybe? |
||||
|
Download this transparent texture http://i.imgur.com/VQ0M59t.png, set as cube material and change type to "Transparent (Alpha channel)". |
||||
|
pk12 thanks again, Now the randomization works perfectly, but there is another big problem: I found that when in before first drawing do somethingt I put these two: Load JavaScript API Wrapper and LoadMyGame, a LOT of things aren't working anymore. For example: when the player is near a scene node, a 2dOverlay should pop up: On proximity do something --> if a variable has a value do something --> execute javascript: var pan = ccbGetSceneNodeFromName('panel');So the problem is that when I load the JS API Wrapper and MyGame, when I go near that scene node, this would appear: CopperCube Debug ConsoleAnd the code above isn't working :( If I delete the Load JS API Wrapper and Load MyGame from before first drawing do somethingt, everything is working fine again. If instead of the code above I use the behaviour Hide or unhide a scene node, everything works, both with API and without. But I have a lot of code like this in my games, so I can't switch to use behaviours everytime instead of coding Is that a problem with my macbook, or is it a limitation of the API Wrapper? |
||||
|
The problem is that the API wrapper assigns unique ID to each node and that ID is stored in node name because currently there's no other way to store custom properties. So if you've a node named "cube", it'll become "cube:::1" and ccbGetSceneNodeFromName won't find it. I've however found a solution to that problem so you won't need to change anything in your code, but it'll take a day or two to implement - I'll let you know when it's ready. |
||||
|
Thanks man... What you are doing will help many coppercubers, great job! |
||||
|
Thanks, I'm glad to help :) I've released new version of the wrapper, please let me know if it solves your problem. |
[ 1 2 ] Page 2 of 2 |
|