Posts by Kabkee

    Hi, klaus thank you for having me reply so fast.


    To make things clear, I prepare a sample code!

    It could be somehow a chrome bug.

    With renderer 'webgl', an interactive area hotspot works fine.

    But when it comes with 'css3d' renderer, it become smaller even if its div size is correct and the parent div is set at the correct size.

    Please have a look at the following urls ;

    1. webgl renderer interactive video - https://look360.kr/project/krpano…rtscene=scene_2
    2. css3d renerer - https://look360.kr/project/krpano…ene=scene_2_css


    I found this issue when I test applying css filter on krpano div sprite.

    The point of the smaller video with css3d renderer is its parent div is the correct size. but the <video /> element itself is NOT.


    For more information,
    I found on 1.21 version, the css3d video hotspot is just disappeared. Because of that, I tought that the css3d is not supported on normal view of PC, mobile.

    I found on 1.20.11, 1.20.09 versions, the css3d video hotspot is showing but smaller size unexpactedly.

    I'd like to test how to have the video in VR is got affected by css "-webkit-filter".

    For the reason, I have to change the video hotspot into a css3d renderer version.

    Unfortunately, the video disapears. with normal renderer (not mention or webgl, it works properly)

    on 1.20.09 ver, it disappears but the mouse cursor changes when it's hovering on the hotspot.
    on 1.20.11 and 1.21 ver, it disappears. I can NOT see it, and NOT feel it.


    It's not supported or do I have to set some other atrtributes?

    Thanks.


    @ Kabkee
    anyway, in any case only the direct caller is accessible! you cant get a higher caller
    thats why the example above hardcodes the callers name inside the callback function
    this way you have the needed information

    Yes. that makes me sense. All about the local scope and callwith you said, I agree with them.
    To make simple the topic of this thread, I brought a new sample code below.

    Today I have a deep thinking time on this, and I got an idea *w00t* *attention* why it is.
    My guess is that It is because "klaus make this so".
    I don't know it's in purpose or not, but please review the blow code.


    Playsound oncomplete, tween donecall works the same.
    All returns "got YOU".

    Code
    <action name='anaction'>
    	set(getMyName, 'got YOU');
    	tween(view.hlookat, 90,,,
    		trace(getMyName); // got YOU
    	);
    	playsound(narration, get(sound_source[effect_popup].url), false, 1,
    		trace(getMyName); // got YOU
    	);
    </action>


    Playsound oncomplete, tween donecall works differently.


    My Guess,
    1. tween is genuine krpano action and its donecall works remaining in krpano.
    2. playsound is a plugin action which is integrated with howlerJs.
    3. In the code of integration, (maybe) in the listening event callback function don't get any information because the callback function is running in an isolated function which is in static mode.


    What do you think?

    I think. Only Klus can reveal the fact how this possible.
    I'm just curious and this has not been solved clearly for few days :(

    OK.
    As you called the 'oncomplete' as a "callback", YES I think it's real javascript callback function which could not access other territories, variables.
    Specially, in such a limited environment like krpano javascript type action. (Somehow, it works so in krpano to get intergrated with pure Javascript library - hower js)


    As Hyung mentioned in the thread - https://krpano.com/forum/wbb/inde…&threadID=19413
    The two different callback - "donecall" and "oncomplte" - look like the same, but work differently.


    Then, could I make the conclusion of this tread?

    Why I made this tread is to get access caller (in local scoped action) in oncomplete(callback function of playsound, Sound Interface).
    However, it's not possible to get the history of callback because of the mechanism or so.


    Related to this thread,
    one thing left question driven from Hyung is that.


    1. HOW donecall of tween and oncomplete of playsound (sound interface) are differently working in Krpano?

    2. WHAT makes donecall of tween and oncomplete of playsound (sound interface) work different in the same situation?


    I'd like to get your opinion or advice to use them correctly with right knowledge.
    Thank you in advance.


    strange.. it works fine here
    proof of concept -->


    Thank you for your example. it works. Yes, I know.
    But ah...

    I got to know that I mistitled this post and I should had to mention the words "oncomplete of playsound - SoundInterface"


    I re-point that
    "I want a way to get caller of local scoped action which called from a hotspot in oncomplete of ""playsound"" action."

    There's no way so far, and i wrote this post.
    AND I'm finding other's opinions, its possibilities, or the exact reason why it is.


    ""I hope that you tried my code which mentioned the beginning.
    specially, have your attention on "playsound" action and in the oncomplete session, you cannot get any caller in there.""


    Thank you for your prompt response.
    and you right mentioned that's why I'm finding a way to get access some variables out of the local scope of playsound's 'oncomplete'.

    I know there's no anaction, no anhotspot in the scope of 'oncomplete', it makes me feel like it's so much isolated from other scopes.
    But, it can access to "global" !!

    The following code works:

    Code
    <action name='anaction' scope='local'>
    trace(caller.name);
    copy(global.callerName, caller.name);
    playsound(narration, get(sound_source[effect_popup].url), false, 1, trace(get(global.callerName)) );
    </action>


    However, it's not the way what I do NOT want.
    So, here's my solution. make a xml element and using its' attribues like below:

    Code
    <some_setting tempcaller='' />
    <action name='anaction' scope='local'>
    trace(caller.name);
    copy(some_setting.tempcaller, caller.name);
    playsound(narration, get(sound_source[effect_popup].url), false, 1, trace(some_setting.tempcaller) );
    </action>


    As you expected, the above codes are work properly.


    Unfortunately, your codes below are not working.

    Code
    maybe that works:
    calc(local.callback, "trace("+caller.name+")");
    playsound(_name_, _source_, false, 1, get(callback));


    Maybe.. or somehow, there could be a better solution to get access to caller from oncomplete???
    *whistling* *rolleyes* *confused*


    !! UPDATE !!
    I'm using krpano ver. 1.20.11.
    ------------------

    I don't know exactly when it started 'oncomplete' running differently.
    I think it could be from krpano ver. 1.20 updates which had had replaced its sound interface from HTML5-Audio to webAudio API.
    --- if possible, I'd like to know when it started exactly just for information.


    - this action works as usual : playsound(_name_, _source_, false, 1, oncomplete() );


    But in a local scope action, the 'oncomplte' cannot access caller.
    'caller' is not the caller itself who acually called the action, but trace() shows null.

    Code
    <action autorun='onstart'>	callwith(hotspot[anhotspot], anaction);</action>
    <hotspot name='anhotspot' />
    <action name='anaction' scope='local'>	trace(caller.name); // anhotspot	playsound(_name_, _source_, false, 1, trace(caller.name) ); // undefined or null</action>


    in that case, if you needed get the extra information from the caller - the hotspot named 'anhotspot' is NOT possible in 'oncomplete'.

    Yes, in different way, it could be solved problem,
    However, I'd like to know if there's another way to get the action caller in easy way OR it's impossible to be accessed.

    Thanks.

    Embedding Pano, with embedpano();

    I implemented onready attribute and all works good.

    However, sometimes I faced the below error when I too fast to call krpano actions before changing black screen to pano just in time (i don't know when exactly)

    Every single time when new pano loading. there are chances.


    Code
    VM41313:8 Uncaught TypeError: Cannot read properties of null (reading 'webGL')at Q (eval at B.e.loading (eval at embedpano (tour.js:10:73)), <anonymous>:8:73)at Object.l.callaction (eval at embedpano (tour.js:10:73), <anonymous>:1:92617)at Object.l.processTicks (eval at embedpano (tour.js:10:73), <anonymous>:1:96938)at ff (eval at embedpano (tour.js:10:73), <anonymous>:1:37166)at b (eval at embedpano (tour.js:10:73), <anonymous>:1:348535)


    It seems DOES exist the krpano instance in the code, i think because the pano works well.
    But it shows the error and freeze the screen. When only changing black to new panos (when right just before loading another pano)


    Since that, I have to setTimeout on 'onready' function for wait 0.5 sec for calling the first one of krpano actions.
    But it doesn't help, because it's not just 'instance ready or not' issue.


    Any Idea for this?
    Waiting for your advice. thanks.


    I'm using ;

    - Mac OS Monterey v 12.2.1
    - Chrome Browser Version 99.0.4844.74 (Official Build) (x86_64)

    After testing, I found that the raycaster is reversed due to the value created by camera projection_matrix, but I don’t know anything about projection_matrix


    I only removed minus(-) in which "-mouse_y" in the line of raycatser's ray direction set as like the below, it show the right direction.

    Code
    camera_hittest_raycaster.ray.direction.set(mouse_x, mouse_y, 1.0).unproject(camera).normalize();


    but the intersection is not sill working :(
    even it's not directing the correct way with the mouse pointer.


    my test resource is in the link , and can see the live source in the link
    please check them out, and anyone got some ideas, comments, or advices please let me know :)

    Good luck with ThreeJs

    I'd also experienced this when i use everpano naviation plugin.
    For making not this happen, I remove all everpano relative plugins, and add plugins made by Klous in a krpano example.

    I don't know why but i think some where relative axis is different from default ones which made by krpano tools.



    Using Autolock and automatically play the sound, onplay event is not fired at the moment.
    The below doesn't work.


    streamsound(bgm, get(sound_source[bgm].url), true, 1);
    set(sound[bgm].onplay, trace(onplay) );

    After pause and play, the event is fired properly.
    Automatic playing is not firing the event.


    Sometimes when I get the paused attribute, autoplayed sound says it's paused, even if it's playing the sound.


    Which part that I should fix?


    Hi,

    no sorry, transparent multi-resolution panos are generally not possible yet.

    During rendering the tiles from several resolutions can overlap and depending on the used render method/order (depending if a webgl depthbuffer is available) this would result in a 'broken' rendering. Additionally transparent renderings are problematic with the scene blending.

    Best regards,
    Klaus

    I see.
    Thank for your response.
    *thumbup*

    This question is from putting background image behind Object VR.
    But After some research and reviews from this forum, I don't get any proper answers.

    Please see my further questions.


    Question 1.
    Is it possible to parse (making multi resolution tiles) images in PNG (with transparent background color)?
    Default result format seems to be JPG, it could be impossible to be made PNG files

    tilepath=%INPUTPATH%/%BASENAME%.tiles/l%Al[_c]_%Av_%Ah.jpg


    Question 2.
    Can I make background color transparent?
    We can set the background color by passing embedpano bgcolor parameter. but impossible to pass transparent.
    It IS working as transparent, but <canvas> which renders VR itself, the background color is set to be black.

    * What it is *

    Level indexstart value has been 1 for default.
    It is always the same from krpano version 1.18 as i know
    However, i confirmed today that it changes the generated levels from ascending to descending.


    In 1.18 version, when making tiles with 12,000 x 6,000 px images,
    Level 1 was high resolution tiles.
    Level 3 was low resolution tiles.

    but now, In 1.20 version, (I don't know exactly from when)
    Level 1 is low resolution tiles.
    Level 3 is high resolution tiles.


    * What Problem is *

    I know and agree that this tile leveling is more natural and intuitive.
    But, I need to reverse order leveling like version 1.18


    * My Questions *

    1. Is there a way to set a level order ascending or descending in krpano Tools Config File?
    2. If possible, can I get the 1.18 version macOs/linux version krpanotools executable files?


    Thanks.

    Good News : New version released.

    It could be a hard work for a man developing a program and support its customers all over the world.
    However, it is to support customer for the most part of the running a business.

    I leave a my true story below;

    I bought everpano on last year, 2020.09.
    And over a month, I've had rendering problem on all my window/linux/mac computers .
    I used all the 3 computer registered slot, but cannot remove them at all - the link has been broken.
    it's been over a year and a half since I bought the program and even it's NOT run properly at least once.
    Almost my computer are gone. I replaced them all.
    When I install the new version everpano, it says "the register key already registered 3 computers, buy new license."


    Even now, I'd love to use everpano 1.3 but it's not a good solution for me to buy new one.
    I've got an experience that I cannot use the program at least once in my history.

    Even it takes time,
    I'd love to get supported from customer service for my problem, and I use them in near future.
    I really hope so.


    - i cannot remove the computers with the link that could remove the registered computer link, which is informed in an official everpano email not working, https://everpano.com/documentation/license.php
    - everpano customer service does not working for over years by instagram, facebook, direct email, even this krpano forum.

    [quote='klaus.krpano','index.php?page=Thread&postID=84518#post84518']Hi,

    about autoalpha - right, there is unfortunately a bug - will be fixed in the next release:
    Hi,

    about autoalpha - right, there is unfortunately a bug - will be fixed in the next release:
    autoalpha ?


    Best regards,
    Klaus
    Alright.
    It happens case by case(project by project) to me.

    For an alternative way, I set visible as well as setting alpha.
    I will be glad if autoalpha's health is back.

    As regards to Klaus,
    Be careful of covid19.