ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > Programming and Scripting
forum topic indicator Force render state
person icon
guest_Sam
Guest
Quote
2025-03-05 05:49:26

I was trying to use render to texture to do multipass render.
is there anyway to force it to render the scene or hide certain nodes from one camera and not another?

hadoken will know what I'm trying to do,

like in blitz3d, set the texture buffer
render the scene
change the scene (with lighting or textures ect
texture a quad in front of the camera and blend it
(or if using fastext just project the texture onto the scene
render the scene in the normal backbuffer.



what i was actually trying to do what make a fake (low quality) depth buffer render (using fog and alpha planes in front of the camera) to feed to a ambient occlusion shader.

just for fun , not all that important.

Sam

person icon
sam_grady
Registered User
Quote
2025-03-05 08:15:52

As for hiding a specific node from rendering - just place it inside the node you're rendering the texture to. The ccbRenderToTexture function works in a way that hides the target node while rendering the texture. This allows you to hide different nodes during the render pass.

But as for the rest, I didn’t quite get what you meant...

If you’re talking about depth rendering or similar effects, it's better to use the source code and a custom binary for that.
embedded external image
🔎︎


person icon
hadoken
Registered User
Quote
2025-03-05 12:56:53

Sounds interesting @guest_Sam, how about checking node positions against something like pre-defined node-cam distance layers or cam target culling (bounding boxes)?
Cheers.


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 |