Page 1 of 1

Sphere and MapSphere light sources

Posted: Fri Feb 23, 2018 3:37 pm
by Dade
I have added the support for Sphere and MapSphere light sources. They work exactly like Point and MapPoint light sources but they have the additional ".radius" parameter to define the radius of the emitting sphere. This is a rendering with a sphere light source:
sphere.png
and this of MapSphere with a IES profile:
mapsphere.png
Note: it is up to the exporter if to expose the additional light source type or just expose a Point/MapPoint light source with an optional radius parameter (and internaly switch among different light source types if radius > 0.0 and/or there is a IES/image profile).

Re: Sphere and MapSphere light sources

Posted: Fri Feb 23, 2018 3:58 pm
by Sharlybg
good add thanks you ! i think only one light type is enough just add the radius parameter ;)

Re: Sphere and MapSphere light sources

Posted: Fri Feb 23, 2018 4:18 pm
by Dade
Sharlybg wrote: Fri Feb 23, 2018 3:58 pm good add thanks you ! i think only one light type is enough just add the radius parameter ;)
It depends a bit how/if Blender supports (and shows) spherical light sources or no :?:

Re: Sphere and MapSphere light sources

Posted: Fri Feb 23, 2018 7:23 pm
by Asticles
Great!

Re: Sphere and MapSphere light sources

Posted: Mon Feb 26, 2018 3:29 pm
by marcatore
So, Dade, this feature will be useful to have IES lights with "soft shadows" ?

Re: Sphere and MapSphere light sources

Posted: Mon Feb 26, 2018 3:49 pm
by Dade
marcatore wrote: Mon Feb 26, 2018 3:29 pm So, Dade, this feature will be useful to have IES lights with "soft shadows" ?
Yes, "MapSphere" light sources are the type used for IES lights and the radius can be used to have soft shadows.

Re: Sphere and MapSphere light sources

Posted: Mon Feb 26, 2018 4:43 pm
by B.Y.O.B.
There is even an example image with IES and soft shadows in the first post of this thread ;)

I added support for this light in BlendLuxCore.
It seems this light is always camerainvisible - I think it could be useful to have it visible in some scenes. Would this be a problem to implement?

edit: I guess it would require it to be intersectible. If that's a lot of work it does not have high priority, just an idea.
edit2: Or is this blasphemy against the one god (the triangle)? :P

Re: Sphere and MapSphere light sources

Posted: Mon Feb 26, 2018 6:04 pm
by Dade
B.Y.O.B. wrote: Mon Feb 26, 2018 4:43 pm edit2: Or is this blasphemy against the one god (the triangle)? :P
Exactly ... be aware of the sacred purifying fire :!: :lol: :!:

Re: Sphere and MapSphere light sources

Posted: Mon Feb 26, 2018 10:42 pm
by kintuX
what joyfully news :D