Topic: Directional Warping

Tutorial of how to make a directional warping transition using uPano.

Post's attachments

Attachment icon Directional Wapring Unlit.shader 1.82 kb, 43 downloads since 2020-06-24 

Attachment icon Directional Wapring Unlit.shadergraph 29.03 kb, 35 downloads since 2020-06-24 

Attachment icon DirectionalWarpingTransition.cs 3.02 kb, 7 downloads since 2021-02-23 

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

Re: Directional Warping

This looks great.
However, when using a non-zero North Pan, the warping exhibits two problems:
1) zooms in when it should zoom out and vice versa i.e. going forward makes it zoom out
2) the initial morphing frame is not the one pointing at the defined north pan value.  Resulting in a weird blend but thereafter the north pan direction is correct.

In summary the direction of the zoom and frames being used are incorrect when using non-zero north pan values. 

Any suggestion on how to fix this?

Re: Directional Warping

Hello.

Thanks for the bug report.
DirectionalWarpingTransition.cs in the first post has been updated.

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

Re: Directional Warping

Thanks for the quick fix!
It has fixed 1) and now at least the zooms are transitioning correctly i.e. in/out and left/right.

However, 2) above still has an issue: the destination pano frame isn't correct when the source pano and dest pano differ in north pan values.

Example:
Pano 1: North Pan of 180 and Pan of -180
Pano 2: North Pan of 270 and Pan of -270

Transitioning from Pano 1 to Pano 2 has the correct zoom motion (in my case sideways), however the destination transition frame is Pano's 2 North Pan frame as if it were left at 0.  After the transition is done, Pano 2 is pointing in the correct direction.  This results in a "pop-up" of sorts. 

I think something is wrong with the start and end UVs being used for the morphing for panos that don't agree on the north-pan.

Re: Directional Warping

Please send textures with different north pan, I will check and fix it.

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

Re: Directional Warping

Sent you a PM.

Re: Directional Warping

Thanks for the textures.
DirectionalWarpingTransition.cs in the first post has been updated.
It now works correctly with north pan difference.

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

Re: Directional Warping

Yup that mostly fixed it.
One more thing smile
When going to a Pano that doesn't "copy pan tilt" AND both source & dest panoa have different North Pan, then the last issue still persists i.e. incorrect dest frame being used.

Re: Directional Warping

Directional Warping was not designed to be used without copy pan tilt.
It just doesn't make sense.

Kind Regards,
Infinity Code Team.

uContext is Editor PowerPack (more than 40 tools) that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features, corrects and improves the editor’s built-in behaviors. Click here to download uContext Basic for free.

Re: Directional Warping

True.
Ok, I'll change my settings so that it uses copy pan tilt. 
Otherwise, thanks for all the fixes, works great!