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

May 29, 2012 at 1:40pm

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

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,

#56852
May 29, 2012 at 5:27pm

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!

#203795
May 29, 2012 at 5:46pm

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
#203796
May 29, 2012 at 5:48pm

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.

#203797
May 29, 2012 at 11:18pm

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.

#203798

You must be logged in to reply to this topic.