Sphere and MapSphere light sources

Discussion related to the Engine functionality, implementations and API.
Post Reply
User avatar
Dade
Developer
Posts: 1240
Joined: Mon Dec 04, 2017 8:36 pm

Sphere and MapSphere light sources

Post by Dade » Fri Feb 23, 2018 3:37 pm

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).
Support LuxCoreRender project with salts and bounties

User avatar
Sharlybg
Supporting Users
Posts: 691
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Sphere and MapSphere light sources

Post by Sharlybg » Fri Feb 23, 2018 3:58 pm

good add thanks you ! i think only one light type is enough just add the radius parameter ;)
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 1240
Joined: Mon Dec 04, 2017 8:36 pm

Re: Sphere and MapSphere light sources

Post by Dade » Fri Feb 23, 2018 4:18 pm

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 :?:
Support LuxCoreRender project with salts and bounties

Asticles
Posts: 120
Joined: Thu Jan 11, 2018 8:52 am

Re: Sphere and MapSphere light sources

Post by Asticles » Fri Feb 23, 2018 7:23 pm

Great!
Salvador Ureña

marcatore
Posts: 101
Joined: Wed Jan 10, 2018 8:04 am

Re: Sphere and MapSphere light sources

Post by marcatore » Mon Feb 26, 2018 3:29 pm

So, Dade, this feature will be useful to have IES lights with "soft shadows" ?

User avatar
Dade
Developer
Posts: 1240
Joined: Mon Dec 04, 2017 8:36 pm

Re: Sphere and MapSphere light sources

Post by Dade » Mon Feb 26, 2018 3:49 pm

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.
Support LuxCoreRender project with salts and bounties

User avatar
B.Y.O.B.
Developer
Posts: 1481
Joined: Mon Dec 04, 2017 10:08 pm
Location: Germany
Contact:

Re: Sphere and MapSphere light sources

Post by B.Y.O.B. » Mon Feb 26, 2018 4:43 pm

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
Support LuxCoreRender project with salts and bounties

User avatar
Dade
Developer
Posts: 1240
Joined: Mon Dec 04, 2017 8:36 pm

Re: Sphere and MapSphere light sources

Post by Dade » Mon Feb 26, 2018 6:04 pm

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: :!:
Support LuxCoreRender project with salts and bounties

kintuX
Posts: 201
Joined: Wed Jan 10, 2018 2:37 am

Re: Sphere and MapSphere light sources

Post by kintuX » Mon Feb 26, 2018 10:42 pm

what joyfully news :D

Post Reply