World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 09-25-2007, 06:40 PM   #1
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Cool 3D stereo anaglyph view for WWJ

3D is not really 3D without a stereo view. I just put together a simple AnaglyphSceneController to be used in place of the SDK BasicSceneController. Get the code here.


It only works with a tilted view and the frame rate does drop a bit, but it works quite well in most situations, especially when close to some dramatic relief.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 09-25-2007, 07:07 PM   #2
TomServo
God. Root. What is difference?
 
TomServo's Avatar
 
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,856
Default

Nice. Does it seem to perform any better than the WW.Net plug-in?
__________________


Earth is Square blog

PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe.
TomServo is offline   Reply With Quote
Old 09-25-2007, 09:26 PM   #3
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

My old video board could not render WW.net anaglyphs, so i didnt play much with it...
Each frame has to be rendered twice - no choice, so there is an overhead, but it is acceptable.
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 09-26-2007 at 12:52 AM.
patmurris is offline   Reply With Quote
Old 09-26-2007, 01:02 AM   #4
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Arrow Red and cyan glasses anyone ?

BTW: if anybody wants a couple pairs of red/cyan paper glasses, i'd be happy to mail some free - just send me a private message with your address.

I'm always keen on promoting stereoscopy, i really enjoy it myself - and always shoot stereo pairs with my camera when appropriate and feasible (see some aerial anaglyph shots here).

Anaglyph is not the best viewing approach but by far the most convenient on our actual 2D monitors - unless you're good at ocular tai chi .
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-19-2008, 06:07 AM   #5
AndrewW
Junior Member
 
Join Date: Feb 2008
Location: Colorado
Posts: 4
Default Separating Left and Right Eye Views?

I would like to get WWJ to work in stereo on a Geowall projection system. This is simply a dual projection stereo view using passive polarized glasses. How easy is it to completely separate the left and right eye views and place them side by side without filtering the colors? I looked at Pat's code and saw the place where the two views are separated, but I am not a Java programmer and couldn't get anywhere by trial and error. Any advice would be greatly welcomed.

This is for a K-12 geoscience education project I am working on.

Thanks!
AndrewW is offline   Reply With Quote
Old 02-19-2008, 08:24 AM   #6
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Do you need two separate video sources - like a dual screen setup?

If so one way would be to have a second window that would be 'driven' from the main app and would display one eye point of view - the main app would show the other. Then you could have each on a different screen or video source.

I'm not sure how easy it would be to code, but it should not be that difficult.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-19-2008, 05:37 PM   #7
AndrewW
Junior Member
 
Join Date: Feb 2008
Location: Colorado
Posts: 4
Default Dual view

The desktop extends across the two projectors, so I have a wide 2048 x 768 desktop with the left half (1024 x 768) going to one projector and the other half going to the other projector. So, either two separate WWJ windows or one large 2048 x 768 window with two views would work. The projectors each have polarizing filters at 90 degrees to each other so that the images can be projected on top of each other on the screen.

Could all of this be accomplished in the SceneController.java file? If not, could you tell me which files I would need to modify? I'd like to learn how to do this myself. Can you recommend a Java book that covers this sort of operation?

Thanks again!
AndrewW is offline   Reply With Quote
Old 02-23-2008, 08:47 PM   #8
AndrewW
Junior Member
 
Join Date: Feb 2008
Location: Colorado
Posts: 4
Default Stereo Pairs

Hi Pat,

I think I am making progress, but wanted to see if I am on the right track.

Is this what you were thinking?
1. Somehow invoke: WorldWindowGLCanvas(WorldWindowGLCanvas shareWith)
in the ApplicationTemplate file. (or is this just going to give me two mirrored windows??)

2. Somehow send the right eye drawing to the new window from the AnaglyphSceneContoller file.

Thanks!
AndrewW is offline   Reply With Quote
Old 02-24-2008, 04:45 AM   #9
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Andrew, sorry i didnt get back to you sooner, but i have limited experience with 'multiple view' display from a common GL canvas, so i'm not sure how best to proceed.

I believe there are at least two path to implement such a dual view. One would involve two gl canvases, the other could use just one but have the second view as a plain AWT component displaying a 2d image. In the latter approach, you would have to render the first eye in WW, grab the frame buffer and send it to the AWT component image, then render the second eye. I'm not sure i'm making sense though

I'll try to get some hints from the team.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 02-25-2008, 03:37 AM   #10
AndrewW
Junior Member
 
Join Date: Feb 2008
Location: Colorado
Posts: 4
Default

No problem, I realize that you are busy and I am a complete novice.

I do understand your schemes. I like the second one as it might be less cpu intensive.

My other thought was to pre-program a flight path and capture it with a screen capture tool like Camtasia and then run it a second time using the anaglyph offset routine (minus the color filtering). I could then combine the two views in QuickTime Pro for a canned presentation. But live is so much more fun

I do think that getting the dual view going would be very popular at the 80+ universities that have GeoWall (http://geowall.geo.lsa.umich.edu/home.html) stereo projections systems in classrooms.

Also, I wanted to mention that it does work to take stereo photos looking straight down (no tilt). The USGS has taken aerial photos of practically every square inch of the US. There is enough overlap in these photos to produce a great stereo effect using a pair with a tabletop viewer. The same can be done in WorldWind with good results.

Thanks again for all of your help!
Andrew
AndrewW is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stereo 3D anaglyph (red/cyan glasses) plug-in Mashiharu Add-on & Script Development 18 06-11-2009 07:19 PM
Anaglyph Performance help! Sidicas Technical Support 4 07-07-2007 08:16 PM
Quad Buffered Stereo in WW keltie Suggestion Box 0 06-13-2007 08:13 AM
Problems with 3D View Anda Technical Support 3 08-22-2006 05:56 PM
stereo viewer plugin jumpjack Add-ons & Scripts 15 08-19-2005 09:48 PM


All times are GMT +1. The time now is 05:18 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.