Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Point as texture with depth test enabled

$
0
0

Hi everybody,

I’m trying to create a grid of points as textures following the pointAsTexture Example in the examples/gl folder.

I need alpha blending and depth test enalbed to place background points behind foreground points. As I enable the depth test (in the OF example is disabled) I get this error (texture is a png with alpha channel). Depending on the degree of rotation, the alpa channel turn to black.

I read that I should sort my vertices/points on their distance from the camera, but I get no advantage.

I created a small example where you can rotate the grid by moving the mouse on the X axe and change some other viewing parameters.

pointsAsTexturesDepthTest.zip

I hope this colud be usefull. Thanks!!!

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles