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.
foV in pano2vr
-
- Posts: 64
- Joined: Thu Jun 21, 2018 11:15 pm
- Location: india
- Contact:
- Hopki
- Gnome
- Posts: 13028
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
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
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
- Attachments
-
- FoV.zip
- (11.61 KiB) Downloaded 161 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
-
- Posts: 64
- Joined: Thu Jun 21, 2018 11:15 pm
- Location: india
- Contact:
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