Visibility of lights not respected

Hi!

Can it be that the visibility of lights or lights which inherit visibility, aren’t properly respected in rendering?

When I link a light to a box and set visibility of the box to 0, the light shines still with full power in rendering. I would expect, that the light multiplier and the visibility of the light object would fade down properly with the visibility of the object where it is linked to.

Thank you and greetings!

Hi,
I don’t think that such attributes are being inherited, only while something is parented together. Visibility and transformations will be, but nonsharing attributes do not. Lights and geometries are an objectclass on it´s own.
You have still to define, which parameters are being wired together. Visibility and intensity in this case via wire editor for instance. This works anyway, regardless if they are parented or not.

hope it helps =)

Visibility is inherited by default in 3dsmax by simple parent to child links.

E.g.:
For me it would be logical, if the lights which are linked to a car that is faded out by visibilty, will get darker until off along with the car. Currently the lights stay visible and are shining even when the car is completely invisible at 0.0 visibility. So you get hovering ghost lights and trash renders.

Lights in Max do not have a visibility attribute, only geometry does.
You can check this yourself, with any light type (not just V-Ray’s), by querying its object properties: the visibility spinner is permanently grayed out.
You can definitely link the multiplier of the light to the visibility track of the parent, however, and have them fade that way (via. f.e. the wire parameters dialog.).

This is only half true! Please let me explain.
Lights have no active visibility attribute. Simple example: When you link a light to a box and set the visibility of the box to 0.0, the visibility of the light will also turn to 0.0 . This works for any visibility value between 1.0 and 0.0 . You can verify it by looking into the object properties. So the light inherits the visibility properly.
Another method to control the visibility of a light directly is, when you select a light, open curve editor, select the light root object in curve editor, go to menue “Edit” → “Visibility Track” → “Add”. Now you have a visibility track on the light directly and you can set keys in that track and edit the values of that keys (even if the attribute in object properties dialog is still greyed out, but you can do it via curve editor).

Even when the visibility of the light is 0.0 , no matter if its by link inherited or by direct key in the controller track, the light renders still with full strength and is visible 100%.

I’ve made a video to show you that process, but unfortunately the attachment size limit of this forum is too low, so I can’t upload it here.

All in all, it would be nice if VRay could respect the visibility for lights. This would be a huge benefit and timesaver.

Adding the track makes no difference to light’s visibility.
Add the track, set it to 0, and the (max’s, not v-ray’s) light will still shine as normal.
As stated, in Max no light subclass obeys visibility.

attached, a max spotlight with a zeroed, animated visibility.

I don’t care about 3dsmax default lights or others. We use VRay and VRayLights, so this is a request for you VRay guys to make it possible, that the renderer may respect the visibility attribute of lights, please. Maybe there is a way to call the value of the visibility parameter of any object, no matter the class, via code? No matter if its a inherited value or a directly set value. Maybe you can try it, please?
When I can see in the GUI that my light has visibility of 0.5 when its linked to a box with visibility 0.5, why you can’t call it?

Thank you and greetings :)!

Pointing you to the max spotlight is meant to show that it’s an intrinsic, non-overridable, superclass property in Max.
Caring or not can’t change the fact we are limited there, and can’t work around it.
Something may or may not be changed for, f.e. rendering via standalone, but something this crucial is a mainstay in the way Max works (it’s the same with *any* renderer within Max, which should also help convince you it’s not doable.).

Use wire parameters instead, and you’ll be gold.

Okay. I understand that it’s limited by max. Thanks for the explanation.

But creating wire parameters for multiple lights is a lot bigger effort than simply pick all the lights and link them. So if it could work (currently it doesn’t, as you stated), it would be much better to directly respect the visibility value for the rendering of lights.
I will ask the 3dsmax guys about it. Maybe we can move that stone anyhow.

Also wire parameters are not very reliable (e.g. scene merge) and easy to break accidently. No good option in my opinion.

Feel free to ask AD to change the superclass, we don’t have anything against adding the property, on our side.
You can surely script your way out of wiring hundred of lights.

As Lele mentioned, Visibility is only for geometry superclass, it is not something can be changed.

You can try Parameter Collector or even Scene Explorer for mass control of lights. You don’t have to wire.

Indeed, @gandhics is very right.
There are a few ways around the problem, not just parameter wiring.

How would Parameter Collector help to create the desired effect without huge setup effort? - I don’t think thats a good solution. It’s simply not simple.

Same for Scene Explorer. Shure you have mass control but no logic or relationship. So you have to do it manually every time.

Also setup multiple wire parameters per script is far from a simple solution.

I wish a simple and for me logical funtionallity, that if my light inherits the visibility from its parent, the light becomes darker until off / invisible, too. I think this would be good. Wouldn’t it?

simpler would be rendering the lights as aov’s and then you can control everything in post, no re-renders at all :slight_smile: The simple solution you want would be in Autodesk’s court, so you may wish to add to the uservoice wishlists

cheers!

ps: thinking about it more, your fading light out with the geometry turning invisible would look incorrect no matter what, as you’d start seeing the light *through* the car as the car geo turned invisible.

Not to mention seeing the lights behind those fading lights.
There are good physical reasons why lights do not take notice of the visibility track, i doubt AD will be keen to change that.
However, as suggested, if you moved to post then you could do what you pleased.

As for simple or hard, it’s only a matter of familiarity.
Proceduralism takes some effort to build (i.e. script -or not- the wire parameters.), non-proceduralism is quicker off the bat, but will require redoing each time.

TBH, I don’t expected so much resistance and sorry, I feel a little bashed.

Nobody needs to use it if he/she doesn’t want. But having the OPTION would make things a lot easier. For me it makes absolutely NO SENSE that lights which inherit a visibility parameter and fade to zero are STILL VISIBLE and shining. Expected would be, that an object with VISIBILITY ZERO is INVISIBLE. This alone is for me a reason to make this change, as soon as it will be possible. I know, fading with visibility looks incorrect but with some tweaking of the start and end key tangents you can achiev results, which are not bad. And for this you have to only animate one track which you can SIMPLY INHERIT to many many objects by SIMPLE LINKING. This is an EASY-TO-GO solution for me! Also often you don’t have the time to render and compose multiple passes. So, all-in-one renderfootage is the gold solution in this case. IDK where you come from, blockbuster movie industry, tv shows / series, games, etc.? We work business to business for engineering industry clients with tight deadlines, tight budgets, just a hand full of generalist artists, heavy scene data and demanding customers. We cannot allways go the “usual” way. We have to use shortcuts and the visibility fade is a very well working shortcut! And for the client it makes no difference if it is a post production fade with 2 clean passes blended over another or a visibility fade rendered in one go out of the application. The product fades out and thats it, everything fine. All that solutions with light explorer / scene explorer, setup multiple wire parameters via script, parameter collector, etc. are over complicated, compared to what I want / suggest.

Use a lightMaterial, then, and fade those nodes: see how it’ll work.
There is no resistance from me, or the other users.
It’s an impossibility within max, and there is no way around it for us at chaos.
So, besides giving you alternatives, we can’t do much else.
The resistance is all yours, that i can see, to said alternative workflows.

I don’t want to fight. I simply wanted to explain my point. What I do is comparing. The suggested solutions on the one hand and my request (simple linking with inherited visibility) on the other hand. And the result of that comparison for me is, that the suggested solutions are overcomplicated, compared to what I request. I hope I was able to explain it well.
I understand that there is nothing you can do and I am thankful for your suggestions. Unfortunately they don’t solve the issue. But thats not your problem or your fault. So, thank you and peace!

Using objects with LightMtls could work in some cases, thanks. I will try it.

I’m entirely not sure where you drew the fight from.
Reread the thread, it’s as tone-plain as they come, with as much factual info as anyone may wish for.

You’re ofc entirely entitled to your opinions, so if the solutions proposed in place of your unachievable wish feel too complicated, so be it.

Using objects with LightMtls could work in some cases, thanks. I will try it.
I very much doubt you will get what you’re looking for, that’s why i suggested you to try it.
You’re overlapping a compositing approach to a light transport one, and it’s simply not meant to work that way. :slight_smile: