• Is there a way to set a new zero point of the coordinate system? I made two panoramas of the same room, before and after tidying up. They can be switched by clicking a button, but as they unfortunately have different zero points, the camera looks into another direction after changing the panorama. Realigning them in my stitching program would be very exhausting.

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

  • Hello michel,

    This doesn't work, as I want to have the same view after changing the pano wherever the camera has looked before. You may want to have a look at the pano: http://kacken.bplaced.net/test/test.html

    I used KEEPVIEW as onclick attribute, but after switching the view is displaced about 90°, as the zero points don't agree. If I for instance could set the zero points to the upper left corner of the door, I had much less work than realigning both panos and make them match perfectly.

    Thank you anyway :)

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

  • Hi Dr. Schneckem,

    Ok.. You need something more complicate *wink* ... So, I am going to try with the following code and try to explain *whistling* ..,

    So, you have two panos of the same place but with an horizontal offset between them. (note: this can be corrected from your stitcher or your painter programs.. But let say you can not).
    We must know the offset value to correct it, and when loading the next pano we must retrieve the actual view to be able to pass this view to the next pano...
    The code above has 2 scenes.
    Each scene call an action when onclick the button...
    the action loadsceneX has 3 parameters to be passed: action(loadsceneX,%1,%2,%3);
    %1 = the scene name to be loaded
    %2 = the horizontal offset between the actual scene and the next scene
    %3 = the vertical offset between the actual scene and the next scene (this is not needed in your example..but here it is..)
    in your example, you have an horizontal offset of about 90º and no vertical offset...
    so the action from the scene1 will be:

    Code
    action(loadsceneX,scene2,90,0);


    and the action from the scene2 will be:

    Code
    action(loadsceneX,scene1,-90,0);


    Here is the action:

    Code
    <action name="loadsceneX">
    		add(hlookat_X,get(view.hlookat),%2);
    		add(vlookat_X,get(view.vlookat),%3);
    		set(fov_X,get(view.fov));
    		loadscene(%1, null, MERGE, BLEND(1));
    		lookat(get(hlookat_X),get(vlookat_X),get(fov_X));
    	</action>


    What it do:
    line 2: -- set a new variable hlookat_X to get the corrected value for the next hlookat... hlookat_X = actual horizontal view + horizontal offset);
    line 3: -- set a new variable vlookat_X to get the corrected value for the next vlookat... vlookat_X = actual vertical view + vertical offset
    line 4: -- set a new variable fov_X to get the actual fov... fov_X = actual fov view
    line 5: -- Load the given scene name
    line 6: -- look at the same view as before

    I have tried this way and it worked.
    Hope this can help.

    SAlut.

  • *love* Worked perfectly. Thank you very much.

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!