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

Freitag, 26. April 2019, 11:33

Set a specific VR headset on startup / onunkowndevice

Hello,

I would like to set a specific headset (from the predefined vrheadsets-list) on startup or alternatively in the "onunknowndevice" event. Ideally I would like to use the name of the headset to set it.
Can anyone provide help or a code snippet? I found a function which can get and set the next or previous headset and I can set the different values but the best thing would be to be able to set based on the name and show the current selected value in the combobox (VR setup screen).

Thanks in advance!

2

Freitag, 26. April 2019, 14:34

i noticed that the new iphones are not recognized,
this is a problem, because quite a lot of people have them by now...

i had an Xr in my hands yesterday and i also had todisable tabs in the preferences, first

:/

3

Freitag, 26. April 2019, 16:25

I'm just not sure how this helps with my problem :/ ;)

5

Montag, 29. April 2019, 11:53

@klaus ...

the onunkowndevice message is kind of a problem...

there has been no update for 12 months and
mayor players like the Xr are not detected/have no default values

no pressure on pr17, but wouldnt it be possible
to release an intermediate version with updated device data for webvr?

also the ui fixes for these devices would be highly appreciated!

best, index

6

Dienstag, 30. April 2019, 17:14

Any suggestions beside the iPhone issues?

We want to select a standard headset if the user has not selected another headset and saved his settings. Whatever we try only "No distortion" is selected :/

8

Dienstag, 7. Mai 2019, 09:25

What do you mean by only "No distortion" is selected ?

if i get unknown device (X phones, Huawei P20, etc),
i can select a VR Headset.

are you trying on desktop?
otherwise you might have messed up something in your tour *whistling*


... for your other question, check webvr.xml
actions vr_setup_select() and vr_setup_change_headset() look interesting

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »indexofrefraction« (7. Mai 2019, 09:37)


9

Dienstag, 7. Mai 2019, 11:55

Hi,

any behavior is possible here, the webvr.xml is only an example implementation.

E.g. have a look into the 'webvr_onunknowndevice' <action> there (it's called by the onunknowndevice event).

There just directly set the default settings for that case and remove the if and the 'ask_user_for_screensize' case.

Btw - in the next krpano release that will all changed a bit, there also no asking will be done by default.

Best regards,
Klaus

10

Mittwoch, 8. Mai 2019, 09:41

Thank you for the answer but I've tried that already:

That's what I'm doing:

Quellcode

1
if(webvr.havesettings == false,set(webvr.mobilevr_lens_overlap, 1.15);set(webvr.mobilevr_lens_fov, 100.0);set(webvr.mobilevr_lens_dist, 0.33);set(webvr.mobilevr_lens_dist2, '1|0|0|0');set(webvr.mobilevr_lens_ca, 0.000);set(webvr.mobilevr_lens_vign, 100);,set(webvr.ask_user_for_screensize, true););



I've defined a headset like this:

<headset name="mcb" caption="Mr. Cardboard" overlap="1.15" fov="100.0" dist="0.33" dist2="1|0|0|0" ca="0.000" vig="100" />


And there is no other headset with similar settings.

It won't set these settings (or rather: it is hard to find out whether this is a caching problem of the mobile browser), nor is the "Mr. Cardboard" setting preselected in the headset section, it always seems to default to "No distortion".

11

Mittwoch, 8. Mai 2019, 09:49

Never mind, seems to be a caching issue on the client :/