Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / "false triangles" showing up under some angles

Author
Message
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 3rd Sep 2004 00:56 Edited at: 3rd Sep 2004 00:58
Hello,

My model (a nice treasure chest), is basically a box with an inside and an openable lid. Simple enough.

But when I put it on a plane and then look at it from an "isometric-sorta-view", some false triangles show up and draw a sawtooth pattern at the bottom of my model.
(Here, I try to insert a picture to make it clearer...)

(Yes! It works!)

Did someone encounter the same problem ? Do you know how to get rid of this annoying glitch ?

Thanks !

Ideas: memories of things which did not occur yet...
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 3rd Sep 2004 01:19
yes that is called a zdepth error, virtually every game engine can suffer from this, there are 2 easy ways in db to get around it

1: scale everthing down instead of position object 1,100000000, have position object 1,1000, and scale your models down accordingly

or use set camera range 1,100000

you will find the more you move away from your object the more this error will become apparent so its just a case of concealing this


Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 3rd Sep 2004 18:41
You're probably right, since all my models are quite big (ex: this chest is 200 units large).

I'll try to change the camera range, and if it doesn't work, I'll scale down the entire scene.

Thanks a lot!

Ideas: memories of things which did not occur yet...
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 3rd Sep 2004 22:22
OK, I tried a bigger camera range, but it didn't change anything...

But I reduced the scene to 10% of its original size, and now all look neat and clean! Woohoo !

Thanx again !

Ideas: memories of things which did not occur yet...
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 8th Sep 2004 05:49
uh. weird.

[img src=http://blanky.pt-web.net/ddd.gif] >::p
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 8th Sep 2004 21:03
The start camera range is dependant on your scene, if that box is 200 units wide, then your probably talking about 300 units = 1 Metre in terms of scale - so a camera range of 15,10000 would be quite close, the larger you can get that start range without affecting your display, the less likely you are to see that bug. Sometimes though, you can get 2 polygons in exactly the same position, and that can't be worked around.


Van-B


Muhahahahaha.

Login to post a reply

Server time is: 2025-05-24 23:24:24
Your offset time is: 2025-05-24 23:24:24