different view attributes following targeted devices

  • Hi,

    i my main .xml :

    Code
    <view fovtype="MFOV" hlookat="145"  vlookat="0" fov="100" maxpixelzoom="1.0" fovmax="110"  limitview ="range" vlookatmin ="90" vlookatmax ="-115" />


    look ok on flash and allow a better range on zenith part, but it give distorted view on iDevices,
    then, when i supress :

    Code
    limitview ="range" vlookatmin ="90" vlookatmax ="-115"


    iphone fov back to normal,

    so what's the best solution , to give individual attributes view parameters for flash and iDevices ?
    i was thinking to add an action on start saying if flash = add this : limitview ="range" vlookatmin ="90" vlookatmax ="-115",
    is this correct way (no the syntax istelf , but the idea) ??

    or there an easier or cleaner way to do that ?

    thanks for enlightnement *smile*

    z

  • Hi zadda,

    i was thinking to add an action on start saying if flash = add this : limitview ="range" vlookatmin ="90" vlookatmax ="-115",
    is this correct way (no the syntax istelf , but the idea) ??

    So, why not to try *wink* ...

    Code
    <krpano version="1.0.8" onstart="if( isflash , do_isflash() )" >
    
    
    <action name="do_isflash">
    	set(view.limitview,range);
    	set(view.vlookatmin,90);
    	set(view.vlookatmax,-115);
    </action>

    I think it should work...

    SAlut.

Participate now!

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