Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Translucent cubes + light with ofGLProgrammableRenderer

$
0
0

@jag wrote:

Hi there, does anyone know how I could achieve an effect that looks like this using ofGLProgrammableRenderer?

I have a spotlight pointing at the cubes, and they have an alpha value of 100. When I run this code using OF 8.4 with the default renderer it works like in the photo. However when I switch to the much faster ofGLProgrammableRenderer, I can't seem to figure out how to get this effect. I've used the latest nightly build, which allows me to use the ofLight class (so light is working), but I can't achieve the translucent effect seen here (here I have depth test enabled) and I can't get the cubes to be blue unless I change the color of the light (rather than the color of the cubes).

Thanks!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles