ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Help with CopperCube
forum topic indicator ccbRenderToTexture
person icon
ArchAngel
Guest
Quote
2025-01-26 23:57:41

Hey, guys im currently underway working on an extension for vr, and im making some real progress. But i im having an issue because im trying to find a way to render the entire scene as a texture and then send those textures to a file. i currently have two cube nodes that the textures will be rendered on then sent to a file. I have already made an extension that is accomplishing this but its only sending the cube nodes texture. And i tried using the camera's texure but they apparently dont have any. any ideas?

person icon
okeoke
Registered User
Quote
2025-01-27 08:51:49

Have you tried ccbSaveTexture something that you're looking for?

https://www.ambiera.com/coppercube/doc/cnt_javascriptref.htmlPUT_HASH_HEREccbSaveTexture

person icon
guest_guest
Guest
Quote
2025-01-27 09:58:27

???

https://vazahat.itch.io/screen-shaders

person icon
just_in_case
Moderator
Quote
2025-01-27 12:07:25

ccbRenderToTexture() Commands might not work properly with the SaveTexture command. It's probably because the RTT texture gets removed in the same command to prevent memory overflow. You need to edit the source code or use custom binaries that will save the RTT texture and let it stay in the memory, or customize it so that it will save the rendered texture onto the disk, every time it renders it. Be sure to do memory management if you are going to customize the RTT command.


Edit:- you can simply use the command ccbSaveScreenshot() in order to save the screenshot that is equivalent to RTT, if you want. In case of multiple camera views, you need to switch the camera and capture screenshot.

person icon
ArchAngel
Guest
Quote
2025-01-27 19:18:30

Hey, thanks all of you! With your help I was able to get it down packed. Will make more posts as it’s developed.


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 |