Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Can someone give me an example of this please? The documentation does not have sample code. ccbRenderToTexture(node, camera, material index, Xresolution, Yresolution) I tried: ccbRenderToTexture("box1", "Camera1", 0, 320, 420) And nothing happened. |
||||
|
instead of "box1" and "camera1" you need to provide actual nodes, you are just providing strings. try providing actual camera and scenenode mesh like this. var s = ccbGetSceneNodeFromName("box); var c = ccbGetSceneNodeFromName("camera1"); ccbRenderToTexture(s,c,0,320,420); this code should work. |
|