OpenGL render to texture problems

The time 1:52 in the morning and I just had those “OpenGL” moments again! It seems that the nightmare will never end. An other problem with RTT came up. As you know Sylphis3D uses the stencil shadow method, and therefore needs a stencil buffer. Now that I am implementing high dynamic range (HDR) rendering, I need to render the scene to a floating point framebuffer object and not on the screen… guess what… with OpenGL you can’t have a full framebuffer object with color, depth and stencil buffers!!!

The implementation was giving me “incomplete fbo” when depth and stencil was on. I googled around and found that this problem is in fact true! This simple thing is not available for OpenGL! There is an extension (GLEXTpackeddepthstencil) to make it posible and its only implemented by nVidia. I mean for show mercy on us! With this ever stop? I have no clue when is ATI going to support this, so I’m stuck with a non-working HDR impementation.

Ofcource I don’t have to mention that this is standard for D3D, and works the same way for all 3D accelerators!

opengl, directx, fbo, nvidia, ati, sylphis

  • Jon

    This still the case!!?? I was just reading the FBO spec PDF and it was all glowing and happyland about them. I have a multipass volumetric approach that as far as I can tell is going to need a secondary trashable stencil buffer.

  • The “real thing” will require floating point… you can only fake it with fixed point.

    • One thing i believe, whetehr he’s right or wrong, is that his personal info should remain as such, private. Putting up his home address phone number, email and skype addresses on the internet is both dangerous and is simply disgraceful.Just keep this in mind: if any of you did anything as such, the last thing you would want is to have your name and private info put up on the internet for all to see. The past is in the past, and lets move on. He won’t be able to because of this

  • שיפוץ

    קודם כל סקירה חשובה , רוצים בית ולא בחרתם לכם עיצוב העונה לטעם שלכם , תוכלו לקרוא לאנשי מקצוע או עם מעצבי פנים ממגוון התחומים , עיצוב פנים , תכנון בנייה , רהיטי ילדים ונוער ועוד.

  • Hey! I’m at work browsing your blog from my new iphone 4! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the fantastic work!

  • jestescie zajefajni

  • Great post! We are linking to this great article on our site. Keep up the good writing.