Posts by rctdeclan

    Hi everybody,

    I'm working on a virtual tour with spherical images which have to following sizes:

    • 10240*5120
    • 12288*6144
    • 14336*7168
    • 16384*8192


    I've always used the kmakemultires droplet for making the tiles, and copying the files to my tour. Due to the fact that it's becoming a very big tour (57+panorama's) and the capacity of my website is limited (less that 800MB) I want to change the kmakemultires.config file. This is what i have right now:


    For example, I have a 10240*5120 panorama, and I want it to be a multiresolution CUBE.
    2 levels, but when i drop the spherical image on the new config, my images at level 1 aren't the size that i want (10240/4=2560), which results in non-equal images in the second level.

    How can i make sure the cube width is 1/4th of the spherical image's width?

    Declan

    Hi,

    I have a map which i want to use inside a tour.
    I dropped the map onto MAKE PANO FLAT and i embedded everything in kprotect.

    Now i'm trying to use the swf as a plugin, but nothing shows... Can't you have a krpano-thingy in krpano?


    Declan *smile*

    Hi,

    This is the 4th edit.

    Few questions:

    1. Why do we need to give a node a name before we can use it as an array?
    2. the following:

    I have an action:

    Code
    <action name="MakeMyHotspots">
    NewLink(000,000);
    NewLink(000,001);
    NewLink(000,002);
    NewLink(000,003);
    </action>

    But i can't change it to this:

    Code
    <action name="MakeMyHotspots">
    foreach(Tour.pano.link,i,NewLink(000,get(i)));
    </action>

    I will get an error:

    ERROR: remove - unknown array item - n2

    (I'm using foreach action from this tread: http://www.krpano.com/forum/wbb/inde…reach#post12865)

    Hi Steve,

    Here's my problem (Adressing with actions like LoadScene() )

    Code
    <scene name="pano[001]" >
    </scene>

    Currently, i'm still making my scenes statically. By using the Arrays in krpano, i'm hoping to be able to create Scenes dynamically (by actions).

    I'm not sure how to call my scenes.

    I can call them pano[001] , pano_001 or 001 (I think the last one is the best)


    An example
    My TourData node

    Code
    <TourData fovmin="60" fovmax="100">              <!--The TourData node with all global settings for all scenes.-->
    		<pano name="The first panorama" 		caption="the first caption"                   tilesize="745"             firstlevel="5215"       secondlevel="2608"           thirdlevel="1304"               startH="20"           startV="10"             startFov="30"            endH="0"                    endV="30"                   endFov="90">
    			<hotspot	target=002	ath=-93	atv=-3 	/>
    		</pano>
    		<pano name="The second panorama" 		caption="the second caption "             tilesize="745"             firstlevel="5215"       secondlevel="2608"           thirdlevel="1304                startH="20"           startV="10"             startFov="30"            endH="0"                    endV="30"                   endFov="90">
    			<hotspot	target=001	ath=-93	atv=-3 	/>
    		</pano>
    </TourData>

    As i've said before, I want to dynamically create scenes and hotspots.

    So it would theoretically be something like this

    Code
    foreach(TourData.pano.count,i,
    NewScene(i);
    foreach(TourData.pano.hotspot.count,j,
    NewHotspot(j,i);
    );
    );

    and offcourse for the hotspots: (I don't really know how to make sure the hotspot is only for the current scene)

    for some extra information about other actions:

    Code
    <action name="ViewScene">
    		loadscene(Pano[%1], null, MERGE, BLEND(1))
    	</action>
            </action name="IntoAnimation">
            		sub(tempnum,%1,1);
    		tween(view.hlookat,get(TourData.pano[%tempnum].endH),2);
    		tween(view.vlookat,get(TourData.pano[%tempnum].endV),2);
    		tween(view.fov,get(TourData.pano[%tempnum].endFov),2);
            </action>


    If really like if the AddScene function would be added to krpano, Klaus told me in another thread, this isn't possible yet.
    He said that for now, it is only possible to set it with set(scene.content,PUTALLTHEXMLHERE);
    But i hope that he can make scene adding and deleting dynamically, like addhotspot and addlensflare.


    So my 2 questions are:

    • Can i use an array with the scene node, so i don't have to give them a name?
    • Could a addscene function be added to krpano?

    Hi Klaus,

    I'm using the foreach action now. My pano's are called Pano[001], Pano[002] and so on... Now i'm trying to pass a counting variable (i) to the index of the Pano[index] array. But then it isn't Pano[001] but Pano[1]. Is there anyway to make sure the variable has 3 digits?

    Declan

    p.s. Do you think it is possible for the next release to be able to use arrays with the Scene node, and have a new function (like AddHotspot, AddLensflare) for scenes: AddScene?

    Hi,

    i'm trying to write the sphere coordinates from screen position at mouse x and y to the log window.

    I downloaded the mouse plugin from klaus and it works fine.

    here's what i have:

    Code
    <events onkeydown="if(keycode == 70,set(coord1,get(screentosphere(mouse.x,mouse.y)));trace(get(coord1)))" />

    butt it says NULL... (because of the screentosphere, but why?)


    Declan

    Quote

    1) because you need to reference style[PANONAMES], not style[DATA]


    Sorry, my fault. I copied my original code where i use DATA instead of PANONAMES

    Quote


    2) krpano's action language does not currently allow you to use the get() function as an index. What you can do is use an argument (such as %1).


    So you mean i cant use get() in an array index, what is the difference between get() and % ? (variable/argument)
    But could i do this too?

    Code
    set(plugin[IndexText].html,%VAR_txt); 
    
    
    instead of 
    
    
    set(plugin[IndexText].html,get(VAR_txt));


    It works now, thanks!

    I'm now trying to define everything in a TourData node:

    Code
    <TourData>
    	<pano name="Kantine" caption="This is the kantine where grey food is served"/>
    		<hotspot 	ath="170"	atv="20"	target="003" />
    	<pano name="Labratory" caption="This is the labratory where we perform evil experiments"/>
    	<pano name="classroom" caption="This is the classroom where we catch up on our sleep"/>
    </TourData>


    I'm trying to make pano's and hotspots dynamically, because most of the settings are the same for all pano's, and it could be much more efficient to do everything dynamically. (i've got like 30+ pano's....)
    so i want to make a loop which repeats exactly pano.count times. And automatically make new scenes.
    And the same thing for the hotspots.

    But i don't now to make the scenes this way, maybe you know?

    Declan *smile*

    Hi, I'm trying to use that array possibility within style nodes, but i want the counting to start at 1 instead of 0. This is what i did:

    Code
    <style name="PANONAMES" >
    	<pano name="Kantine" caption="This is the kantine where grey food is served"/>
    	<pano name="Labratory" caption="This is the labratory where we perform evil experiments"/>
    	<pano name="classroom" caption="This is the classroom where we catch up on our sleep"/>
    </style>

    and

    Code
    <action name="IndexText">
    	add(VAR_num,%1,1);
    	txtadd(VAR_txt,"[p]",get(style[DATA].pano[get(VAR_num)].caption),"[/p]");
    	set(plugin[IndexText].html,get(VAR_txt));
    	set(plugin[IndexText].effect,glow(0x000000,0.7,4,2));
    	</action>

    But this doesn't work: NULL, the problem lies at the get(VAR_num)
    Any ideas?


    Declan

    Hi,


    I'm working with pano-names (Pano_001,Pano_002,Pano_003...) and index-names (Kantine, labratory, classroom...)

    I want to get a index name in the html of a textfield by giving in a pano-name, i tried to make some variables in a style tag:

    Code
    <style name="PANONAMES"
    Pano_001index="Kantine"
    Pano_002index="Labratory"
    Pano_003index="classroom"
    </style>


    and then let the action pass thrue the variable indexname to the html of a textfield, but the problem is, i will get "get(style[PANONAMES].%1index)" as htmltext because i placed it between [p] and [/p].


    Code
    <plugin name="indextext" url="Plugins/textfield.swf" css="p{font-size:14;font-family:arial;}" />
     
    <action name="indextext">
    set(plugin[textfield].html,[p]get(style[PANONAMES].%1index)[/p])
    </action>


    i've tried to add the 2 p's and my code in a string with txtadd, but it doesnt work.


    Isn't there a way of making your one variables and being able to return them in a action, like:

    Code
    set(mynumber,squaremynumber(%1))
     
    <action name="squaremynumber">
    return(mult(%1,%1))
    </action>


    any ideas?


    Declan *smile*

    Normally you would be able to use a 'all' parameter, or you can parent all the hotspots to a plugin (as far as i know parenting only controls position,rotation and scale, but i can be wrong since i'm a beginner).

    there is offcourse another option to set all hotspots manually, or (i dont know it's possible) use a while-statement. You can number all hotspots like HS1, HS2, HS3... and apply the alpha.

    I think Klaus knows how to do this.

    hope this helps,

    Declan