Posts by robjlg

    Internally in krpano I'm storing the 24bit depthmap RGB images in a different order - RED = most significant byte and BLUE = less significant.

    Klaus, thank you for your response! I have generated new files with RED = most significant byte and BLUE = less significant, 1024 width. Please see BGR_depthmaps folder.

    I know a model can bring better results. A day of scanner work can generate more than 100 scenes. With 24bit depthmap RGB images I can generate it automatically.

    I will make a version to generate only 16 bits ( Green and Blue, 65,536 depth units ) depthmaps to see if it could bring good results and better performance.

    Please, let me know if you want more info or samples

    Thank you


    Hello Klaus, thank you for the Krpano program. This message will be a little bit longer

    I made a program to generate an image depthmap the from laser scanner 32 bits float depthmap. The 8 bits depth limit is a big problem. Please see the images bellow.

    I understood that krpano generates a 24 bits depthmap internally from stl. Could Krpano read the depthmap from a 24 bits RGB PNG as a 24 bits depthmap?…79766#post79766
    I generated PNG depthmap using the RGB to code a 24 bits integer representing 16,777,216 units of depth. BLUE store the most significant byte and RED the less significant.

    Could you consider making krpano able to read depthmaps from a color PNG file generated like this?

    The files I generated can be download from here. Please let me know if you want more examples or the files generated in other way.

    Bellow some images to illustrate the problems with 8 bits depthmaps. I did not yet upgrade my brand free license to the new version ...

    In this scene, the maximum distance is around 29 m, when mapped to only 256 values allowed by 8 bits it, one unit is ~ 0.1133 m this results in strange artifacts as showed:

    Limiting the max distance to 7.00 m makes one unit ~ 0.027 m. The artifacts are reduced but not eliminated and this introduces errors beyond 7.00 meters.

    After 7 m it becomes like a sphere

    Above, we can see the borders distorted as a sphere. Bellow, the full 29m range, but with larger artifacts

    The pano are:

    And an PNG BW 16 bits gray

    Technically supporting higher bit-depths for the depth-map image is not the problem, when using DEPTH or STL files and using the rendermode="depthmap" setting krpano internally also generates a 24bit depthmap image for rendering.

    Klaus, what is the resolution of the internally generated 24bit dephtmap? 1024x512 ?

    It is generated when the pano are loaded, right?

    Could it be possible to write a krpano plugin to generate this internally generated 24bit dephtmap from some external data?

    Thank you



    I'm testing an auto change scene when in autorotate for more than 15 seconds. I played with KEEPMOVING and KEEPVIEW but it appears that there is no difference when I use KEEPVIEW

    Also, when not in autorotate, and manually change the scene, having KEEPMOVING on skin_settings


    it acts as it was KEEPVIEW !

    I want KEEPMOVING but not KEEPVIEW. I want the new loaded scene to look at the scene view settings.

    Is it a known bug? Could you recommend a workaround?

    Thank you


    Ok, cannot, so I did as the others items

    <item name="fs" caption="[div style=[sq]text-align:left; display:inline;[sq] /]Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]" onclick="switch(fullscreen);" devices="fullscreensupport" />

    And add 2 events to change caption

    <events "
    onenterfullscreen.fullscreensupport="set(contextmenu.item[fs].caption, '[div style=[sq]text-align:left; display:inline;[sq] /]Exit Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]');"
    onexitfullscreen.fullscreensupport="set(contextmenu.item[fs].caption, '[div style=[sq]text-align:left; display:inline;[sq] /]Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]');"


    Hi, I tried to set up a special format for FULLSCREEN CONTEXTMENU caption but it did not work. It just displayed the text as was.

    enterfs="[div style=[sq]text-align:left; display:inline;[sq] /]Full Screen [/div/][div style=[sq]float:right; text-align:right; display:inline;[sq] /] F [/div/]"

    For others items on my menu this worked very well. I wonder, it is not possible to use HTML on enterf or exitfs attributes?

    Thank you



    I changed the load_object_json() function to be able to load all materials defined on the json file and stored the scene object.

    So, I can access and modify parameters from KRPANO XML file:

    copy(obj, plugin[threejs].obj[3D/LONDON/LONDON.js]);
                	set(, 14.5); set(, 21.5); set(, 270); set(, 0.7);
                	set(, 0); set(, 130.0); set(, 180);
                	trace('OBJ.PROP.NAME : ',;
                	trace('OBJ.PROP.ATH : ',;

    Also, at the end of the start() function, I added:

    krpano.set("plugin[threejs].update_object_properties", update_object_properties);

    It worked but, transparent parts appears into some mesh.

    I tried to update the file three.min.js to a new version but did not work. Some one was able to successfully update this file? Any tips?

    Thank You