DevalVR support

 

It is currently Sun May 19, 2013 10:12 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Limiting the field of view in Java
PostPosted: Mon Oct 29, 2007 7:14 pm 
Offline

Joined: Wed Oct 17, 2007 10:34 pm
Posts: 19
Location: kent, UK
Hi

Im using devalVr with some degree of success on my website www.360ukproperty.co.uk. The home page is under construction!
Im using Pano2QTVR to create the flash and QT movies which allows me to play with a few settings within the software, like limiting FOV, Tilt etc.
Sometimes I'm lazy to remove the tripod from the nadir and limit the Tilt to avoid the back hole.

However, im not sure how to limit the Tilt if using Ptviewer with DevalVR....
I dont know where to input the minTilt and maxTilt parameters.

Can someone shed some light please, with instructions.

Thank you in advance.


Top
 Profile  
 
 Post subject: any ideas?
PostPosted: Wed Nov 21, 2007 3:03 am 
Offline

Joined: Wed Oct 17, 2007 10:34 pm
Posts: 19
Location: kent, UK
With no responses Im guessing maybe my question does not make sense.
I would like to know how to limit the field of view when using PTviewer alongside the detection code.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 21, 2007 10:20 am 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Sorry 360ukproperty, I did not see this post. Wow! the date is from 29 Oct 2007 !!! :(
For future questions, if you see that I does not answer in few days you can send me an email to fierodeval[at]gmail.com

I see what you use "viewerparameters" function to add QT and DevalVR parameters. You can use this function to add PTviewer parameters, with "java" in the first parameter:

viewerparameters("java","tiltmin","-75");

and in your code:

Code:
<SCRIPT type="text/javascript">
viewerparameters("qt", "autoplay", "true");
viewerparameters("devalvr", "autoplay", "1", "firstautoplay", "1,50", "autoplayspeed", "8");
viewerparameters("java","tiltmin","-75");
writecode("moviefiles/arnage/hummer.mov", "moviefiles/arnage/hummer.mov", "moviefiles/arnage/hummer.jpg", "moviefiles/arnage/hummer.swf", "moviefiles/arnage/hummer.jpg", "75%", "-170");
</SCRIPT>


regards!


Top
 Profile E-mail  
 
 Post subject: what about tilt in DevalVR?
PostPosted: Wed Nov 21, 2007 6:19 pm 
Offline

Joined: Wed Oct 17, 2007 10:34 pm
Posts: 19
Location: kent, UK
Fiero, needless to say, that worked 100%.

However, trying the "maxrotationx" and minrotationx" inthe devalvr parameters doesnt work?

Code:

Code:
SCRIPT type="text/javascript" src="detectvr.js">
</SCRIPT>
<SCRIPT type="text/javascript">
viewerparameters("java", "tiltmin", "-75","tiltmax","75");
viewerparameters("qt", "autoplay", "true");
viewerparameters("devalvr", "autoplay", "5", "firstautoplay", "2,75", "autoplayspeed", "7", "minrotationx", "-75", "maxrotationx", "75");


I realise that you can set these paramaters whilst making the movie in pano2qtvr, but if would be useful to do it in the viewerparameters too.

thanx
gus


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 21, 2007 7:18 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
uf! recently I added a new QTVR to read the rotation limits in some strange MOV files and commited an error with "rotationx" plugin parameters.

Test the latest version. Rotationx limits are different in DevalVR, because these values are refered to the center of the camera instead of the field of view like QT of PTviewer. maybe you must use -35 and +35 instead of -75 and +75. Get these values with "Debug->show camera values" with default zoom.

regards!


Top
 Profile E-mail  
 
 Post subject: it works!
PostPosted: Thu Nov 22, 2007 1:41 pm 
Offline

Joined: Wed Oct 17, 2007 10:34 pm
Posts: 19
Location: kent, UK
Hi Fiero,
Ive tried it, it works now.
For the other users, Ive copied the code I use to limit the field of view in the panos where I want to hide the nadir and/or zenith for whatever reason. This is for the devalVR viewer.

Code:
<SCRIPT type="text/javascript">
viewerparameters("java", "tiltmin", "-75","tiltmax","75");
viewerparameters("qt", "autoplay", "true");
viewerparameters("devalvr", "autoplay", "5", "firstautoplay", "2,75", "autoplayspeed", "7","minrotationx","-25", "maxrotationx","25");

writecode("moviefiles/arnage/hummer.mov", "moviefiles/arnage/hummer.mov", "moviefiles/arnage/hummer.jpg", "moviefiles/arnage/hummer.swf", "moviefiles/arnage/hummer.jpg", "90%","80%");

</SCRIPT>


As Fiero said, the degrees are measured from the bottom and not the top. So if you want a 75 degre tilt from the virtical, you have to subtract this from 90 in tother words use "minrotationx","15"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 22, 2007 2:00 pm 
Offline
I only was walking somewhere...
User avatar

Joined: Tue Aug 09, 2005 1:55 am
Posts: 2007
Hi 360ukproperty,

For your pano http://www.360ukproperty.co.uk./gallery ... dview.html your default field of view is 70. So, you have +35 to the top and -35 to the bottom. In DevalVR you must subtract these fov/2 to limit TILT values. If you want to limit -75 and +75 you must use:

maxrotation= tiltmax - (default fov)/2 = 75 - 70/2 = 40
minrotation= tiltmin + (default fov)/2 = -75 + 70/2 = -40

So, you must use "minrotationx", "-40", "maxrotationx", "40" . Sorry for the confusion ;)

regards!


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group