Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »nefar1ous« (1. November 2012, 04:57)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »Sudarchikov Andrey« (22. Februar 2013, 21:32)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<action name="domouserotate"> if(pressed, if(boundstart === null, copy(boundstart,mouse.x); ); sub(bound_temp, boundstart,mouse.x); Math.abs(bound_temp); if (bound_temp GT 9, set(boundhit,true); copy(boundstart,mouse.x); ); sub(temp,oldmousex,mouse.x); if(temp GT 0, set(temp,1); ); if(temp LT 0, set(temp,-1); ); if (boundhit === true, showframe(get(temp)); set(boundhit,false); ); copy(oldmousex,mouse.x); delayedcall(0.03,domouserotate();); ); </action> |
No offens, but if I would´nt know that you are a great krpano-coder, I could believe your object-code is based on my own ;) Very interesting, that you use almost the same procedure to preload and show the object-frames
On the other hand the routines for object-rotation are pretty straight forward and it´s somehow obvious what´s needed.Hm... interesting :) you did the same? Coder see coder from faraway ;) haha
Zitat
Very interesting, that you use almost the same procedure to preload and show the object-frames![]()
Oh, you are right. It's there, not the best but well.
Zitat
Then what is the action 'updateframesize'?
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
<events onresize="updateframes()" onviewchange="updateframesscale()" />
<action name="updateframesscale">
for(set(i,0), i LT framecount, inc(i),
txtadd(fname,frame,get(i));
sub(temp,180,view.fov);
div(newscale,temp,70);
copy(plugin[get(fname)].scale,newscale);
);
</action>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Sudarchikov Andrey« (28. November 2012, 05:34)