ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Example Please
person icon
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.

person icon
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:










 

  

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


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






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