Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 10 Apr 2005
Offline Last Active Today, 01:24 AM

Posts I've Made

In Topic: Shader array limit?

18 August 2016 - 09:43 AM

Could be hitting the implementation defined maximums for uniforms, maybe check GL_MAX_FRAGMENT_UNIFORM_COMPONENTS.

If that is the problem, the modern solution to it would be SSBOs. Alternatively, texture buffers...

In Topic: Marching cubes on GPU (DirectX)

18 August 2016 - 12:49 AM

Have you looked into this? (Not sure how difficult it would be to translate from GLSL to HLSL.)


On initial reading, it looks nice, simple, and self-contained. Unfortunately, I never got around to implement my own version of it, maybe one day...

In Topic: Fast Square Root For Distance Calculations?

10 August 2016 - 06:37 PM

One way to speed these things up in Python is to use numpy:
import numpy as np

vectors = np.random.rand(1500, 3)
lengths = np.linalg.norm(vectors, axis=1)

Voila, no (Python) loops.

In Topic: Approximate Average Brightness Of Rendered Image

03 August 2016 - 01:44 AM

You can use gl_FragCoord to get the window coordinates in the fragment shader.

In Topic: 2.5D Movement Problem

27 July 2016 - 05:55 PM

If you want code, look at gluUnProject. Whenever I needed it, I used to look at the Mesa3D sources, but it seems the most recent ones don't have it anymore.

Anyway, older version clones can easily be found: