World Wind Forums

Go Back   World Wind Forums > WorldWind Development (Other) > Add-on & Script Development

Add-on & Script Development Creating add-ons and scripts for World Wind.

Reply
 
Thread Tools Display Modes
Old 11-12-2006, 10:38 PM   #1
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Arrow Big Screenshots and Panorama plugin

Bull recently droped to me the idea of a 'panorama' plugin for WW, and after giving it some thoughts i decided to simply make a plugin that takes bigger than the screen screen shots.

So if you want a panorama, just squiz vertically the WW window into a wide panorama and shoot it at twice - or more that size. And of course, there are many other use for such a tool (print size screenshots, antialiased rendering...).

After gathering code here and there, i have something working but there is a ZBuffer (depth) issue. See this shot here.

The actual version simply ask for a file name and try to save the current view at twice the current window size (sizeFactor = 2 in the source). When using same screen size (sizeFactor = 1) it works, but as soon as it is bigger, it seems that the ZBuffer stay smaller or is not used at all...

Here is BigScreenshot plugin 0.1 alpha 1 (Zip 248k) with the ZBuffer bug... if anyone can help on that

Note : i first did the rendering in the onClick menu handler and then moved it to a renderable layer Render() method with a different approach (without RenderToSurface helper). Same results though...
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 11-23-2006 at 10:08 AM.
patmurris is offline   Reply With Quote
Old 11-12-2006, 11:58 PM   #2
Guest_Jim_*
Needs a life
 
Join Date: Dec 2005
Posts: 698
Default

I'm not sure if this is related to the zbuffer but, me for, it only has a quarter image, the other three fourths are black. Here's the screenshot.
http://forum.worldwindcentral.com/at...1&d=1163372281
Attached Images
File Type: jpg Screen_90.01543W_40.14659N.jpg (195.4 KB, 715 views)
__________________
I don't spread the word, I spread the world!
Road Map for World Wind development and release
I do not know .Net or DirectX.
Guest_Jim_* is offline   Reply With Quote
Old 11-13-2006, 12:12 AM   #3
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Quote:
Originally Posted by Guest_Jim_*
me for, it only has a quarter image, the other three fourths are black. Here's the screenshot.
Strange... for me it at least gives a full pict on 1.3.5 and in 1.4 beta...
http://www.alpix.com/3d/worldwin/BigScreenshot_17.jpg

EDIT: more screenshots :
Zbuffer not really involved : http://www.alpix.com/3d/worldwin/BigScreenshot_19.jpg
Zbuffer badly needed here : http://www.alpix.com/3d/worldwin/BigScreenshot_20.jpg. Modern art ?!
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 11-13-2006 at 01:29 AM.
patmurris is offline   Reply With Quote
Old 11-13-2006, 06:53 AM   #4
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Lightbulb BigScreenshot 0.1

I fixed the ZBuffer bug and it works up to a certain size...
Here is BigScreenshot plugin 0.1 (Zip 5k). 2X screenshot magnifier.

Some panoramas (click for full size) :

Nice and the French/Italian Riviera


San Francisco bay

On my cheap and dated GeForce 4 MX it fails if i try to go beyond 2048 x 2048 pixels. There is a limit to how big a texture can be. Can we go above with other video boards ?

Edit: it now checks the hardware capabilities and down scale the resulting image if necessary to match the maximum allowed. Above link updated.
__________________
My World Wind Java Blog & WW.net Plugins page

Last edited by patmurris; 11-13-2006 at 08:40 AM. Reason: No more beta, updated links
patmurris is offline   Reply With Quote
Old 11-13-2006, 09:18 AM   #5
PostFatal_
Senior Member
 
Join Date: Aug 2006
Posts: 100
Default

I haven't spoken to Bull so I don't know for sure what he meant by "panoramic" but to me it doesn't mean widescreen. Panoramic to me would be to stand in the middle and "pan" around me in 360 degrees. I've been hopeing for such a feature that would allow me to glue myself to a position and release my mouse to "freelook" in any direction left, right, down or up. This could open up a whole new possibility for viewing the night sky, it could even allow for a planetarium plugin. That's not to say that what you have done isn't great because it is. Thank you very much for your hard work.
PostFatal_ is offline   Reply With Quote
Old 11-13-2006, 08:13 PM   #6
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Quote:
Originally Posted by PostFatal_
I haven't spoken to Bull so I don't know for sure what he meant by "panoramic" but to me it doesn't mean widescreen.
I agree it is not as good as it should be - and the final size is limited... but it is much easier to code than shooting and stitching a serie of views while rotating the camera. Thats also why i called it BigScreenshot and not Panorama plug-in.

As for rotating freely the camera in WW... it has been on the community wish list for a long time... but never made it. I think Punt has it.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 11-13-2006, 08:33 PM   #7
m_k
Bored Explorer
 
m_k's Avatar
 
Join Date: Nov 2004
Location: Warsaw, Poland
Posts: 1,737
Default

Another issue:

2 suns in the screenshot (no, it's not Tatooine)

But still very good plugin - just mix it with the Movie Recorder and we can create HD movies
__________________
Hot stuff: FAQ, forum search, DirectX, .NET, Video Card Compatibility list
m_k is online now   Reply With Quote
Old 11-13-2006, 11:08 PM   #8
Guest_Jim_*
Needs a life
 
Join Date: Dec 2005
Posts: 698
Default

Found another bug, although this one probably isn't that important. If you take an image that has the measure tool in it the line is in the right place but the lenght isn't. Here's the screenshot.
http://forum.worldwindcentral.com/at...1&d=1163455705
Attached Images
File Type: jpg Screen_81.79801W_41.48161N.jpg (94.8 KB, 626 views)
__________________
I don't spread the word, I spread the world!
Road Map for World Wind development and release
I do not know .Net or DirectX.
Guest_Jim_* is offline   Reply With Quote
Old 11-14-2006, 01:39 AM   #9
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Lightbulb BigScreenshot plugin 0.2

Fixed the two above bugs... here is BigScreenshot plugin 0.2 (Zip 5k)

Does anyone manage to go above 2048x2048 ?
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris is offline   Reply With Quote
Old 11-15-2006, 01:27 AM   #10
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
Default

Geology maps and WW 1.4 SunShading... sweet


French Maritime Alps with BRGM layer and shading
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris 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


All times are GMT +1. The time now is 04:49 PM.


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