Spotlight Distribution and light source visibility

Maxon Cinema 4D (Export script developed by abstrax, Integrated Plugin developed by aoktar)

Moderators: ChrisHekman, aoktar

Post Reply
AWOLism
Licensed Customer
Posts: 73
Joined: Thu Aug 30, 2018 12:10 pm

Hi!

I'm playing around with the handy Spotlight Distribution node, but I'm running into a problem where bringing the Cone Angle down makes the light source disappear.
As can be seen in the screenshots, at a certain cone angle value the light rectangle stars getting covered up, until it disappears completely.

How can I avoid this, if I want the light source to still be seen?

Thanks
Andreas
SpotlightDistribution.jpg
Attachments
SpotlightDistribution.zip
(81.9 KiB) Downloaded 130 times
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
jayroth2020
OctaneRender Team
Posts: 488
Joined: Mon May 04, 2020 7:30 pm

I have reported this to the dev team.
Puget Systems / Intel Core Z790 ATX / RTX 4090 / Cinema 4D
AWOLism
Licensed Customer
Posts: 73
Joined: Thu Aug 30, 2018 12:10 pm

jayroth2020 wrote:I have reported this to the dev team.
Thanks mate!
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
AWOLism
Licensed Customer
Posts: 73
Joined: Thu Aug 30, 2018 12:10 pm

Hello Otoy team!

This appears to still be broken. Any news on when it might get fixed?

Cheers
Andreas
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
karl
OctaneRender Team
Posts: 396
Joined: Sun Oct 13, 2019 11:26 pm

Hi Andreas,

This isn't a bug - the spotlight only shines light within the cone angle specified, and if the camera isn't within the cone, no light will be sent toward the camera. The camera is just like any other part of the scene in this regard.

If you want to see the light source then some light needs to travel directly from the light source to the camera. I'm not an artist so I'm not sure what the best way to set this up would be - you could for example have two spotlights, where one of them is much dimmer but with a much wider cone angle.
AWOLism
Licensed Customer
Posts: 73
Joined: Thu Aug 30, 2018 12:10 pm

Hi Karu!
Thanks for the reply.

Ok, what you are saying makes sense I guess (I'm an artist, not a developer) ;)
But it still looks very weird to me when the visible light source plane becomes completely black, or as in the middle example in the picture I posted, when you get a very hard cut off line. Is that really physically correct?
And I wish there was an option to keep it visible, even though it may be breaking the physics, so not to have to mess around with double light sources.

Cheers
Andreas
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

AWOLism wrote:Ok, what you are saying makes sense I guess (I'm an artist, not a developer) ;)
But it still looks very weird to me when the visible light source plane becomes completely black, or as in the middle example in the picture I posted, when you get a very hard cut off line. Is that really physically correct?
The matter of "physics" is rather off-topic. The emitted light remains plausible. Only the mesh-light surface has this appearance.
As far as I can remember, It's like that in most other renderer that uses this approach. Nothing to worry about and is to expect (and not a bug).

Do keep in mind that it is a shading based spotlight. Real lighting equipment in reality (COB LED, HMI, Tungsten, etc) are using physical accessories such as an optical projector, barn doors, etc... to control the beam angle and whatnot.
AWOLism
Licensed Customer
Posts: 73
Joined: Thu Aug 30, 2018 12:10 pm

Yeah, I understand, and while it is probably standard behaviour and plausible, and that real world light equipment use barn doors etc, I will stand by my point regarding the convenience of being able to control the visibility of the source.
It would simply be nice to have the option of keeping it visible without resorting to workarounds like setting up multiple lights etc. Just my opinion. :)
C4D R2023 + Octane 2022.1 | Windows 10 Pro | 64 gb ram | 1 x RTX3090
karl
OctaneRender Team
Posts: 396
Joined: Sun Oct 13, 2019 11:26 pm

AWOLism wrote:Is that really physically correct?
If (and that's a big if) you have a light source that only emits in a cone, and produces no light whatsoever outside the cone, then yes, it's physically correct that you can't see the light source when your eye is outside the cone.

However I don't think there are many light sources like that in the real world. A flashlight, for example, must emit some light at near 90 degrees, because you can see it from that angle, even if your face is not illuminated. The key is that if you can see the light, your face (or camera) must be being illuminated at least a little bit. So if you want to see the light source at all angles, it needs to radiate at least a little bit of light in all directions.

So the lack of realism here is caused by the spotlight distribution not matching what you get from most real light sources, rather than the actual lighting calculations in the renderer being incorrect. You would see a result like this in the real world if the light source was a lightbulb inside a long tube coated with vantablack, or something.

There's no easy way to just control the visibility of the light source, because Octane only simulates the physical behavior of light - if there is no light coming to the camera from a certain direction, the corresponding pixels can only end up black. The solutions are to either make the light source emit some light towards the camera, or to add the light source in post.
elsksa
Licensed Customer
Posts: 784
Joined: Sat Jul 24, 2021 1:06 am

The closest to reality would be to model a light and the physical accessories and/or optical elements to reproduce the emission direction, not being as "computer-precise" as what Octane does (for simplification sake as karu described).
j05jotnXdj.jpg
It is important to keep in mind that offline rendering (as well as online aka game/real-time engines) is always a simplification of the highly intricate aspect of reality.
Post Reply

Return to “Maxon Cinema 4D”