antialiasing off with draw3DLine

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
overdrivr
Posts: 10
Joined: Wed Feb 02, 2011 11:52 am

antialiasing off with draw3DLine

Post by overdrivr »

I noticed when you draw 3DLines and a mesh, the antialiasing on the mesh's texture is turned off, and when you stop drawing 3D lines, the antialiasing is turned on. Maybe it's not a bug, just a feature :p

I can post some screenshots if needed.

Irrlicht 1.7.2
Windows 7 pro
renderer OpenGl 2.1.2
GEForce GO 7300/PCI/SSE2

I used the search but didn't find this already.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, screenshots and code are needed. Could also be that it's a limitation of your graphics card. But I need to test this.
overdrivr
Posts: 10
Joined: Wed Feb 02, 2011 11:52 am

Post by overdrivr »

Ok here the screenshots :

Grid : antialiasing off
Image

No Grid : antialiasing on :

Image

And the archive with everything :

http://vtsteam.free.fr/069pjh4mte/archivebug.rar
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I think this has been fixed already in SVN. It's actually just the filter setting which is wrong here, nothing to do with anti-aliasing. But I'll check it with latest versions.
agamemnus
Posts: 283
Joined: Sun Jan 31, 2010 6:06 pm

Post by agamemnus »

The filter setting difference is much more obvious.
He does have seem to have anti-aliasing in the second picture, but I'm not sure. I checked in MSPaint and the edges are slightly smooth; that might just be the texture filter, though.
overdrivr
Posts: 10
Joined: Wed Feb 02, 2011 11:52 am

Post by overdrivr »

I'm not an expert but anti-aliasing is a method for texture filtering, no ?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

No, anti-aliasing is full-screen and is about rendering X times more sub-pixels for each real pixel, then using their average for the pixel value.

So with anti-aliasing there would be no jaggies on the edges of the box in the second picture.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Mel
Competition winner
Posts: 2292
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

The antialiasing avoids the jaggies of the lines, it oversamples the borders of the polygons (i asume...) and generates smooth lines. And bi/tri-linear filtering improves the looks of the textures by interpolating some texture pixels on the textures.

The case is that when the antialiasing is enabled and there are drawn lines, the bilinear filtering seems to disable. But as hybrid says, it is already fixed.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
overdrivr
Posts: 10
Joined: Wed Feb 02, 2011 11:52 am

Post by overdrivr »

Ok i didn't know about this technic, thanks guys. So if the bug has been corrected, problem solved.
Post Reply