Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Example Please

Chester
Guest
Quote
2023-03-19 19:21:05

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.


Aiming_bullets
Guest
Quote
2023-03-19 20:46:17

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inte?national" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact