Light View Widget and Camera for UU

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: 06 Apr 2023, 01:46 'the "Scene View" button'
By this you mean the 'Spotlight View' button?
Oops, yes, that's what I mean.
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 »

Yippy, I fixed a couple of things! :bananatyping:
Do not hookup the Camera's FOV to the light's Angle.
Remove these two selected nodes.
Screenshot (82).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 »

Got the Camera FOV tool to work with Spot and Projector light's Angle
Add the selected items to Widget/Tools/View tools/Camera fov/
Camera FOV tool.png
.
Can do the same with the Widget/Tools/Scale selection/Scale/
Edit: Works but moves a little bit, so no go.
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 »

@Clinton
Please try this updated Widgets

Removed the Hide Object and LightObject

I added a Previous View - MClick gesture to the ViewAngle:

Code: Select all

var cmd = '';cmd += 'UUCFS = Node.AccessFnSet("Scripts/UUCommands/UUCameraFunctionSet");UUCFS.EyeCam();';RsApp.RunScriptBuffer(cmd)
Fixed the ViewMove RDrag - Axis Swap values changed.

Do not connect Camera FOV to Angle - Much better view from light!!! - ViewFromObject script


Fix for the Camera FOV tool now works with the Light 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 »

trueBlue wrote: 07 Apr 2023, 03:08 ...
Removed the Hide Object and LightObject
...
What does this do and how to test it?


trueBlue wrote: 07 Apr 2023, 03:08 ...
Fixed the ViewMove RDrag - Axis Swap values changed.
...
moving in and out seems to be much more difficult or slower or something
moves very slowly, have to move mouse forward and back instead of left and right

trueBlue wrote: 07 Apr 2023, 03:08 ...
Do not connect Camera FOV to Angle - Much better view from light!!! - ViewFromObject script
...
removing all fov goes to far, now only light cone works, no control over actual view fov, not seeing what the light sees except on smaller angles
should start at same fov as the light or greater. looks like a constant unchanging fov, needs separate view zoom controls


trueBlue wrote: 07 Apr 2023, 03:08 ...
Fix for the Camera FOV tool now works with the Light widget
Same issue as Do not connect Camera FOV to Angle
Conceptually, a true fix would allow changes to both camera fov and angle with one control and have another control to adjust the light angle independent of the fov like you already have setup.



Footnote nothing to do with the changes: it should be noted that when using autokey that you don't get keys when using the view tools or the view widget like in modelspace. It involves 2 separate widgets to make it work, not usre if it's possible or worth the work require. More research is needed.
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 »

LightViewWidgetCamSeparate01.jpg
LightViewWidgetCamSeparate01.jpg (23.96 KiB) Viewed 618 times

Got a working prototype for separate angle and fov controls. Ugly now but it works.
I'm thinking the final form will be another concentric ring for the camera just outside the angle ring control.

This works by exporting the light camera FOV instead of connecting it to the light FOV. Then adding a camera fov widget control to the spot light view widget.

Think I found a bug too. Earlier version could move the light around in other views by dragging it, but now can't move it.
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 »

LightViewWidgetCamSeparate02.jpg

changes based off of the last uu release

On spotlight will now export the camera fov instead of connecting it to the spotlight angle
Added a fov widget to the Spotlight view widget - octagonal shape around the angle control
Fixed the missing move control, can now move and select if needed - small cone in the image above on the left
Removed the hide object and LightObject - there's nothing to hide I guess
Starts out with the view fov and the spot angle matching.

replace /Widgets/Select/Spot light view widget
replace /Widgets/WidgetScripts/CamLightExtras
Attachments
Spot light view widget202.RsObj
(251.64 KiB) Downloaded 47 times
CamLightExtras203.RsObj
(50.89 KiB) Downloaded 47 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 »

Started trueSpace this morning and the noticed the changes I made to the Widgets were not working as it was yesterday.
Not good, so scrapped those ideas!

Can you explain the new FOV, advantages and its use?
I do understand it is independent of the light's Angle but not sure why it is needed.

I do think this new FOV widget makes the whole widget huge.
How about something like this?
FOV and View Control together and are for the Camera
Light View widget.png
.
Have not previously looked at this widget in Ortho views.
The View Control moves in Perspective and Ortho views.
In ortho view the View Move, FOV, and the View Control move but not the View Angle and View Rotate
Ortho views.png
Ortho views.png (2.06 KiB) Viewed 608 times
Looking at the View Widget, it looks like they made an Ortho and a separate Perspective widget.
They also locked all the shapes down with a ExpandInMatrix
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: 07 Apr 2023, 04:05 Footnote nothing to do with the changes: it should be noted that when using autokey that you don't get keys when using the view tools or the view widget like in modelspace. It involves 2 separate widgets to make it work, not usre if it's possible or worth the work require. More research is needed.
In UU9 the Camera tools widgets do have Auto Keyframing
The View Widget does not, because selecting the Eye Camera does not work in the Animation Editor
Because it uses a Euler Transform.
But you can use a Camera.
You just need to enable FOV in the Keying panel, to Auto Keyframe using the Camera FOV tool widget
Camera Move and Rotate also work.
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: 07 Apr 2023, 18:10 Started trueSpace this morning and the noticed the changes I made to the Widgets were not working as it was yesterday.
Not good, so scrapped those ideas!

Can you explain the new FOV, advantages and its use?
I do understand it is independent of the light's Angle but not sure why it is needed.
...
I guess it's just a convenience thing now. Your last set of widgets lead me to believe that you did not want a light view that matched the angle of the light.

trueBlue wrote: 07 Apr 2023, 18:10 ...
How about something like this?
FOV and View Control together and are for the Camera
...
I don't know what that sentence means, but in the image it's odd that the fov control is around the closing control.
Clinton Reese

http://clintons3d.com
Post Reply