NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/
October 22, 2017, 01:14:19 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
Google Bookmarks Yahoo My Web MSN Live Netscape Del.icio.us FURL Stumble Upon Delirious Ask FaceBook

Pages: [1]   Go Down
  Print  
Author Topic: Modifying a Java Applet  (Read 9085 times)
0 Members and 1 Guest are viewing this topic. Click to toggle author information(expand message area).
wallenx
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
on: March 10, 2008, 09:09:33 pm » posted from:Hsinchu,T'ai-wan,Taiwan

Hi, Could you please modify the ray tracing java applet on this web site
http://mrl.nyu.edu/~perlin/experiments/autostereo/

so that it can track 5 simultaneous heads at the same time when in CYCLE mode [top right corner on page click]

The Original Java code is also provided on the site at the the following links:

http://mrl.nyu.edu/~perlin/experiments/autostereo/AutoshutterApplet.java

http://mrl.nyu.edu/~perlin/experiments/autostereo/GenericApplet.java

Thanks


Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #1 on: March 12, 2008, 10:05:52 am » posted from:Taipei,T\'ai-pei,Taiwan

The following message was quoted from http://mrl.nyu.edu/projects/autostereo/
Quote
In order to present a stereo 3D image, each eye must see a different perspective rendered on the display corresponding to its position in space. The computer must know the position of each eye to accurately render the correct views. A parallax barrier 2-4" in front of the screen separates the views so that each alternating stripe is seen by a different eye. Note that the system can account for changes in the viewers position and orientation by changing its pitch. The barrier is dynamic - moving quickly over three phases so that it won't be perceived by the viewer. It rapidly cycles through 3 different positions (phases)  - at the end of the cycle each eye has seen every pixel on the screen, but different pixels at each phase. The use of 3 phases also allows us to separate the stripes by black spaces which allows for some registration errors in the system.
What I did not understand is that why some of the pattern are overlapping each other while cycles through 3 different phases.
I want to understand it (before I create one). Is there any movie should the real device and what it look like when it is in operation?


* img.gif (89.94 KB, 501x453 - viewed 272 times.)
Logged
wallenx
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
Reply #2 on: March 12, 2008, 08:37:38 pm » posted from:Hsinchu,T'ai-wan,Taiwan

Thanks for the quick response. That's very kind of you.

The eye is an integrator so the barrier stripe (black lines) spends more time on the areas it's supposed to block and less time on the areas that the eyes are supposed to see through. Thus sometimes in the fast transitions from one position to the next the lines overlap but only briefly. And if this overlap is done at a rate that is faster than 60Hz the eye cannot perceive it distinctly due to the fact that human eyes cannot distinguish individual frames easily when the frame rate is 60Hz or above.

For example, if the display shows a 3D image to 1 person. Then it needs the separate the left eye image pixels from the right eye image pixels at a rate such that 60 Hz (full motion frame rate)  it shows the Left eye pixels while blocking the right eye pixels and also 60 hz showing the right eye pixels while blocking the left eye pixels. Thus the barrier has to move at rate r such that  approximately 120Hz <= r  to accomplish this.


For 2 viewers then it similarly has to cycle through all the four eyes of the 2 simultaneous viewers as well at a rate  r such that approximately 240hz <=r

For 3 viewers , then r is approximately 360Hz <= r
.
.
.
.
For n viewers , then r is  120Hz*n <=r

The advantage is that by cycling through the different positions instead of just being fixed at those positions the display brightness is increased.


Unfortunately nobody has ever actually build a display like this for more than one person [but the computations have been proposed] that I can show you.
 
Please see the following paper under the Controller Algorithm section and proceeding sections:

 http://www.evl.uic.edu/aej/papers/vr07.pdf 


Special Request: Actually if you could write the java simulation for just an arbitrary "n" number of simultaneous viewers that can be changed by the simulation observer that would be the ultimate goal as my barrier that I fabricated is actually capable of more than 25 000 Hz or about 208 simultaneous 3D viewers.

Again, thank you very much.
Logged
Fu-Kwun Hwang
Administrator
Hero Member
*****
Offline Offline

Posts: 3080



WWW
«
Embed this message
Reply #3 on: March 21, 2008, 08:03:29 pm »

Sorry for the late reply. I was very busy during the last week. So I did not access this web site until tonight and I just found your message. I will try to read your pdf file during the weekend and response as soon as possible.
Are you in Taiwan right now? Because I just noticed that your IP is from NCTU.
Logged
wallenx
Newbie
*
Offline Offline

Posts: 3

«
Embed this message
Reply #4 on: March 24, 2008, 05:47:17 pm » posted from:Hsinchu,T'ai-wan,Taiwan

Hi,
Thank you for the response. Yes I am in Taiwan right now. I am a foreign exchange student at NCTU working on a 3D Display project for multiple simultaneous viewers without the need to wear glasses.

Again, thank you for the kind assistance. Looking forward to hearing from you, and maybe one day I can stop by your University and thank you in person.



Logged
Pages: [1]   Go Up
  Print  
"Progress, therfore, is not and accident,¡K" ..."Herbert Spencer(1820-1903, British philosopher)"
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
java applet showing modes in optical fiber
Wave
indian_boy 5 33384 Last post February 20, 2009, 06:31:15 pm
by concord
I need help on java programming specifically on applet devel
Information and Download
barffour 2 10661 Last post June 06, 2006, 11:19:21 pm
by rhipple
help me.... i need java applet about rutherford scattering
Electromagnetics
gromiko 1 9598 Last post February 16, 2008, 08:16:56 am
by jshearman
how to make the symbol "alpha" appear as α in the java applet
Questions related to EJS
lookang 2 12910 Last post August 13, 2007, 07:48:56 am
by lookang
How to add Java Source: Calc3.java into EJS ?
Questions related to EJS
lookang 4 7854 Last post January 08, 2009, 09:53:44 pm
by lookang
Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.059 seconds with 22 queries.since 2011/06/15