Jump to content

View more

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Render to texture while reading from existing framebuffer

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 JohnOwens   Members   

136
Like
0Likes
Like

Posted 21 May 2013 - 04:55 PM

Is this possible?

 

What I'm looking to do is render a load of particles into a texture however still using the framebuffer's zbuffer which hasn't been cleared and then composite that with the main color framebuffer (which already has the scene rendered into it).
 

I've tried just not attaching the depth component to the FBO but that didn't work.

 

Or do I need to render the scene to a rtt, copy it's depth texture into the particles rtt depth texture and then render into the particles rtt?

 

Thanks



#2 BornToCode   Members   

1185
Like
0Likes
Like

Posted 21 May 2013 - 11:45 PM

Your depth buffer need to be attached as part of your FBO. Once you bind an FBO it is like your default depth buffer doesn't exist and all render takes place only on the FBO until it is unbind.



#3 JohnOwens   Members   

136
Like
0Likes
Like

Posted 22 May 2013 - 05:13 AM

Thanks I was beginning to suspect that :-)






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.