Sie sind nicht angemeldet.

1

Donnerstag, 28. August 2014, 14:07

A bug with "screentosphere"

Quellcode

1
2
3
4
5
6
7
<action name="ttt"> 
screentosphere(10,10,a,b); 
trace(a,"_",b); 

screentosphere(50,20,c,d); 
trace(c,"_",d); 
</action>


it trace the same result......why?

2

Donnerstag, 28. August 2014, 18:42

Simple look at the documentation would give you idea:
http://krpano.com/docu/actions/#screentosphere

All parameters must be variables, using values is not possible!
Result was exactly the same as you where using 0 instead of varialble with the value.
Try with:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
screentosphere(10,10,a,b); 
trace(a,'_',b); 

screentosphere(50,20,c,d); 
trace(c,'_',d); 

screentosphere(0,0,e,f); 
trace(e,' _ ',f); 

set(g,100); set(h,200);
screentosphere(g,h,res_g,res_h); 
trace(res_g,' _ ',res_h); 

3

Freitag, 29. August 2014, 03:27

@Umalo

thank you very much.