You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Posts: 68

Location: Philadelphia, Pennsylvania

Occupation: Retired S/W engineer

  • Send private message

21

Wednesday, April 4th 2018, 3:34pm

Thanks, Klaus

Can one easily set up the new sphere<->cube droplet to create a given cube size?

The web browser in my LG 3DTV cannot convert an image in either sbs or over/under format to 3D.. With an interlaced 3D image it would not need to do anything, or even know the image is 3D.

-- Tom

22

Wednesday, April 4th 2018, 4:17pm

Can one easily set up the new sphere<->cube droplet to create a given cube size?
You could enter a custom size here:


Or alternatively call from commandline and use the '-outsize=' setting:
https://krpano.com/tools/ktransform/#top
E.g.

Source code

1
krpanotools sphere2cube cube inputpano.jpg cube.tif -outsize=2048x2048



The web browser in my LG 3DTV cannot convert an image in either sbs or over/under format to 3D.. With an interlaced 3D image it would not need to do anything, or even know the image is 3D.
I've already started working on interlaced-stereo support, should be ready in the next release.

Best regards,
Klaus

Posts: 68

Location: Philadelphia, Pennsylvania

Occupation: Retired S/W engineer

  • Send private message

23

Wednesday, April 4th 2018, 9:07pm

*tongue* *tongue*

24

Thursday, April 5th 2018, 11:55am

Hi, one note about:

Quoted

The web browser in my LG 3DTV
I have also a LG 3DTV - it's a 4k TV with passive 3D - but the TV browser there doesn't render webpages in the native 4K resolution, the browser only uses a 1920x1080 resolution - and with that interlaced stereo output is not possible - interlaced stereo would require a 1:1 unscaled rendering at the screens physical resolution...

But with a PC attached driving the TV in its full 4K resolution interlaced stereo is working...

Posts: 92

Location: Fairfax, CA

Occupation: Code-Slave

  • Send private message

25

Thursday, April 5th 2018, 10:41pm

Krpanotools encrypt -stdout issues pr15

I'm running into situations where, at seemingly random instances, we are getting an "FATAL ERROR: - invalid encryption!" for XML that is being encrypted on-the-fly leveraging the "-out=stdout" parameter with krpanotools -encrypt.
When I say random, I mean a user will run into this error on a particular scene, reload the tour, go back to the same exact scene, and all is good. If the error was present each time a user went to the scene, then there would be an issue with my XML generation.

Here is a link to a tour on our "preview" domain with the full-encryption code in-place where I can confirm users have run into this issue.
https://www.createvtour.com/mammoth-mountain

I personally have not run into this in my testing, but one user running into this is one too many.

When I say encrypting on-the-fly, I mean leveraging PHP to handle the encrypting of XML at time of request/load.

My sequence goes like this:
  1. The xml is generated & loaded into the output-buffer
  2. Krpanotools is registered ( ensuring it is registered ).
  3. If registration is successful we proceed, else we output the buffer and exit, basically rendering unencrypted XML.
  4. If we are successful with putting the output-buffer into a temporary xml file, we proceed, else we output the buffer and exit, basically rendering unencrypted XML.
  5. If we are successful with encryption, the encrypted XML is rendered and we remove the temporary XML file.
  6. The encrypted XML is loaded into the tour.
I'm assuming that when an encryption error happens, in my case, the unlink ( file delete ) does not occur. That is why I have several XML files in the directory the temporary XML files is placed.
I've run these files through XML validators ( multiple, to make sure that this is a valid test ) to check their integrity and they come out clean as a whistle.

I could put an encrypt-error handler in-place at step 5 ( above ) but I don't know what the exact output/return, if any, would be in the case of an error.

Here is the code-block that handles this:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ob_start();
include_once XP_LIBRARY . "xml/get_scene_xml.php";
$obContent = ob_get_contents();
ob_end_clean();

$reg_code   = "my_reg_code";
$output     = array();
$return_var = 0;
exec( KRTOOLS_PATH . ' register ' . $reg_code, $output, $return_var );

if ( !empty($output) && $output[1] == 'Code registered.' ) {

    $my_filename = "scene_xml_";

    if ( isset( $_COOKIE['sess_ref'] ) && !empty( $_COOKIE['sess_ref'] ) ) {
        $my_filename .= $_COOKIE['sess_ref'];
    } else {
        $my_filename .= $tour_ID;
    }
    $my_filename .= ".xml";

    if(file_put_contents( $my_filename, $obContent )){
        $my_file_path = KRENC_PATH;
        $my_file_path .= $my_filename;
        $theoutput    = system( KRTOOLS_PATH . ' encrypt -p -in=' . $my_file_path . ' -out=stdout' );

        if ( $theoutput ) {
            unlink( $my_filename );
        };
        
    } else {
        echo $obContent;
    };

} else {
    echo $obContent;
};

exit();

26

Saturday, April 7th 2018, 9:23pm

In the previous version I have used "convertdroplets.config" to change the output of Convert CUBE to SPHERE droplet.bat.

This doesn't work for the new .exe droplet. Is there a way to change the output format (e.g. jpg instead of tiff) of "Convert SPHERE CUBE Droplet.exe"?


Thanks a mil!

27

Wednesday, April 11th 2018, 4:32pm

Hi,

When I say random, I mean a user will run into this error on a particular scene, reload the tour, go back to the same exact scene, and all is good. If the error was present each time a user went to the scene, then there would be an issue with my XML generation.
Can you please describe that case more detailed? Additionally also what browser and browser-version is used.

28

Wednesday, April 11th 2018, 4:37pm

In the previous version I have used "convertdroplets.config" to change the output of Convert CUBE to SPHERE droplet.bat.

This doesn't work for the new .exe droplet. Is there a way to change the output format (e.g. jpg instead of tiff) of "Convert SPHERE CUBE Droplet.exe"?

Hi,

the new droplet doesn't use the convertdroplets.config file. The config file is for direct usage of the transform/sphere2cube command line tool, which the old droplet was using.

For the new droplet to changing the output format just start the 'krpano Tools' program and change the conversion settings in the 'Convert Tool' tab. All settings there, except the output size, will kept stored and also be used when directly using the droplet (btw - the droplet and the 'Convert Tool' tab in the krpano Tools are the same, just a different window visualization).

Best regards,
Klaus

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

29

Monday, April 16th 2018, 2:21pm

IMPORTANT!

Bug report

bingmaps radar html5 version working wrong, inverse rotating

Same bug in 13 14 krpano versions
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

30

Monday, April 16th 2018, 4:25pm

Hi,
Bug report

bingmaps radar html5 version working wrong, inverse rotating

Same bug in 13 14 krpano versions
Do you have a link to your example?

For me it works correctly - here a quick test case - left Google Maps / right Bing Maps:
https://krpano.com/krpano.html?xml=examp…google-maps.xml

Best regards,
Klaus

Mael B.

Trainee

Posts: 133

Location: France, Montpellier

  • Send private message

31

Monday, April 16th 2018, 4:52pm

For me it works correctly - here a quick test case - left Google Maps / right Bing Maps:
https://krpano.com/krpano.html?xml=examp…google-maps.xml

Best regards,
Klaus
On my machine with firefox (on win 7-64bit), there is a bug of orientation within bing map(the radar is 180° rotated). It's work fine with chrome.

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

32

Monday, April 16th 2018, 5:11pm

Do you have a link to your example?


Well, it's in examples from krpano package (googlemaps example)
just replace googlemaps to bingmaps and that's it, we will see wrong radar direction.

I have tested pr13, pr14, pr16 krpano versions with bingmaps html5 radars, all versions has same bug

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

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

33

Monday, April 16th 2018, 5:18pm

Sorry, you are right, it depends on browsers some of browsers has a bug with bingmaps rotation

In my case it's Safari - bug, Mozzila - ok, Chrome - bug

screenshot http://prntscr.com/j6081r

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

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

34

Monday, April 16th 2018, 5:20pm

And here is test from your link

http://prntscr.com/j608we

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

35

Monday, April 16th 2018, 5:21pm

On my machine with firefox (on win 7-64bit), there is a bug of orientation within bing map(the radar is 180° rotated). It's work fine with chrome.
Tested also with Firefox and Chrome on W7 and works for me...
And the radar drawing code is very simple and independent of any browser or system stuff, so not sure what there could go wrong there...

Well, it's in examples from krpano package (googlemaps example)
just replace googlemaps to bingmaps and that's it, we will see wrong radar direction.
Tried too (and example above is basically that) and works for me...

Strange... I will try further...

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

36

Monday, April 16th 2018, 5:25pm

And the radar drawing code is very simple and independent of any browser or system stuff, so not sure what there could go wrong there...

Yep, that's what i thought too, and was really wander about this :))

It's on my Mac

But here is the test on Windows (Win10 64) system

http://prntscr.com/j60bkh


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

Mael B.

Trainee

Posts: 133

Location: France, Montpellier

  • Send private message

37

Monday, April 16th 2018, 5:36pm

More and more strange ! I try it again and now, on my machine, it's still buggy with firefox... and also buggy with Chrome ! So, I also tested IE and it's work fine.

If the issue is not easily replicable, perhaps it's a problem on the bing map server side ?? (and also perhaps involving connection location ?)

38

Monday, April 16th 2018, 6:12pm

I was now able to reproduce it on the iPhone (on Desktop browsers I had no change), but even there is appears only randomly every few reloads...

...and after some testing and data-logging this is clearly a bug in the Bingmaps API itself - the 'tryPixelToLocation' function there returns wrong (inverted) values in the not working cases...

After some research I've found another Bingmaps API bug-report about that same problem:
https://social.msdn.microsoft.com/Forums…?forum=bingmaps

According to the report above that bug is fixed in the experimental branch of the Bing Maps API (the krpano bingmaps plugin is currently using the 'release branch') - and yes, it seems to be fixed there. But the problem is that this bug-report is already 1,5 years old and the fix is still not in the release branch - and using the 'experimenta branchl' by default could be also a bit risky for other unexpected API changes in Bingmaps that could cause other problems... Will keep on testing...

39

Monday, April 16th 2018, 6:43pm

Update on the Bingmaps problem:
I've found now a simple but effective workaround by testing the Bingmaps API for correctness - I'm requesting the locations of two points, one point a bit below the other - and when their relative position returned by the API is wrong, I know the API doesn't work and can manually correct/invert the values ;-). So everything works and regardless if and when it will be fixed on Microsofts side.

Here an updated bingmaps.js with that workaround: bingmaps.zip (will be included also in the next krpano release of course).

Best regards,
Klaus

Posts: 68

Location: Philadelphia, Pennsylvania

Occupation: Retired S/W engineer

  • Send private message

40

Tuesday, April 17th 2018, 5:13pm

{how can I delete this unwanted quote?}
I'm sorry to hear this about the LG browser's video mode, but not surprised. How did you determine it?
That browser also crashes on panos with large cubeface sizes, so is really not much use.
But by using the TV as a 4k 3D monitor, we should still be able to show interlaced stereo from web pages.
I have also a LG 3DTV - it's a 4k TV with passive 3D - but the TV browser there doesn't render webpages in the native 4K resolution, the browser only uses a 1920x1080 resolution - and with that interlaced stereo output is not possible - interlaced stereo would require a 1:1 unscaled rendering at the screens physical resolution...