This site is no longer active and is available for archival purposes only. Registration and login is disabled.

C-buffer


C-buffer

Postby MirekCz forgot his pass.. » Sep 17, 2003 @ 3:21pm

Ok I have read a lot about it and.. looks nice

So I draw my world front to back and use c-buffer for z-buffering and clipping polygons to what's already drawn.. so I end up with no overdraw, quite fast rendering engine... but...
What to do with semi-transparent polygons? How do I put them into this scheme? It seems pretty much impossible for me to do it without losing the advantage c-buffer gives me...?:(
Any clues how to solve it? or maybe c-buffer is a no-no if you put alpha-blended polygons on screen?

Thanks for hints.
MirekCz forgot his pass..
 


Postby refractor » Sep 17, 2003 @ 3:39pm

Thinking out loud:

How about deferring any spans that need alpha-blending to a post-processing stage? I.e. don't use them to clip spans behind them but flag a span as being "blended" - just shove them into a stack somewhere and deal with them after everything else has been plotted.

Because you're using the stack, the alpha pixels the furthest away will be processed first, which should give the desired result?
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Dan East » Sep 17, 2003 @ 4:19pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby MirekCz forgot his pass.. » Sep 17, 2003 @ 10:06pm

thnx for this help, looks pretty fine... althrought slow with larger amouns of transparent polygons...

PS.Dan, did you look at IE5.0 CODE problems already? thanks...
MirekCz forgot his pass..
 


Postby Dan East » Sep 17, 2003 @ 10:16pm

Not yet. I need to upload a test version to dexplor.com and see if that works. If it does then the problem is in the code wrapper and not the syntactic coloring.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Phantom » Sep 18, 2003 @ 3:20pm

If you want full z-buffer emulation, use an s-buffer. Paul Nettle has a document on it somewhere (the s-buffer faq). Inserting spans is more expensive, but you don't have to pass them sorted to the buffer. This also means you draw the contents of the buffer once you have fed it all the spans.

BTW, completely off-topic, I just ordered a brand new 1915. My 3630 has a stuck key (cola rust), dust under the screen, the stylus doesn't stay in it's spot, the adapter is broken so I use a (too light) replacement adapter, the battery works for 30 minutes or so AND my new laptop does not have a parallel connector so I could use IR only. :) Does anyone know how much a collectors item like this device is worth on eBay? ;)
Give me some good data and
I will give you the world
User avatar
Phantom
pm Insider
 
Posts: 913
Joined: Feb 21, 2001 @ 8:14am
Location: Houten, Netherlands


Postby MirekCz forgot his pass.. » Sep 18, 2003 @ 7:21pm

MirekCz forgot his pass..
 


Postby Dan East » Sep 18, 2003 @ 7:33pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby refractor » Sep 19, 2003 @ 12:46pm

Mirez, download the "Games programming black book" by Michael Abrash - it was released as freeware in PDF format (or look for his other Quake related DDJ articles). That explains the process he went through implementing the Quake engine.

I think that the main "issue" he dealt with was that the polygons in the scene must be abutting (i.e. they must not interpenetrate).

If you can't find the pdfs online, give me a yell and I'll dig out and mail you the relevant chapters.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Postby Dan East » Sep 19, 2003 @ 1:48pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

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