Light View Widget and Camera for UU

User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

Oh, I see, you had a Move node.
SceneLight.png
.
Upper left light
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

It can be added back in, but you can still do the same thing using the Object Move tool widget.
Object Move.png
Object Move.png (7.39 KiB) Viewed 640 times
.
Additional Move object.png
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

What the static Move object lacks is Color and Angle.
Static Object lacks the Light's Color.png
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

How is this?
In this example, I used a very small Angle 0.150
MoveObject widget.png
.
Another example, Angle 2.000
MoveObject widget2.png
MoveObject widget2.png (12.39 KiB) Viewed 648 times
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

Another example with a Green color and changed to a Yellow Highlight.
MoveObject widget.png
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Light View Widget and Camera for UU

Post by clintonman »

LightView4Clinton.jpg

This is the LightViewWidget 4 Clinton, which means it was custom made for myself. I don't expect any of these changes to be used in the UU. See the UU fix for cycling lights at the bottom of this post.

Changes:
Moved light cycle function to the ViewMove control
Removed Cancel
Changed "Reset Angle" to "Angle to FOV", match light angle to fov
Changed "Reset FOV" to "FOV to Angle", match fov to the light angle
Increased transparency for all surfaces
Move FOV control concentric with the angle control
Moved close control so not touching the new FOV control, made it red again
Reestablished the Move control, sized to the Spotlight mesh, connected the angle value and reintroduced the object hider, can now move by dragging
Fixed cycle lights code - was adding cameras to all the lights, also moved into the function set
Repositioned whole widget

Light Cycle code still needs some work, it only works with non-grouped spot lights.



For the UU you will want to add the fix for the Cycle Lights. The previous cycle lights was adding a camera to all the scene spotlights.
The changes are in 2 places:

/Widgets/WidgetScripts/CamLightExtras/ViewFrom Function Set
contains the fix for the Cycle Lights so replace your CamLightExtras

Copy
/Widgets/Select/Spot light view widget/ViewMove/Cycle SpotLight
replacing
/Widgets/Select/Spot light view widget/ViewControl/Cycle Lights

so that the new code is used when cycling the lights
Attachments
Spot light view widget311.RsObj
(260.35 KiB) Downloaded 52 times
CamLightExtras302.RsObj
(54.73 KiB) Downloaded 52 times
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

What do you think about adding a FOV attribute to the Spot and Projector lights?
Of course, your code would have to be modified to check if it exists or not.
Removed
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

I think I am going to add this very simple version to the UU9
New Lightwieght version.png
.
Removed the Red Dot and CameraFOV controls.
Added the 4 Gestures from the Red Dot to the View Move
.
UU9 Light View widget.png
+ Adds a camera to all Spot & Projector lights in the current scene


CamLightExtras
Removed the seperate Camera FOV code.
Connects the Camera FOV to light's Angle.
Removed due to update
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Re: Light View Widget and Camera for UU

Post by clintonman »

trueBlue wrote: 09 Apr 2023, 19:48 ...
+ Adds a camera to all Spot & Projector lights in the current scene
...
My test shows it adds the camera one by one as you cycle the lights without removing the previous camera. It's not adding it to all the lights in the scene with one click.

Everything works as described except noted above and the normal spotlight doesn't have LClick,RClick open light view.
Clinton Reese

http://clintons3d.com
User avatar
trueBlue
Captain
Posts: 5216
Joined: 06 Jul 2009, 22:50
Type the number ten into the box: 10

Re: Light View Widget and Camera for UU

Post by trueBlue »

clintonman wrote: 09 Apr 2023, 23:58
trueBlue wrote: 09 Apr 2023, 19:48 ...
+ Adds a camera to all Spot & Projector lights in the current scene
...
My test shows it adds the camera one by one as you cycle the lights without removing the previous camera. It's not adding it to all the lights in the scene with one click.

Everything works as described except noted above and the normal spotlight doesn't have LClick,RClick open light view.
It does not add a Camera to all of the Spot and of Projector lights in the scene with one click.
You have to Shift LClick cycle through each light.
It does not duplicate the Camera, there can only be one!
Camera is not duplicated.png
.
The new Spotlight widget with the LClick and RClick gestures has not been released yet.
Post Reply