Self-illuminating possible in jME3?

I’ve searched google but couldn’t find anything to point me in the right direction.



I’m looking for the way to have a texture/material being self-illuminating (gives off light). Is that possible? If so, how? GLSL? Other?

Well the simpleTextured material does that. It doesn’t not use lightings, so the material looks as if it was self lighted.

i think he more means like in source engine, where you could define light emiiting textures and they would cast light onto other stuff in the lightmap build process.

http://developer.valvesoftware.com/wiki/Glowing_Textures



<i think it might be possible to use the glow bloom for a similar effect.

True-self illumination is not possible in real time (requires raytracing/radiosity). It’s only possible as a static lightmap e.g. ones generated by Blender for example:

http://vegastrike.sourceforge.net/wiki/HowTo:Radiosity_baking_in_Blender

EmpirePhoenix said:
i think he more means like in source engine, where you could define light emiiting textures and they would cast light onto other stuff in the lightmap build process.
http://developer.valvesoftware.com/wiki/Glowing_Textures

i think it might be possible to use the glow bloom for a similar effect.


Exactly what I meant. I posted that at 5 am, my apologies. ;)

The point is that I wanted the star in the middle of the solar system to give off light, illuminating everything in that area, casting shadows, etc.

I have tried using a point light with a radius slightly bigger than the star it was attached over, hoping it would cast off rays on both sides of normals, but it doesn't. I guess I'll have to resort to use a "simple" textured material for the star itself.

Barely awaken, sorry if this post is also hard to read.

Well I did for a star a simpletextured sphere + a point light inside with same color, with a bit tweaking it looks quite good.