Sie sind nicht angemeldet.

1

Dienstag, 31. Januar 2017, 15:27

Split screen (sync)

With help of Jerome I finally reach to use image stereo label to have pano split on screen.

I use this code

Quellcode

1
2
3
4
5
6
7
8
9
<scene name="scene_panoL" title="panoL" onstart="" thumburl="panos/panoL_1.tiles/thumb.jpg" lat="" lng="" heading="">
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		
		<image stereo="true" stereolabels="1|2"><cube url="pano_%s_%t.jpg" />			<cube url="panos/panoL_%t.tiles/pano_%s.jpg" />
			<cube url="panos/panoL_%t.tiles/mobile/pano_%s.jpg" devices="mobile" />
		</image>
		<!-- place your scene hotspots here -->
	</scene>



Now, I want to use, not with VR, but for a before and after so to have split screen with sync panos of before (left) and after (right)

I read that solution could be to use

Quellcode

1
stereooverlap="1.0"



I have two questions.

- How to integrate the stereooverlap in my code above and what could be the correct position and syntax.


- How to start the view directly splitted without having to click on VR goggle logo

Thanks for your help


2

Mittwoch, 1. Februar 2017, 16:48

Hi,

see here:
https://krpano.com/docu/xml/#display.stereo

e.g.

Quellcode

1
<display stereo="true" stereooverlap="1.0" />


And don't use VR ('click on VR goggle logo') in this case because this has nothing todo with VR!

Best regards,
Klaus

3

Mittwoch, 1. Februar 2017, 16:58

thanks.
Do I have to enter between image tags and has it to be before or after image.stereo ? or doesn't affect at all ?

4

Mittwoch, 1. Februar 2017, 17:11

Also, how to have screen split automatically when tour open ?
here is my demo, when open only one pano open full screen

http://timelapse-services.com/test/vtour/tour.html


and here is my code in tour.xml

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<action name="startup" autorun="onstart">		if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );		loadscene(get(startscene), null, MERGE);		if(startactions !== null, startactions() );	</action>

		<scene name="scene_panoL" title="panoL" onstart="" thumburl="panos/panoL_1.tiles/thumb.jpg" lat="" lng="" heading="">
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />

		
		<image stereo="true" stereolabels="1|2"><cube url="pano_%s_%t.jpg" />			<cube url="panos/panoL_%t.tiles/pano_%s.jpg" />
			<cube url="panos/panoL_%t.tiles/mobile/pano_%s.jpg" devices="mobile" /><display stereo="true" stereooverlap="1.0" />
		</image>
		<!-- place your scene hotspots here -->
	</scene>

5

Mittwoch, 1. Februar 2017, 17:32

Do I have to enter between image tags and has it to be before or after image.stereo ? or doesn't affect at all ?
Anywhere within the <krpano> tags!
But inside the <image> tag (as you currently use do it) is wrong.

Btw - for such basic questions please have also a look into the documentation:
https://krpano.com/docu/xml/#xmlstructure

6

Mittwoch, 1. Februar 2017, 18:34

Thanks for the input, I tried to put elsewhere (not in image) doesn't show up with split screen *sad*

7

Mittwoch, 1. Februar 2017, 21:41

When I look into your xml here:
http://timelapse-services.com/test/vtour/tour.xml
then the <display> tag is still wrongly inside the <image> tag!

Here your tour with the display settings enabled manually via url parameters:
timelapse-services.com/test/vtour/tour.html?display.stereo=true
timelapse-services.com/test/vtour/tour.html?display.stereo=true&display.stereooverlap=1

8

Mittwoch, 1. Februar 2017, 22:12

sorry, correction was made locally, I sent online now, but if I type manually it works well (this link http://timelapse-services.com/test/vtour…ereooverlap=0.8) , but there is way that it shows without the manual addition ?
I put 0.8 to see difference because it's two same pano at the moment
But by the way, thanks Klauss, it helps a lot since I started.

9

Mittwoch, 1. Februar 2017, 22:36

but there is way that it shows without the manual addition ?
It is already working.
Clear your browser cache to see.

10

Mittwoch, 1. Februar 2017, 23:19

You're damn right *g* (cache grrrr), sorry for that, thanks a lot !

samadi

Schüler

Beiträge: 56

Wohnort: Iran

Beruf: Tehran,Alborz,nazarabad,

  • Nachricht senden

11

Dienstag, 7. Februar 2017, 08:05

this is nics

You're damn right *g* (cache grrrr), sorry for that, thanks a lot !

this is nice...