Posts by VRME

    Hi,
    There is no option to set the start angle of the audio. The plugin uses the current hlookat, vlookat, and camroll values of the krpano player and should always be synchronized with the viewing direction. To change the viewing direction, you can set the vlookat value, see <view.vlookat>
    You will probably need to edit the audio and video tracks in an editing program so that the directions match.
    regards

    Hi,
    krpano funktioniert problemlos in einer Angular Umgebung. Dein Problem muss mit einer nicht lizenzierten krpano.js Datei zu tun haben. Binde krpano über die "angular.json" (unter "scripts") ein und stell sicher dass die dort angegebene "krpano.js" Datei lizenziert ist.

    angular.json:
    "scripts": [ "public/krpano/viewer/krpano.js" ]

    app.component.ts:
    declare var embedpano:any;
    ngOnInit(): void {
    embedpano(...)
    }
    app.component.html:
    <div id="pano"></div>

    Edit : I tried with layer[name].childobjects.sortby(name,descending) but it returns unknown action

    maybe something like this could be an alternative:

    JavaScript
    sortby('layer[name].childobjects', 'name','descending');
    
    <action name="sortby" args="arrayname, arraykey, desc" type="Javascript"><![CDATA[
    krpano.get(arrayname).sort((a, b) => {return desc==='descending'? a[arraykey].localeCompare(b[arraykey]) : b[arraykey].localeCompare(a[arraykey] );});
    ]]></action>

    Hi,

    you can use jscall() and jsget() actions for example:

    Thank you for your reply. What I want to achieve is to draw on the panoramic view. The solution I came up with is a transparent background and synchronized perspective, as hotspots cannot fill the screen, or the layer drawing board can partially meet the requirements

    not sure if I understand, but the solution above allows you to draw on your panoramic view. just replace "yourpano.jpg" with yours

    you can change the function draw_grid in canvas.js to insert your pano image:

    JavaScript: canvas.js
    modified draw_grid:
    
        function draw_grid() {
            var image = new Image();
            image.src = 'yourpano.jpg';
            image.onload = function () {
                var ctx = canvas_context = canvas.getContext("2d");
                ctx.drawImage(image, 0, 0, canvas_width, canvas_height);
            };
        }

    Hi,

    yes, the plugin is intended to work together with the built-in krpano videoplayer “videoplayer.js” as a audio transform module. All you have to do is tell the plugin which video it should use via the attribute “videoname”:

    The plugin gets the audio on DOM level and should always be synchronized with the video if you do not perform any additional heavy calculations in the “onviewchange” event, see note in the krpano documentation.
    You can also determine from which deltas soundupdates are calculated and which movements (yaw, pitch, camroll) should be taken into account. To test the plugin with your spatial footage you can use this demo template: https://vrme.eu/spatialsound4krpano/spatialsound4krpano.zip

    regards

    Hallo Klaus,

    danke, das hat funktioniert.

    2 Fragen hätte ich noch zum Thema:

    Funktioniert das encrypten mit Custom keys nur für Javascriptdateien?
    Wenn ich nämlich eine simple XML Datei damit damit encrypte und laden will, geht die Seite bei mir "Out of memory" und zwar unabhängig davon ob dem krpano viewer der Custom key über das Protection Tool und "Embed Custom Encryption " hinzugefügt wurde oder nicht. (Wird die selbe Datei mit einem publich key encrypted tritt das Problem nicht auf)

    Beim Versuch eine JS Datei zu laden die mit einem custom key encryptet wurde, ohne dass dem Viewer der Custom key hinzugefügt wurde, wird die Datei zwar korrekterweise nicht geladen, jedoch erscheint in der krpano console die Meldung "ERROR: parsing 'plugins/test.js' failed:RangeError: Array buffer allocation failed" (bei der test.js handelt es sich um das plugin example https://krpano.com/viewsource.htm…luginexample.js)

    Danke für Hinweise, falls nötig kann ich meine Testdateien posten
    Grüße