how to light the faces of a cube from inside ...?

Julien Bayle's icon

Yeah.. the question seems strange.

Imagine a semi-transparent cube.
A light inside which would flash.
I'd like to see the result of those flashes on the cube faces.... from the outside of the cube.

If anyone knows how to approach this, I'd be happy :)

best,

Rob Ramirez's icon

have you tried simply placing a gl.light inside of a gl.gridashap @lighting_enable 1 @depth_enable 0 and adjusting the alpha color value?

post a patch!

Julien Bayle's icon

Hi Robert,
I did that.
Thanks for your tips (I did that too testing movement around an object:
http://www.youtube.com/watch?v=I797mrd0-qU

Now, I'd love to have some atmospheric effect.
not only a fog, but like halos & things like that ... another huge step for me :)

3964.innerlights.PNG
PNG
Rob Ramirez's icon

you've already been pointed to the glow effect from andrew's jitter-recipe right?
that's what you should be using to get a glow/halo effect.
it has to be produced on the texture in screen-space.

Julien Bayle's icon

yes indeed, just mentioned here I had to move to my next step, the one you wrote about.

texture in screen-space is a concept I didn't totally get, which means I'll study it in the next hours.