WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How do I calculate visual angles of objects in vizard? (https://forum.worldviz.com/showthread.php?t=5693)

lklab 04-13-2016 01:37 PM

How do I calculate visual angles of objects in vizard?
 
I am using the DK1 Oculus rift. How can I calculate the visual angles of objects in the scene?

Jeff 04-13-2016 10:20 PM

The vizmat library includes commands for calculating angles and other mathematical operations. Can you describe further what you mean by visual angles?

lklab 04-16-2016 09:08 AM

From wikipedia: "The visual angle is the angle a viewed object subtends at the eye, usually stated in degrees of arc. It also is called the object's angular size."

Heres a diagram:
https://upload.wikimedia.org/wikiped...onDefs.svg.png

Basically I want to find the perceived size of an object in terms of angle occupied in the visual space. I wasn't sure how to calculate this because I don't know how vizard calculates each screen or how the oculus may distort things.

Also, is there an easy way to measure how big an object in vizard is?

Jeff 04-18-2016 05:52 AM

You can use vizmat.Distance to calculate the distance from the viewpoint to an object and node.getBoundingBox to get the dimensions of an object.


All times are GMT -7. The time now is 11:30 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC