Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: Pfirsich

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,975

    Re: graphing z=f(x,y,t) on large x-y grids

    You create the VBO in every frame. No wonder everything is super-slow. You should create the VBO once, maybe even bind it only once and maybe set the Vertex/Color-Pointers only once (but I don't know...
  2. Replies
    4
    Views
    1,975

    Re: graphing z=f(x,y,t) on large x-y grids

    You should consider not using the immediate mode, but either Vertex Arrays (or Vertex Array Objects?) or at best, I would say, Vertex Buffer Objects, with something like DYNAMIC_DRAW as the usage...
  3. Re: Simple Parallax Mapping not working properly

    I haven't read the whole code, but i assume the view-vector is of unit length so multiplying is not enough because only the z-length of the vector should be offset_depth, so you should multiply...
  4. Replies
    18
    Views
    16,754

    Re: Faking gl_FragCoord?

    According to the GLSL 1.20.8-specification. And this code works (at least for me). As long as you do the perspective division in the vertex shader yourself, it works. Otherwise it doesn't work. I...
  5. Replies
    18
    Views
    16,754

    Re: Faking gl_FragCoord?

    I didn't experience the same issues, but when i got closer to the light-volumes they distorted pretty hard. In the Nvidia-XMas-Tree-Demo the following code was used (at least the same principle),...
Results 1 to 5 of 5