Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

162 Neutral

About TheGibberingFool

  • Rank
  1. TheGibberingFool

    MRT using GL_RGB*16F_ARB

    Oops, never mind! I wasn't un-attaching my render textures after rendering the scene, and then I re-used the framebuffer object later to render to the main pass. Why it worked with GL_RGBA I don't know. I'll leave the post here in case anyone else is as silly as I am. -------- Hi guys and gals, I'm having a problem with using MRTs with unclamped FBOs. I have three targets, similar to this gentleman here. Unfortunately that's where the similarities end, as all of my targets appears black. I have bound the targets to COLOUR_ATTACHMENTs 0 to 2, and I have tested that this works using GL_RGB buffers. Everything appears fine. However, as soon as I switch my targets to GL_RGB16F_ARB, every buffer is black. What's driving me crazy is that I know that they should work, as Kazade has screenshots of it in his post. Can anyone shed some light on this? Thanks in advance! Some code: // Bind the framebuffer m_FrameBuffer->Begin(); glClearColor( 1, 1, 1, 1 ); // Clear the buffer glClear( GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT ); // Bind the depth buffer m_Buffers->depth->Attach( GL_DEPTH_ATTACHMENT_EXT ); // Bind the colour buffers // This is basically: glFramebufferTexture2DEXT( GL_FRAMEBUFFER_EXT, attachment, GL_TEXTURE_2D, m_TextureID, 0 ); m_Buffers->main->Attach( GL_COLOR_ATTACHMENT0_EXT ); m_Buffers->positions->Attach( GL_COLOR_ATTACHMENT1_EXT ); m_Buffers->normals->Attach( GL_COLOR_ATTACHMENT2_EXT ); int code; if ( !m_FrameBuffer->IsComplete( &code ) ) Cali::Log() << "Framebuffer incomplete: " << Cali::FrameBufferError( code ) << "\n"; // Set up the draw buffers GLenum buffers[] = { GL_COLOR_ATTACHMENT0_EXT, GL_COLOR_ATTACHMENT1_EXT, GL_COLOR_ATTACHMENT2_EXT }; glDrawBuffers( 3, buffers ); [Edited by - TheGibberingFool on May 1, 2007 9:42:24 AM]
  2. TheGibberingFool

    how to render living cell ?

    Google for something called "cellular automata". That might help.
  3. TheGibberingFool

    Help implementing render by parts

    Hi, I'd suggest this: 1) Create a binary file and write the headers* 2) Render a part, say a single scanline or whatever... 3) Open the file in append mode 4) Write the part and close the file 5) Repeat 2-4 until you've rendered the whole image Hope that helps, or were you thinking of something else? * So if if you were using TGAs you'd write the headers detailing the dimensions and colour depth in TGA header format, for example. [Edit:] Obviously writing straight out to a proper image format is probably a bad idea. What you should do is save the actual floating point data to a temporary file instead. You should use this data after the whole image is rendered so you can do accurate post-processes such as tone-mapping.
  4. Holy crap, that guy is the KING of Blaggers. It's just as well he wasn't English or he'd never been able to blag so well... Amazing. And his face was *priceless*.
  5. TheGibberingFool

    Grabbing a Matrix from GL

    You rock <3
  6. TheGibberingFool

    Photon Map Power Scaling

    I just use trial and error. ;) Before I'm accused of being a lamer, sometimes I do find it's useful to have an intensity value that you can change per-scene. I occasionally find that when entering photon intensity values for a light source that the light doesn't propagate into an area as much as I'd like, yet a different source will be quite bright, so I generally like to try and balance these out. I spent ages trying different ways of scaling the final value, but I ended up going with what looked nicest. This happened to be Jensen's way for me, but it could be different depending on the way you're casting/gathering your photons.
  7. Hey, Is there any way to retrieve a matrix from OpenGL, by any chance? At the moment I'm using several calls to glMultMatrix to concatenate animation data on the GPU, but I've reached a point where I need to know the contents of it. The glMultMatrix calls are made at various points at initialisation and it would be irritating to have to rewrite a load of it. Also, I'm trying to perform as much as possible on the GPU, for obvious reasons. Obviously I considered removing the many glMultMatrix calls and use my own matrix class on the CPU and pass it around, but that seems not only a waste of time but also messy. If there's no way to do it though I guess that's how it has to be :) Any ideas chaps? Cheers, Peter
  8. TheGibberingFool

    Second year of Uni, Optional Choices

    ^^^^ Agreed. I forgot to mention algebra. It's important that you are able to read and understand equations that would scare the crap out of "normal" people. It's also important that you're able to write it, sometimes.
  9. TheGibberingFool

    Second year of Uni, Optional Choices

    If you get anything less than a B in Graphical Maths I wouldn't even think about it. The next year of rendering and stuff is going to be very painful otherwise. HOWEVER: If you get vectors and matrices pretty well, you might be OK. Learn these two things to DEATH, even if that means barely learning the rest of your Graphical Maths stuff. The rest of the maths will probably come to you naturally as you slave away at your Rendering module next year, so even if you don't get a B or higher in Graphical Maths you might survive. The reason I say this is because the lecturers in year 2 don't trust the lecturers in year 1 to do a very good job at teaching maths. This is because they don't. First year is basically a "doss year" at Teesside, to ease students into University life. Other Universities actually run a "getting used to Uni life" module (seriously!) whereas Teesside takes the "lets only give them a tiny amount of work" route instead. So, that said, in second year they will teach you 75% of what you learned in first year all over again only better. If you expect second year to like the first but slightly harder, YOU ARE GOING TO DIE. :P /Edit: If it makes you feel any better, I got a B in graphical maths, yet I seriously thought I was rubbish at maths.
  10. TheGibberingFool

    Is it physically possible...

    Yours is fine. I just find the "Love Guru" stuff hilarious. I'll be honest, yours is nowhere near as big as some of the people I know in my year. They have heads so large that you have to get a ladder to see their new haircut.
  11. TheGibberingFool

    Is it physically possible...

    Actually no, Asheh is a friend of mine :) Despite this, I do generally like to mock him because of his enormous ego. You only need to look at his signature to see some evidence. *grin* /Edit: OK, so he's removed his sig. Never mind. I haven't logged on to the forums in a while, so I decided to see what my friends were up to. When I saw that post it was second or third to the top of his "Last Posts" list, I just assumed it was recent. I'm pretty sure Ash is going to LOVE this display of total muppetry when he sees it. I'll probably never hear the end of it, actually. Heh.
  12. TheGibberingFool

    Is it physically possible...

    Oh Christ! I didn't even see that! That'll teach me for using the "Find Users Posts" thing without checking... Sorry :| [Goes to Stupid Corner]
  13. TheGibberingFool

    Is it physically possible...

    Dude. Your ego is of a seriously disturbing size.
  14. TheGibberingFool

    Just dont *get* math

    Quote:Original post by Asheh Quote:Original post by MrEvil Possibly... Depends which Pete you mean [wink] Hes in final year, dont know his second name lol. I usually hang with him and a few other peeps on a wednesday at the camels. Yo. And I wouldn't worry about maths Ash. When I arrived I - well - I *did* know what a dot product was, but I was still lame. I still am, mostly, though I can do enough to get by. You've got to give yourself time to learn these things. After all, that's why you're at Uni.
  15. TheGibberingFool

    Web browser for Pocket PC

    I tried the Minimo and it isn't the smallest or most stable thing I've ever seen. Though it's the best thing I can find at the moment. Ho hum. Cheers anyway. Any other suggestions would be welcomed. /Edit: I'm going to give Opera a go anyway. :)
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!