You are not logged in.

1

Friday, June 19th 2015, 8:22am

Add text for type of panorama

Hi,

I am making a virtual tour with a mix of still(flat) images, 180 deg panoramas and 360s cylenrical

I would like to add on top centre if the loaded panorama view is 180 deg, 360 deg or Still image.

How do I achieve this.

I went through the textfield documentation and tried to use it accordingly, but there was simply no output after using it in the xml editor. *unsure*

Thanks,
Red

Taurus

Trainee

Posts: 134

Location: Belarus

Occupation: photographer & virtual tour developer

  • Send private message

2

Friday, June 19th 2015, 10:53am

Hi, Red,
check whether

Source code

1
 keep="true"
for the textfield plugin

best regards
Serge
--
in order to comply the word with the affairs, you need to keep quiet and do nothing!

Virtual tour Gomel
Virtual tour
Virtual tour
Elbrus
...

Windows 10x64 & krpano 1.19pr16

3

Friday, June 19th 2015, 12:45pm

Thanks.. thats all it needed ... *g* ... Its like I added that boolean and BAM .. it worked ...

But how do I change it for every scene ?

Red

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Friday, June 19th 2015, 3:37pm

Use events e.g. onnewscene and "somehow" check what image type is used and than update textfield html attribute accordingly when ever new scene is loaded.
Umalo

5

Saturday, June 20th 2015, 8:02am

Is there a way to update html text, using every scene name ? *confused*

Thanks
Red

This post has been edited 1 times, last edit by "Redeemer" (Jun 20th 2015, 8:18am)


Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

6

Saturday, June 20th 2015, 9:17am

Hi!

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<events name="update_image_type" keep="true"
  onnewscene="copy(layer[image_type_text].html,scene[get(xml.scene)].imagetype);"
/>

<layer name="image_type_text" url="%swfpath%/plugins/textfield.swf" keep="true"
  align="top" x="0" y="30" autowidth="true" autoheight="true"
  selectable="false" background="true" backgroundcolor="0xFFFFFF" padding="10"
  css="font-family:arial; font-size:30px; color:#555555; text-align:center;"
  html="image_type_text"
/>

<scene name="blah" imagetype="still">
...
</scene>

Enjoy

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

7

Monday, June 22nd 2015, 8:45am

Many thanks ... your solution is like a magic wand although I do get the logic behind the code you posted... but it worked exactly as I wanted it too ... *thumbsup*

Thanks again mate
Red