• Advertisement
Sign in to follow this  

A legacy question

This topic is 2489 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, everyone. As you might have noticed, I am new to GameDEV, so if i am posting this in a wrong section or doing anything not as supposed to be done please tell me.
My question is about a function i stumbled on while going through the ARB FBO documentation. The function in question is getRenderBufferImage (). Google yielded no results (apart from the aforementioned site), so i was hoping that someone has heard of it or perhaps even used it. If so, please give me a hint to what it did (as it is no longer supported, i think?).

P.P.: I am asking about this because this specific function i have to include in a report and since no one has heard of it i have hit quite a thick wall.

Share this post


Link to post
Share on other sites
Advertisement
Where exactly did you read about this? From the ARB FBO extension it looks like it never existed at all (was rejected by developers):

[quote]
Features we have rejected include:

* GetRenderbufferImage (benefit/demand does not seem to
outweigh the additional complexity.)
[/quote]

Share this post


Link to post
Share on other sites
[quote name='karwosts' timestamp='1301343879' post='4791472']
Where exactly did you read about this? From the ARB FBO extension it looks like it never existed at all (was rejected by developers):

[quote]
Features we have rejected include:

* GetRenderbufferImage (benefit/demand does not seem to
outweigh the additional complexity.)
[/quote]
[/quote]

It is exactly where i read it. Yet again, they mention demand which would suggest people actually wanted this function to exist. To what purpose?

Share this post


Link to post
Share on other sites
I assume that someone may have wanted a method from which to extract pixel data from a renderbuffer. When drawing to an FBO channel you can either write to a texture or a renderbuffer, both being similar except that a renderbuffer can't be used as a texture, and may be simpler to implement as a tradeoff for not being able to use it as a texture, I'm not really sure.

If you really wanted to render to an FBO and retrieve pixel data, you could just as easily draw to a texture and get the pixels from that, so maybe that's why they decided not to have a dedicated function to retrieve renderbuffer data.

Share this post


Link to post
Share on other sites
Thank you for the quick response. Seems quite logical to remove such a function (or not write it in the first place) so i'll go with that in my repost. Besides, i was considering making up something about pixel data anyway.

Share this post


Link to post
Share on other sites
[quote name='karwosts' timestamp='1301345443' post='4791487']
I assume that someone may have wanted a method from which to extract pixel data from a renderbuffer. When drawing to an FBO channel you can either write to a texture or a renderbuffer, both being similar except that a renderbuffer can't be used as a texture, and may be simpler to implement as a tradeoff for not being able to use it as a texture, I'm not really sure.

If you really wanted to render to an FBO and retrieve pixel data, you could just as easily draw to a texture and get the pixels from that, so maybe that's why they decided not to have a dedicated function to retrieve renderbuffer data.
[/quote]

You don't need to render to a texture and get pixels from the texture.
Render to the render buffer and use glReadPixels.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement