World out of cubes - graphical issues

Blitz3D Forums/Blitz3D Programming/World out of cubes - graphical issues

funkmaster5000(Posted 2014) [#1]
Hi community,

I'm trying to create a world out of cubes via a random dungeon generator. But when I place the cubes next to each other, I get a rather ugly glitch, which causes black lines between each cubes (see screenshots):
http://www.blitzforum.de/upload/file.php?id=12602
http://www.blitzforum.de/upload/file.php?id=12603

I create the cubes in Wings3D and load them from my game folder. It doesn't matter, which texture I'll use or which size the cubes are.

Does someone have an idea?


RemiD(Posted 2014) [#2]
Yes it may be because some vertices are not positionned at the correct position so there is a slight space between the vertices and you see the background color of the camera.
To be sure, you can change the background color of the camera with cameraclscolor()
http://www.blitzbasic.com/b3ddocs/command.php?name=CameraClsColor&ref=3d_a-z
if that's the problem, you will have to reposition the vertices so that there is no space between them.


xlsior(Posted 2014) [#3]
Depending on the scale that you're using, I image it could also be small rounding errors of floating point variables affecting the object placement, leaving occasional small gaps


feeble1(Posted 2014) [#4]
May be the default antialiasing that dx7 does. I am on my phone, but try looking for a dx7 filter hack on this forum.


funkmaster5000(Posted 2014) [#5]
Hey guys.

Thanks for the input. I did some testing with the following outcome:

I've changed the CamCls to red. The floor doesn't consist of a cube, it's just one surface lying flat on the ground. While moving, I could see the red color on the edges of each floor tile, but only sporadic.

The walls still showed black lines and here's why (I'm pretty sure, this will fix my floor problem too):
I've created the cube in Wings 3D and used UV Map for texturing it -> black lines
I used the B3D cube function and smashed the wall texture onto it -> no black lines

So I guess I messed something up in Wings3D. Still not sure, what exactly...


RemiD(Posted 2014) [#6]
If it is not caused by a space between some vertices, it may be because of imprecise UVCoords of some vertices, and the black lines correspond to the texels on your texture.
To be sure, you can change the background color of your texture.


funkmaster5000(Posted 2014) [#7]
Thanks for the replies. I always to disable filtering and searched the forums with different keywords (disable filter, filter hack, turn off filter etc.) but I found one result by a guy named Tom Speed, which must be very pleasing according to the reactions. Of course...his website is down. Does someone still have his .dll or a similar one? Thanks!

Here's the thread:
Filtering!


RemiD(Posted 2014) [#8]
Do you mean to disable mipmapping ?
http://en.wikipedia.org/wiki/Mipmap