Insert fixed Text or logo

Q&A about the latest versions
Post Reply
DeeJay58
Posts: 43
Joined: Mon Jun 01, 2020 10:53 am
Location: Graz/AUT

Hi!
Maybe it is a stupid question, I've been using Pano2VR for over an year now but I never tried what I need to do now: How can I insert a text in a pano at a fixed position, e.g. the left upper corner? I know how to do it with a logo on the whole tour, but the text should vary in each pano.
Thank you!
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi DeeJay,
This can be done in. a few ways, you can use placeholders that reads text from say a panoramas user data.
For example, if you added your text to each panoramas user data description text field, a text box in the skin with the placeholder $(ud) would display this text.
This text can be different for each panorama.
Or you can use a trigger, again as an example you can add tags to each panorama, then under a text box, logic block, have the condition that says if tag = xxx, then display text xxx.

For the user data, there are a few text fields you can use other than the description, each having its own placeholder to display it the text.
You can also use combinations.
Example using user data description and user data source
The text box would look like this: $(hd) $(us).
Under the description you could have House A, then under source, you could Ground Floor.
So the text box would display House A Ground Floor.
Regards,
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/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

There are no stupid questions here :)

1. Add the text you want to display to the User Data for the node. In this case, I've added Penguin Point to the Title

step 1.png
step 1.png (2.58 MiB) Viewed 2177 times

2. Open the Skin Editor and add a text box in the location where you want the text to appear. In my case, I want to use the User Data Title so I select the placeholder from the dropdown menu to populate the text box.


step 2.png
step 2.png (432.35 KiB) Viewed 2177 times

3. Save the skin and publish the project. Now when that node is open the text box will display the Title, in this case, Penguin Point

step 3.png
step 3.png (2.33 MiB) Viewed 2177 times


4. Then you can get creative, add a Google Font and place some text before the User Data placeholder in the Text box.

have fun.png
have fun.png (2.54 MiB) Viewed 2177 times


If you are interested I have a tutorial on how to add the Google Fonts on my website at https://tonyredhead.com/pano2vr-little- ... text-field
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
DeeJay58
Posts: 43
Joined: Mon Jun 01, 2020 10:53 am
Location: Graz/AUT

THANK YOU, Hopki and Tony! I think I understand and I'll try it tonight!
DeeJay58
Posts: 43
Joined: Mon Jun 01, 2020 10:53 am
Location: Graz/AUT

Tony wrote: Mon May 31, 2021 1:42 pm

have fun.png



If you are interested I have a tutorial on how to add the Google Fonts on my website at https://tonyredhead.com/pano2vr-little- ... text-field
Hi! I did it more or less as seen in your tutorial. It worked from the beginning and I understand it. Except one thing: Responsive design.

On mobile devices everything is not in center or to large. I solved this by unsing the logic block "Player Width and Player Height BUT that not really soves the problem itself because there are so many devices with so many different player widths and heights so there will always be some devices where it won't look as it should. The same with the floating nadir logo - also seen in one of your tutorials

How do you (or Hopki) solve that? Is there another "trick"?
DeeJay58
Posts: 43
Joined: Mon Jun 01, 2020 10:53 am
Location: Graz/AUT

Mhm? ;) Is there a way to do this easily and at least perfectly?
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi, if you anchor a text box to the upper left, you can give it the place holder $(ud).
This will then display the user data description text.
Under the visible logic block you can add the trigger, if the user data description text is blank, visible false.
So where there is no text the text box will hide.
If the text box is set to auto size then you need to set the scale anchor to top left, as more text is displayed it will expand from left to right.
If you set word wrap then as the text gets to the end of the text box it will expand down.

Of course, this is only one way to do it, you can preload text into a text box using its logic block and then use tags to change the text.
It really depends on what function the text box provides and is it displayed all the time or just in a certain nodes.
Regards,
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/
Post Reply