Visual artifact with intersecting meshes.
Visual artifact with intersecting meshes.
Apologies if this has been answered before, I've tried searching and the wiki seems to be down. Feel free to lock/nuke and PM me with the relevant info, if there is any.
I've been looking at switching to Irrlicht for various reasons, and in the process off assembling a toolset and running through a few tests I've come across a problem, specifically to do with intersecting meshes.
I've attached a picture of a simple scene with 2 intersecting meshes which when used in Irrlicht produces the jagged artifact.
I've tried various scenes and various file formats, but they all produce the same result. I'm guessing it has something to do with the depth buffer, but all I really want to know is, can it be fixed or avoided?
Cheers very much.
I've been looking at switching to Irrlicht for various reasons, and in the process off assembling a toolset and running through a few tests I've come across a problem, specifically to do with intersecting meshes.
I've attached a picture of a simple scene with 2 intersecting meshes which when used in Irrlicht produces the jagged artifact.
I've tried various scenes and various file formats, but they all produce the same result. I'm guessing it has something to do with the depth buffer, but all I really want to know is, can it be fixed or avoided?
Cheers very much.
-
- Posts: 275
- Joined: Fri May 12, 2006 6:37 pm
- Location: Germany
Thank you for all your help.
It's not a driver problem near as I can tell, as I'm up to date on all 4 computers that I tested on.
I'm also using 32bit, so I don't think the problem is there, though I won't discount this untill I know more about Irrlicht.
I think I'll just use .bsp maps for my levels, as the problem doesn't occur with them (obviously), and come back to the issue at a later date.
Cheers again.
It's not a driver problem near as I can tell, as I'm up to date on all 4 computers that I tested on.
I'm also using 32bit, so I don't think the problem is there, though I won't discount this untill I know more about Irrlicht.
I think I'll just use .bsp maps for my levels, as the problem doesn't occur with them (obviously), and come back to the issue at a later date.
Cheers again.
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
There's also a pacth from IrrSpintz which is related to gfxcard FPU setting. It can happen that the FPU settings are left untouched, i.e. are using 16bit precision even for 32bit devices. Maybe it's something like that (I did not try the patch, yet, as I'm usually not using windows, and it's only happening with D3D).
I'm quite happy as I've solved the problem. For those who care, it was a problem with the far clip plane. By default it's set to 2000. Bumping this up to about 15000 seems to get rid of the problem completely.
I solved this by accident, as I was messing around with clip planes in Light Map Maker and reproduced the similar artifact.
Thanks for your help anyway
I solved this by accident, as I was messing around with clip planes in Light Map Maker and reproduced the similar artifact.
Thanks for your help anyway
another solve for this problem!!!
I had exactly the same problem...
solved it:
i had to keep attention to the ORDER i create my objects!!!!
for example...these 2 walls with the ugly thing are created BEFORE the other walls and floors on the screen...
create the two top walls AFTER the floor and things...
this solved similar situation at my project
solved it:
i had to keep attention to the ORDER i create my objects!!!!
for example...these 2 walls with the ugly thing are created BEFORE the other walls and floors on the screen...
create the two top walls AFTER the floor and things...
this solved similar situation at my project
und wieder ein deutscher