Battlezone 1

Community Forum
Home Page * Home Page Home Page Home Page
  Register
Login 
View unanswered posts View active topics

Delete all board cookies

Contact Us | All times are UTC + 1 hour [ DST ]




Home Page Home Page  [ 7 posts ] 
  Print view
Previous topic | Next topic 
Author Message
Offline 
 Post subject: (IMPROVED) Sun occlusion
PostPosted: 04 Jul 2010, 21:40 
User avatar
stratter :)

Joined: 06 Nov 2009, 00:17
Posts: 259
Location: Kristianstad, Sweden
Was it intentional that the sun only had this flash effect in /sw mode and not in /hw mode?

Image















and was it intentional that when you exit a mission in /sw mode the game fades away in back but not in /hw mode?


Top
 Profile E-mail  
 
Offline 
 Post subject: Re: Was it intentional?
PostPosted: 05 Jul 2010, 06:25 
User avatar
Bz programmer

Joined: 20 Nov 2009, 22:17
Posts: 710
The effect was disabled for hardware rendering since it couldn't probe the frame buffer for occlusion. It also required a full-screen translucent polygon, which was fairly expensive at the time. The rendering cost isn't as much of an issue now, but the lack of occlusion test means that the glare effect would still happen even if the sun were blocked.

Update: I was able to duplicate the software effect with a D3D9 occlusion query. It wasn't even all that hard, though the implementation is a bit ugly. I did try to ensure that it fails gracefully on graphics cards that don't support queries. I'm definitely satisfied with the end result. :)


Top
 Profile E-mail  
 
Offline 
 Post subject: Re: New Build (2010-07-11)
PostPosted: 13 Jul 2010, 06:36 
User avatar
single player fanatic

Joined: 01 Jun 2008, 23:16
Posts: 2030
Location: Luna's Dark Side Fear the razor-sharp edges of the heavy metal spork!
Ultraken wrote:
Mr. Spock wrote:
There's Sun effect in HW mode too now.
I'm quite happy about that, too, since I learned something useful while I was at it.
What does it look like? When I look at the sun in BZ now, I don't see anything, not even the original lens effect. :P


Top
 Profile  
 
Offline 
 Post subject: Re: New Build (2010-07-11)
PostPosted: 13 Jul 2010, 06:53 
User avatar
Bz programmer

Joined: 20 Nov 2009, 22:17
Posts: 710
Sporkinator wrote:
What does it look like? When I look at the sun in BZ now, I don't see anything, not even the original lens effect. :P
It should look just like the original software effect. (I'll try to restore the lens flare for you.)


Top
 Profile E-mail  
 
Offline 
 Post subject: Re: New Build (2010-07-11)
PostPosted: 13 Jul 2010, 07:05 
User avatar
single player fanatic

Joined: 01 Jun 2008, 23:16
Posts: 2030
Location: Luna's Dark Side Fear the razor-sharp edges of the heavy metal spork!
I personally don't care about the lens effect or the sun glare effect, but here's a screen shot:
Image
Maybe it's just not supported by my hardware. My hardware doesn't support the MultiSample stuff being anything other than 0 in render.cfg either. :P


Top
 Profile  
 
Offline 
 Post subject: Re: New Build (2010-07-11)
PostPosted: 13 Jul 2010, 07:42 
User avatar
Bz programmer

Joined: 20 Nov 2009, 22:17
Posts: 710
That could be. The new build should fix the lens flare rings.


Top
 Profile E-mail  
 
Offline 
 Post subject: Re: (IMPROVED) Sun occlusion
PostPosted: 14 Jul 2010, 18:03 
User avatar
stratter :)

Joined: 06 Nov 2009, 00:17
Posts: 259
Location: Kristianstad, Sweden
in the new build it seams thers only a sun on moon



tried coli, no sun on the east side where it was supposed to be

/hw
Image



/sw
Image
Tug played in /hw so we was unable to see it


moon map in mp have a working sun, dunno if you forgot the other planets or something


Top
 Profile E-mail  
 
Search for:
Display posts from previous:  Sort by  
Home Page Home Page  [ 7 posts ] 

Contact Us | All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  

cron
Donate Now
Donate Now


Powered by Skin-Lab © Alpha Trion
Hosted by FreeForums.org | Create a free forum