Page 1 of 1

foV in pano2vr

Posted: Thu Jan 23, 2020 12:24 pm
by Panopics360
hi,

when we open a output file in big screen and small screen ,i need foV in 50 degree ,what solution for that .
and
i need a rectangle on top of file and when it play on big screen it will expand and small screen it will decrease size,but inside rectangle some text and icon are there,so it will not destroy.

Re: foV in pano2vr

Posted: Thu Jan 23, 2020 1:08 pm
by Hopki
Hi,
If the viewing parameters are set to standard, so FoV 70, then you can use an action.
As an example add a container to the skin and give it the action:
Source: Config Loaded
Action: View
Type: Set View, then select Expert Mode
Pan: 0
Tilt: 0
FoV: 50
Projections: Keep Current

Now add an action filter:
Trigger: Player Width
Comparison: <=
Value: 1024

What will happen is when the project loads the action will set the view using FoV 50, but only if the action filter allows it.
The filter is set so the action will only happen if the player width is equal to or less than 1024.

In the attached project you will see in the skin editor a container with the ID: set_fov.
This has the above actions.

To see this working create the output and open, then resize the browser and refresh the page.

To actually see this you can add a text field element to the skin, delete the word text, then using the "Insert Placeholder" button select Position, current field of view.
This will add $(af) in the text box, or you can just type in $(af).
Create the output and you will now see the FoV value, 70 and 50 as you resize and refresh the browser.

Regards,
Hopki

Re: foV in pano2vr

Posted: Fri Jan 24, 2020 7:19 am
by Panopics360
Hopki wrote:
Thu Jan 23, 2020 1:08 pm
Hi,
If the viewing parameters are set to standard, so FoV 70, then you can use an action.
As an example add a container to the skin and give it the action:
Source: Config Loaded
Action: View
Type: Set View, then select Expert Mode
Pan: 0
Tilt: 0
FoV: 50
Projections: Keep Current

Now add an action filter:
Trigger: Player Width
Comparison: <=
Value: 1024

What will happen is when the project loads the action will set the view using FoV 50, but only if the action filter allows it.
The filter is set so the action will only happen if the player width is equal to or less than 1024.

In the attached project you will see in the skin editor a container with the ID: set_fov.
This has the above actions.

To see this working create the output and open, then resize the browser and refresh the page.

To actually see this you can add a text field element to the skin, delete the word text, then using the "Insert Placeholder" button select Position, current field of view.
This will add $(af) in the text box, or you can just type in $(af).
Create the output and you will now see the FoV value, 70 and 50 as you resize and refresh the browser.

Regards,
Hopki

Thanks Sir