Jump to content

  • Log In with Google      Sign In   
  • Create Account


Kambiz

Member Since 03 Sep 2003
Offline Last Active Sep 02 2013 03:06 AM

Posts I've Made

In Topic: Looking for fast c++ math library

16 August 2013 - 08:19 AM

For fast square root and FloatToInt you can use this:

http://www.nvidia.com/object/fast_math_routines.html


In Topic: about OpenMP

06 March 2013 - 07:23 AM

Even if you use 'a', the compile might still optimize the loop away and replace it by a simple assignment. Few compilers out there recognize such simple pattern very well.


In Topic: Direct X or OpenGL?

16 December 2010 - 09:20 AM

The code is just broken. The 3rd parameter in
glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, hdrTextures[0], 0);
is GL_TEXTURE_2D while he is attaching a GL_TEXTURE_2D_MULTISAMPLE. This fixed the "GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT" error message. There must be at least another mistake somewhere causing the rest of the error messages.

In Topic: Direct X or OpenGL?

16 December 2010 - 07:39 AM

I replaced the 1 in the line
WGL_ACCELERATION_ARB, 1, // must be HW accelerated 

with a valid value like WGL_FULL_ACCELERATION_ARB according to the documentations and it fixed the error (Chapter 13 block_redux). For some demos I get only a black or white window. I'm not going to fix all those demos...


Look at the following thread for some newer tutorials:
OpenGL 3.x tutorial

Edit: I missed you post. I don't get any errors in chapter 9, only a black window but I'm pretty sure also that is not a problem with OpenGL itself.

In Topic: Direct X or OpenGL?

16 December 2010 - 07:21 AM

Quote:
Original post by Kurasu1415
The bible comes with executables that do not work. They run, but throw OpenGL errors.

I have tried them both under Linux and Windows, they work for me. What error message do you get?
Regardless of the demos, OpenGL application should work on newer hardware. Continue learning the API.

EDIT: I found a demo that does not work. I will have a closer look.

PARTNERS