World Wind Forums

Go Back   World Wind Forums > WorldWind .Net Development > Developers' Corner

Developers' Corner General World Wind development.

Reply
 
Thread Tools Display Modes
Old 04-02-2005, 10:39 AM   #1
millka
Junior Member
 
Join Date: Oct 2004
Location: Karlsruhe, Germany
Posts: 8
millka
Default

Hi,

in file WorldWindow.cs, function WorldWindow.OnDeviceReset (), various DirectX device options are set. One of them, device.RenderState.Clipping, tells DirectX to clip everything drawn against the viewing frustum. Unfotunately, this option is explicitely turned off.

Why ? :blink:

I'm messing around with the code drawing the latitude and longitude lines, and it would be really nice, if i could simply rely on DirectX clipping instead of re-implementing clipping.

I've tried turning on clipping to check if that leads to new bugs, but i couldnt notice any new drawing bugs. Instead i found out, that it fixes all drawing bugs in WorldWind that i know of.

Maybe clipping was turned off while debugging something and then forgotten ..

So, unless someone knows good reasons to leave clipping turned off, i would kindly ask you to turn it on.

thx
millka is offline   Reply With Quote
Old 04-02-2005, 10:50 AM   #2
Beansprout
Cosmic laser
 
Join Date: Sep 2004
Posts: 2,998
Beansprout is an unknown quantity at this point
Default

Feel free to come into the chat room - http://chat.worldwindcentral.com - and talk to the devs.

Doesn't look like any are around right now.....normally in a few hours time it gets lively though.
Beansprout is offline   Reply With Quote
Old 04-03-2005, 05:01 PM   #3
Nowak
Senior Member
 
Join Date: Oct 2004
Location: POLAND
Posts: 153
Nowak
Default

No software clipping means better performance, but causes problems on some older cards.
Nowak is offline   Reply With Quote
Old 04-05-2005, 12:19 AM   #4
DaoudaW
Junior Member
 
Join Date: Mar 2005
Posts: 13
DaoudaW
Default

Quote:
Originally posted by Nowak@Apr 3 2005, 11:01 AM
No software clipping means better performance, but causes problems on some older cards.
Is there a way to turn it on without recompiling the whole kit'n'kaboodle?
DaoudaW is offline   Reply With Quote
Old 04-05-2005, 03:55 PM   #5
millka
Junior Member
 
Join Date: Oct 2004
Location: Karlsruhe, Germany
Posts: 8
millka
Default

Quote:
Originally posted by DaoudaW@Apr 5 2005, 01:19 AM
Is there a way to turn it on without recompiling the whole kit'n'kaboodle?
clipping has been turned on in the sources at cvs.

either download and recompile them, or wait for the next regular or beta version.
millka is offline   Reply With Quote
Old 04-05-2005, 04:00 PM   #6
millka
Junior Member
 
Join Date: Oct 2004
Location: Karlsruhe, Germany
Posts: 8
millka
Default

Quote:
Originally posted by Nowak@Apr 3 2005, 06:01 PM
No software clipping means better performance, but causes problems on some older cards.
I would have expected that, too.
However, i couldnt notice any change in the FPS rate with or without clipping. My graphics card is really ancient (NVidia Riva TNT2) and it doesnt support T+L on the GPU, so on my computer, clipping happens on the FPU. I would be surprised if newer graphic cards show a noticeable slowdown.
millka is offline   Reply With Quote
Old 04-05-2005, 09:53 PM   #7
DaoudaW
Junior Member
 
Join Date: Mar 2005
Posts: 13
DaoudaW
Default

Quote:
Originally posted by millka@Apr 5 2005, 09:55 AM
clipping has been turned on in the sources at cvs.

either download and recompile them, or wait for the next regular or beta version.

In other words, no? :unsure:
DaoudaW is offline   Reply With Quote
Old 04-05-2005, 11:14 PM   #8
millka
Junior Member
 
Join Date: Oct 2004
Location: Karlsruhe, Germany
Posts: 8
millka
Default

Quote:
Originally posted by DaoudaW@Apr 5 2005, 10:53 PM
In other words, no? :unsure:
It might be possible to patch the compiled file, but its way easier to recompile ..

If you dont have MS Visual Studio .NET 2003, there are several other development environments, e.g. SharpDevelop (http://www.icsharpcode.net/OpenSource/SD/).
millka 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:58 AM.


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