Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Dienstag, 12. Juni 2018, 08:41

How to change the default value of vr setup?

Hi guys, I am a new in studying krpano, i would like to know the way of changing the default value in vr mode

e.g default screen size of 6.3 and vr devices is Gear VR.



As the default settings are screen size of 5.0 in unknown device and
use of cardboard.

But I cannot find the way to change them. I know those
setting variables are stored in

plugin file (webvr.xml). And i tried to
modify them but it seems not work.


Cause i don't want to take the
adjust steps in case of using new device.

Dose anyone advice the
solution? *smile* *smile*

Tuur

Erleuchteter

Beiträge: 3 023

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 12. Juni 2018, 09:14

Hi,

No double posting Please!
I’ll answer after dentist.

*g*
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Tuur

Erleuchteter

Beiträge: 3 023

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Dienstag, 12. Juni 2018, 12:07

Hi,

look in the webvr.xml
in the second code block: ,vrheadsets you see all settings.
In the first part (<plugin --> there you can fill them in corresponding to the setting sin the vrheadsets part.

So, if you want cardboard to be default, set these numbers in the plugin part to your needs, matching the vrheadsets settings.

Quellcode

1
2
3
4
5
6
7
8
	        mobilevr_ipd="63.5"
	        mobilevr_screensize="auto"
	        mobilevr_lens_overlap="1.10"
	        mobilevr_lens_fov="96"
	        mobilevr_lens_dist="1.00"
	        mobilevr_lens_dist2="1|0|0|0"
	        mobilevr_lens_ca="0.0"
	        mobilevr_lens_vign="100"


and

Quellcode

1
2
3
4
5
6
7
8
9
	<vrheadsets>
		<headset name="cb1" caption="Cardboard A"   overlap="1.10" fov="96.0"  dist="1.00" dist2="1|0|0|0" ca="0.000" vig="100" />
		<headset name="cb2" caption="Cardboard B"   overlap="1.00" fov="96.0"  dist="0.60" dist2="1|0|0|0" ca="0.000" vig="100" />
		<headset name="gvr" caption="GearVR"        overlap="1.00" fov="112.0" dist="0.95" dist2="1|0|0|0" ca="0.090" vig="100" />
		<headset name="hom" caption="HOMiDO"        overlap="1.00" fov="101.0" dist="1.10" dist2="1|0|0|0" ca="0.075" vig="100" />
		<headset name="one" caption="VR ONE"        overlap="1.00" fov="109.9" dist="0.00" dist2="1.139|0.093|0.018|0.207" ca="0.090" vig="35" />
		<headset name="ccr" caption="ColorCross VR" overlap="1.00" fov="70.0"  dist="0.65" dist2="1|0|0|0" ca="0.000" vig="100" />
		<headset name="nod" caption="No Distortion" overlap="1.00" fov="96.0"  dist="0.00" dist2="1|0|0|0" ca="0.000" vig="100" />
	</vrheadsets>


Hope it helps a bit
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

4

Donnerstag, 14. Juni 2018, 19:33

Hi,

first please see the WebVR plugin and its settings:
https://krpano.com/plugins/webvr/#syntax

The device detection itself works that:
- first look if the browsers supports the WebVR API => if yes, the browser will do all the device specific stuff
- no WebVR support => use the 'user-agent' of the device and look into a database for the physical screen size
- when no device will be found => then the onunknowndevice event will be sent
- in that event you could e.g. manually set a custom screen size by setting the mobilevr_screensize setting

Next - about the 'database' - the WebVR plugin has a build-in list of devices and when the device will be not found there, then the online-database set by the
mobilevr_database_url setting will be checked.

So if you want to add a device and its screensize you could make a request to that database provider or let the url point to an own hosted database.

Best regards,
Klaus