Make object 360 fade in other object 360

  • how to fade betwen 2 or x object 360 ?
    i load first object 360 is in rep 01

    Code
    <cylinder url="01.tiles//l5/%0v_%0h.jpg" />

    i press next hotspot load second objet 360 is in rep 02

    Code
    <cylinder url="02.tiles/%0f/l5/%0v_%0h.jpg" />

    how to make this please

    Thanks for your help. *wink*

  • hi Klaus,

    ok this solution is ok but it's not work for me because
    i have 18 picture for my object N1
    i see picture number 1 object N1 and un load another xml object N2 i see picture number 1 it's good
    but
    i see pecture number 5 objetc N1 and un load another xml object N2 i see picture number 1 i'ts not good
    i want to see picture number 5 object N2

    set(val,01)

    <hotspot onclick="action(add(val, 1);)" />
    <cylinder url="val.tiles/%0f/l5/%0v_%0h.jpg" />

    but i don't know how var do it
    have you tuto for explain my how var make this ?

    best regards
    crom1

  • Hi,

    the object rotation is just the frame number (stored in image.frame),
    so you could try something like this:

    Code
    <!-- save the current image.frame number to a custom variable named currentframe -->
    copy(currentframe, image.frame);
    
    
    <!-- now load the new object -->
    loadpano(....);
    
    
    <!-- set the current frame number to set previously saved -->
    copy(image.frame, currentframe);

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!