Forums > Jitter

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

May 29, 2012 | 1:40 pm

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,


May 29, 2012 | 5:27 pm

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!


May 29, 2012 | 5:46 pm

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 :)

[attachment=195239,3964]

Attachments:
  1. innerlights.PNG

May 29, 2012 | 5:48 pm

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.


May 29, 2012 | 11:18 pm

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.


Viewing 5 posts - 1 through 5 (of 5 total)