Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,546 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Antialiasing problem #145443
08/03/07 11:57
08/03/07 11:57
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Dear Conitec,
I have an effect that begins to act very strange as soon as I use d3d_antialias.
The same effect works fine when I activate antialiasing on my graphic card settings.
I already posted this problem in the shader section:

Antialiasing problem

Do I something wrong? or is this a known feature errrr I mean bug?

cheers

zwecklos

Edit: Sorry forgot to mention, Im using A704 Pro.

Last edited by zwecklos; 08/03/07 11:59.
Re: Antialiasing problem [Re: zwecklos] #145444
08/06/07 10:32
08/06/07 10:32
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I don't know, but this could be an issue of your 3D hardware or driver. Try the values 1 and 4 for antialiasing. 9 uses an average of 9 pixels for antialiasing, maybe this causes artifacts due to a video driver issue.

Re: Antialiasing problem [Re: jcl] #145445
08/06/07 15:11
08/06/07 15:11
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Thanks jcl,
I already tried all the possible values (1, 4, 9)without success. I also tried to set the aa on my card settings and this works fine.
It screws up as soon as I use the d3d_antialias instruction no matter what values I use.
I will test out this thing on a diffrent machine with an ATI card.
Maybe this is a nvidia problem

cheers and thanks

zwecklos

Re: Antialiasing problem [Re: zwecklos] #145446
10/06/07 08:30
10/06/07 08:30
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
i was reading about this issue in the showcase post, and then I stumbled on a similar subject in the textbook im reading for my dx class. if the rtt is done by any other way than using IDirect3DDevice9::GetFrontBuffer, it will mess up, not sure if thats how a7 does it or not.

Re: Antialiasing problem [Re: lostclimate] #145447
10/06/07 14:31
10/06/07 14:31
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
What is rtt and what has antialising to do with a frontbuffer?

Re: Antialiasing problem [Re: Spirit] #145448
10/06/07 15:32
10/06/07 15:32
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
rtt = render to texture, the frontbuffer contains the current screen and thus the texture is rendered from the frontbuffer when using rtt. What the relation is between rtt and AA I do not know

Last edited by bstudio; 10/06/07 15:33.

BASIC programmers never die, they GOSUB and don't RETURN.
Re: Antialiasing problem [Re: bstudio] #145449
10/06/07 16:25
10/06/07 16:25
Joined: Sep 2002
Posts: 1,604
Deutschland
ChrisB Offline
Serious User
ChrisB  Offline
Serious User

Joined: Sep 2002
Posts: 1,604
Deutschland
Antialiasing on a Render_target texture is not supported by directX. There are some workarounds for doing this, like creating a rendersurface with enabled aa and then copy this using stretchrect (or similar) to a second, normal texture. But i think these are really slow.


www.Swollen-Eyeballs.org
ICQ:169213431
#3dgs@quakenet
Re: Antialiasing problem [Re: ChrisB] #145450
10/08/07 03:38
10/08/07 03:38
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
im not sure why it wont work with a different buffer, thats just what it says in the book, since the class text is written directly by the teacher I could ask him why if anyone is interested.

Re: Antialiasing problem [Re: lostclimate] #145451
10/08/07 06:05
10/08/07 06:05
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
DirectX antialiasing, render-to-texture, and the frontbuffer are 3 totally different things and have nothing to do with each other. Maybe your teacher confused this with postprocessing?

Re: Antialiasing problem [Re: jcl] #145452
10/09/07 23:10
10/09/07 23:10
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
oops i posted it in the wrong thread here:
well i did talk to him anyways and heres a quote of the convo:

Quote:



lostclimategames> well my question is, when talking about the buffers there is a note that you cant copy any buffer except the front buffer for a screenshot when AA is on
<lostclimategames> now the 3d game engine ive been using has issues with postprocessing when aa is turned on and i thought it might have something to do with it
<lostclimategames> i just wanted to know if i had read that right
<adam> Right, the rules on this have changed somewhat in later versions of the 9.0 SDK, but yes, antialiasing causes some pretty significant problems when you want access to the frame buffer contents
<adam> let me just grab the SDK docs a second, there is a pretty good quote if I recall...
<lostclimategames> since im not expirienced what should i tell the person making it
<lostclimategames> heres a link to the site
<lostclimategames> that is talking about it
<lostclimategames> http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/774857/an/0/page/0#Post774857
<adam> ok thanks, let me I'll take a quick look....
<adam> Sorry for the delay, Just bear with me a moment, I'm discussing your point with a colleague
<lostclimategames> alright thanks
<fuzzlog> hey lost, which book is this you are talking about in the game studio forum?
<lostclimategames> the textbook has a note about it when talking about buffers
<lostclimategames> i think near the text about the difference between swapping and blitting
<fuzzlog> is this the GP1 book(PDF)?
<lostclimategames> yeah
<adam> Ok, I think I have all the cases nailed down here.
<lostclimategames> cool
<adam> Yes, the only real way to do this is to copy it out of the texture into a non AA surface
<adam> the only method in D3D which supports downsampling of multisampled surfaces is StretchRect
<lostclimategames> so is that what i should tell them?
<adam> Realistically, you have to make a copy of the rendertarget surface (the one that has multisampling applied) using StretchRect -- which will downsample the data -- into a non multisample render target texture
<adam> from this point, it can then be applied via SetTexture and mapped to his screen space quad as usual, to run his post-processing pixel shader
<lostclimategames> all right ill probably directly quote that if you dont mind
<adam> In earlier versions of DX9, I don't believe (although I could be misremembering) that even StretchRect did not support the downsampling of multisampled render targets to non-multisampled, so you were ultimately stuck....
<adam> Sure, hopefully I'm covering all bases there It's a little difficult to tell without understanding all aspects of what it is they are trying to achieve
<adam> but I'm pretty certain that StretchRect is the only way to go here
<fuzzlog> other than taking a snapshot, what would be the purpose of accessing the FrontBuffer?
<lostclimategames> post processing effect
<lostclimategames> you take that surface and run it thru a pixel shader for bloom, hdr etc
<adam> although, these days you would just capture the contents of the frame buffer
<lostclimategames> also you can use it for reflections
<adam> (or at least the "current" render target, which does not necessarily have to be the buffer currently in the swap chain)
<adam> it's used primarily with pixel shaders fuzzlog
<adam> for accessing previously rendered data
<fuzzlog> oh, ok. I've seen that done on the latest DX SDK samples
<adam> as lostclimate mentioned, reflections, deferred rendering/lighting, post-processing, HDR etc.
<adam> no doubt someone will come out and directly contradict me on that thread with an approach I haven't thought of
<lostclimategames> lol, that is how it works
<lostclimategames> you seem to know how a forum works
<fuzzlog> speaking naively here.... if it's a buffer (Front buffer) it must mean that its an array of data (pixel i presume) so it should be able to be retrieved and messed with right?
<adam> Right, albeit one which exists purely on the graphics adapter
<adam> rather than in local memory
<fuzzlog> oh, ok...blah, blah, blah "reading data from video memory bad!!!!" I remember
<adam> yes The trick is trying to get the hardware to bend to your will without ever touching the CPU








edit: by request i removed the email address of the teacher, his name is adam,so that you know which one the teacher is.

Last edited by lostclimate; 10/10/07 01:10.

Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1