How to define that a light works only at specific node

I want to cancel the lighting of the pin in the figure and keep the lighting effect of the model itself. Can it be realized? If so, how can it be realized? Thanks


in order to achieve that you would need to set a specific instanceModifier on the node where the pin resides:

hwv.model.setInstanceModifier(Communicator.InstanceModifier.DoNotLight, [nodepinnode], true);

Unfortunately there is no good way right now to get to the nodepin geometry so for now your best best would be to write your own note-pin logic. You can find the typescript source for the note-pin functionality in the “web_viewer\typescript\operators\Markup\Note” folder of the HOOPS Communicator Package.


1 Like