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.

  • Hi michel,

    Zitat

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


    ha ha, *g* sure, (not lazyness) but i was short in time and in a hurry with another work too...

    your code example was exactly was i thinking, i will try it when i got more time..


    thanks *wink*

    z

Jetzt mitmachen!

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