Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Zoom UI on Images, Panels, Ortho Cams

Share your components here. First one to 100 wins!

Zoom UI on Images, Panels, Ortho Cams

Postby greg » Sat Feb 02, 2019 10:20 pm

updated Feb 11:

Similar to the Network Editor navigation, here are 3 components that let you navigate images, panels and ortho cameras in a similar way:

zoomImage - images in TOP viewers so you can better inspect them in UIs you build.

zoomOrthoCamera - orthographic cameras on 3D scenes

zoomPanel - you can zoom into any panel and interact with it as you normally do with panels.

The interactions are:

- the mouse roller wheel expands/shrinks the view, centered at the mouse pointer
- left mouse button pans (except panels currently)
- middle mouse button zooms (except panels currently)
- h-key homes

This is really one component configured 3 ways through their Type page.

Included is a Camera COMP "camZoomOrtho" you can use directly with a Render TOP for interactive orthographic camera views.

Included is moviePlayer (from palette) retrofitted with zoomImage so you can zoom and inspect pixels while a movie plays.

works with recent Experimentals only. 163.toe is version 2.
Attachments
ZoomUserInterface.163.toe
(115.68 KiB) Downloaded 113 times
User avatar
greg
Staff
 
Posts: 552
Joined: Tue Nov 13, 2007 1:08 am

Re: Zoom UI on Images, Panels, Ortho Cams

Postby Ennui » Sun Feb 03, 2019 1:31 am

This is a bit more elegant than my hack of the arcBallCamera to do the same thing. Cheers Greg!
Richard Burns
User avatar
Ennui
 
Posts: 511
Joined: Sat Oct 03, 2009 2:23 pm

Re: Zoom UI on Images, Panels, Ortho Cams

Postby greg » Sun Feb 03, 2019 2:23 am

Hi R, were you hacking arcBallCamera for making a better navigator of 3D perspective scenes? I'd like to tackle 3D perspective scenes with a similar approach.

In parallel we are now developing better built-in navigation for SOP viewers and Geo viewers, so this will all dovetail together in making better 3D scene navigation in TouchDesigner, long overdue.

But basically, for building 2D panels, I've often wanted to zoom in a panel, look closely, do something, and zoom back. Especially as the screen is filled with more and more, smaller and smaller gadgets in our applications. So especially try zoomPanel and see if it's OK.
User avatar
greg
Staff
 
Posts: 552
Joined: Tue Nov 13, 2007 1:08 am

Re: Zoom UI on Images, Panels, Ortho Cams

Postby barakooda » Sun Feb 03, 2019 4:44 am

better built-in navigation for SOP viewers and Geo viewers

Yay,cant wait !
User avatar
barakooda
 
Posts: 669
Joined: Fri Nov 27, 2009 5:08 pm

Re: Zoom UI on Images, Panels, Ortho Cams

Postby nettoyeur » Sun Feb 03, 2019 8:35 pm

these are pretty useful, thanks for sharing Greg.

in the zoomPanel, use LMB to pan does not seem to work
Idzard Kwadijk | freelance TouchDesigner consultant | IdzArd.com
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 1171
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Zoom UI on Images, Panels, Ortho Cams

Postby greg » Sun Feb 03, 2019 11:48 pm

> in the zoomPanel, use LMB to pan does not seem to work

thanks, still trying to figure this out - to make pan-zoom work when you click on empty parts of a panel that have no gadgets (click-through).
User avatar
greg
Staff
 
Posts: 552
Joined: Tue Nov 13, 2007 1:08 am

Re: Zoom UI on Images, Panels, Ortho Cams

Postby bLackburst » Mon Feb 04, 2019 9:19 pm

For others who try this, it doesn't work with older builds. I'm on 26750.
bLackburst
 
Posts: 334
Joined: Thu Sep 01, 2011 3:56 am
Location: Melbourne, Australia

Re: Zoom UI on Images, Panels, Ortho Cams

Postby Ennui » Mon Feb 04, 2019 9:31 pm

I've been hacking it to disable rotation and attaching to an ortho cam for use in a node editor I've built and also for timeline control panels:

https://github.com/Richard-Burns/OrthographicArcball
Richard Burns
User avatar
Ennui
 
Posts: 511
Joined: Sat Oct 03, 2009 2:23 pm

Re: Zoom UI on Images, Panels, Ortho Cams

Postby greg » Tue Feb 05, 2019 7:33 pm

Sorry, this works on Experimental only!
User avatar
greg
Staff
 
Posts: 552
Joined: Tue Nov 13, 2007 1:08 am

Re: Zoom UI on Images, Panels, Ortho Cams

Postby RGMdddd » Tue Feb 05, 2019 9:49 pm

Our older eyes thank you very much!

Rodd McLaughlin
RGMdddd
 
Posts: 22
Joined: Thu Mar 29, 2012 10:36 am

Next

Return to Shared .tox Components

Who is online

Users browsing this forum: No registered users and 4 guests