• Advertisement

emptyhead

Member
  • Content count

    158
  • Joined

  • Last visited

Community Reputation

178 Neutral

About emptyhead

  • Rank
    Member
  1. http://en.wikipedia.org/wiki/Latin_square
  2. OpenGL and ubuntu

    The header files under /usr/include/GL/ are put there by mesa-common-dev. GLX itself is installed by your graphic card driver, ie fglrx-glx or nvidia-glx. For nvidia, you also need nvidia-glx-dev, that replaces some of the mesa stuff. You'd need libx11-dev if you are using xlib directly to create the window, but that's up to you. As for the version, you can use anything up to 4.0 (at least on ati, not sure if nvidia is there yet), but that really depends on what features you are going to use and what taget audience you have.
  3. value noise bug in GLSL

    also note that frac is non standard, you should probably use fract instead.
  4. [java] 3d keyword

    D or d indicates that the number is a double precision floating point number. He could have used 3.0 instead, but 3d was funnier i suppose.
  5. Note that 0.015625 = 2**-6 (only one bit set), which indicates precision error. so it looks like you are storing the absolute time in a float, i.e. float startTime=(float)GetTickCount(); ... float frameTime=(float)GetTickCount()-startTime; a float only has 23 bits of precision, which will not suffice in this case. Converting the difference between the tick counts instead will avoid this problem: DWORD startTime=GetTickCount(); ... float frameTime=(float)(GetTickCount()-startTime); this will also handle the wrapparound (when ticks go from 2**32-1 back to 0) after ~50 days. floats are evil.
  6. LAN and linux shell question

    just forward port 22 in your router. http://portforward.com/english/routers/port_forwarding/Dlink/DI-624/
  7. XLIB non blocking XNextEvent

    you can use XPending to check if there are any events pending, and only call XNextEvent if there are.
  8. Do you believe in god?

    This quote somehow sums it up for me: "I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours." But i have no problem in believing that life on this planet was created. In the same way that i do not have any problems believing that we, as a species, will one day create life on our own.
  9. commands to variables UNIX

    sorry, remove the white space around the equal sign: capital=$(cut -d: -f1 finalD.ca)
  10. commands to variables UNIX

    in bash try this instead: capital = $(cut -d: -f1 finalD.ca)
  11. "Grahp and function" related question.

    Least squares method?
  12. Why isn't this working?

    ^ is the bitwise xor operator, try to use this instead: sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))
  13. OpenGL X11 app

    Try compiling with -lX11 -lGL Oh.. seems like your missing -lm too
  14. Survival Horror Games: which should I play

    If you want to know what fear really is you should try to find a copy of System shock 2. The graphics are a bit dated by todays standards, but there are new hires textures and models to download. I really hope bioshock will be as good as this one when it comes out.
  15. Linux in Windows

    CoLinux?
  • Advertisement