Light View Widget and Camera for UU

Post Reply
User avatar
clintonman
Captain
Posts: 5432
Joined: 21 May 2009, 21:08
Type the number ten into the box: 0
Location: California
Contact:

Light View Widget and Camera for UU

Post by clintonman »

View the scene through the spot light without using a panel button.
Less overhead for cameras in the scene - has fewer nodes by default, additional nodes are loaded as needed for the synchronization process.
LightViewWidget1.jpg
LClick the angle ring to switch the view to a spotlight view
Ctrl + LClick to open a new 3d view for the spotlight


LightViewWidget2.jpg
Spotlight view with spotlight view widget on the right
Red dot to switch to a perspective view and exit out of spotlight view mode
All other controls are the same for move, rotate and angle
Use the view controls to move and rotate
Only the object rotate tool works in the spotlight view, move and scale tools do not work in the spotlight view

Widget will appear in all 3d viewports when the spotlight is selected.
LClick the angle ring to switch the view to a spotlight view

LightViewWidget3.jpg
LightViewWidget4.jpg
When exit out of spotlight view there is a dialog with the option to make the perspective view match the spotlight. The default for the question is "No" for the default tS behavior. Images above show what happens when you select yes and then wheel mouse back a bit.

Other changes:

Both the spotlight and camera have had their synchronization and window frame nodes removed. They are loaded as needed so the scene stays as light as possible. The spotlight has also had it's camera node removed and only loaded when using a spotlight view.
Clinton Reese

http://clintons3d.com
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 »

The Unofficial Update v9 is required.

Load "CamLightExtras" into /Widgets/WidgetScripts/

Replace the "Spot light widget" inside /Widgets/Select/
Add "Spot light view widget" to /Widgets/Select/

Camera and Spot have been modified to use the CamLightExtras scripts and the new and updated spotlight widgets.

One know issue, when you Ctrl + LClick to open a new 3d view for the spotlight it sometimes converts the current view to a spotlight view. Reason unknown at this time - it's random.
Attachments
Camera.RsObj
(56.73 KiB) Downloaded 50 times
Spot.RsObj
(139.76 KiB) Downloaded 51 times
Spot light widget.RsObj
(439.37 KiB) Downloaded 55 times
Spot light view widget.RsObj
(227.48 KiB) Downloaded 49 times
CamLightExtras.RsObj
(52.58 KiB) Downloaded 51 times
Clinton Reese

http://clintons3d.com
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 »

Update:

Removed the exit view dialog, "Set the perspective view to match the light viewpoint?"
New RClick on red close light view control to keep the current view point
LClick same as before, revert view point and don't ask

Added missing "/Camera" path so only the single camera node is copied instead of the camera compound object

Edit: fixed error, thanks.
Attachments
Spot light view widget.RsObj
(229.81 KiB) Downloaded 49 times
CamLightExtras.RsObj
(52.99 KiB) Downloaded 51 times
Clinton Reese

http://clintons3d.com
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 »

Changes:
LightViewWidgetInNormalView.jpg
LightViewWidgetInNormalView.jpg (34.64 KiB) Viewed 722 times
Image shows the spotlight view widget when it is not in a spotlight view. This is not visible from inside of a spotlight view.

Spotlight view widget:

Scene representation in non-light view is now cone shaped.
Exit spotlight view and keep position - offset back from the light position when RClick the red close control, no need to mouse scroll to clear up the view

Spot:

Spotlight View panel button(code written by trueBlue, but not approved by trueBlue):
LMB - switch spotlight widget to view widget mode
LClick the widget angle control to activate the widget in the desired 3d view

RMB - open a light view in a new 3d window with the widget already active

Status message added to the LMB panel button, "LClick the Spotlight View widget Angle control to activate it."
Attachments
Spot light view widget.RsObj
(232.44 KiB) Downloaded 51 times
Spot.RsObj
(142.07 KiB) Downloaded 47 times
Clinton Reese

http://clintons3d.com
Saul
Senior Chief Petty Officer
Posts: 296
Joined: 22 May 2009, 16:50

Re: Light View Widget and Camera for UU

Post by Saul »

'Load "CamLightExtras" into /Widgets/WidgetScripts/
Replace the "Spot light widget" inside /Widgets/Select/
Add "Spot light view widget" to /Widgets/Select/'

Install 'Camera Deluxe Installer' from Objects - Script Objects
Load clintonMans - 05-03-23 - Spot
LClick the Spot widget angle control
Switch view back to Perspective view
Spot widget is now Deluxe Camera Widget
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 »

Saul wrote: 05 Apr 2023, 14:15 'Load "CamLightExtras" into /Widgets/WidgetScripts/
Replace the "Spot light widget" inside /Widgets/Select/
Add "Spot light view widget" to /Widgets/Select/'

Install 'Camera Deluxe Installer' from Objects - Script Objects
Load clintonMans - 05-03-23 - Spot
LClick the Spot widget angle control
Switch view back to Perspective view
Spot widget is now Deluxe Camera Widget
Looks like it takes over.
Thanks, I'll increase the activation weight of the spotlight view to prevent it.
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 »

Awesome update Clinton! :bananathumb:

I have added a Cycle Lights script to your View widget control.
Changed the LClick gesture to this Cycle Lights script.
Changed the RClick gesture to Close the widget.
Added MClick gesture to what I am calling a Zoom to Light.
ViewControl.png
.
The Cycle Lights script cycles all of the present Spot and Projector lights in the scene, adds the Camera, and switches to the light's View.

Please try it out and let me know if you approve.
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: 05 Apr 2023, 15:50 Awesome update Clinton! :bananathumb:

I have added a Cycle Lights script to your View widget control.
Changed the LClick gesture to this Cycle Lights script.
Changed the RClick gesture to Close the widget.
Added MClick gesture to what I am calling a Zoom to Light.
ViewControl.png
.
The Cycle Lights script cycles all of the present Spot and Projector lights in the scene, adds the Camera, and switches to the light's View.

Please try it out and let me know if you approve.
Looks good. Glad to see you stopped hating on your own code.

When I read "Zoom to Light" I thought it was going to zoom the light view to another light. Maybe Zoom to Light should be Close to Light or Exit to Light, something like that.

/Widgets/Select/Spot light view widget/Activation/Automatic activation node
I set the Widget weight bias to 3.1 to override the "Camera Deluxe" from the "Objects - Script objects" library
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: 05 Apr 2023, 16:27
trueBlue wrote: 05 Apr 2023, 15:50 Awesome update Clinton! :bananathumb:

I have added a Cycle Lights script to your View widget control.
Changed the LClick gesture to this Cycle Lights script.
Changed the RClick gesture to Close the widget.
Added MClick gesture to what I am calling a Zoom to Light.
ViewControl.png
.
The Cycle Lights script cycles all of the present Spot and Projector lights in the scene, adds the Camera, and switches to the light's View.

Please try it out and let me know if you approve.
Looks good. Glad to see you stopped hating on your own code.

When I read "Zoom to Light" I thought it was going to zoom the light view to another light. Maybe Zoom to Light should be Close to Light or Exit to Light, something like that.

/Widgets/Select/Spot light view widget/Activation/Automatic activation node
I set the Widget weight bias to 3.1 to override the "Camera Deluxe" from the "Objects - Script objects" library
Yeah, was not sure what to call it, I think you changed that from the previous version?
I think RClick Close is more similar to trueSpace's theme and other scripts/widgets.
Is 3.1 enough, did you test it?
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: 05 Apr 2023, 16:53
clintonman wrote: 05 Apr 2023, 16:27
trueBlue wrote: 05 Apr 2023, 15:50 Awesome update Clinton! :bananathumb:

I have added a Cycle Lights script to your View widget control.
Changed the LClick gesture to this Cycle Lights script.
Changed the RClick gesture to Close the widget.
Added MClick gesture to what I am calling a Zoom to Light.
ViewControl.png
.
The Cycle Lights script cycles all of the present Spot and Projector lights in the scene, adds the Camera, and switches to the light's View.

Please try it out and let me know if you approve.
Looks good. Glad to see you stopped hating on your own code.

When I read "Zoom to Light" I thought it was going to zoom the light view to another light. Maybe Zoom to Light should be Close to Light or Exit to Light, something like that.

/Widgets/Select/Spot light view widget/Activation/Automatic activation node
I set the Widget weight bias to 3.1 to override the "Camera Deluxe" from the "Objects - Script objects" library
Yeah, was not sure what to call it, I think you changed that from the previous version?
I think RClick Close is more similar to trueSpace's theme and other scripts/widgets.
Is 3.1 enough, did you test it?
Yes, I tested it and yes 3.1 is enough.
Clinton Reese

http://clintons3d.com
Post Reply