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 / whats a decal?

Author
Message
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 31st Jul 2005 00:07
in all the games that come with darkbasic they (iced and tank etc) they all have an array called decal or decallimit or something.. what do they mean? what are they for?

Your signature has been erased by a mod because it's larger than 600x120...
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 31st Jul 2005 02:02
Zotoaster,

Decals are 3d planes, which set on the surface of an object, as to look like it has changed the objects texture somewhat. Ever seen bulletholes created when shooting a gun at a wall in an FPS? Those bulletholes are each a small 3d plane, setting up next to the surface of the object.

Decallimit might define how many decals can show at one time. A decal is an object, and eventually, if the number of decals to be shown were limitless, they would eventually hit the system performace, due to so many calculations needing to be made. Therefore, decal planes are looped. That, once the last decal is made visible, then the decal system loops, and the first decal in the array is displayed where the next bullet is shot, and so on.


+NanoBrain+
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 31st Jul 2005 02:19
ahh, cool now i get it, thanks nanobrain

Your signature has been erased by a mod because it's larger than 600x120...
Metrion
19
Years of Service
User Offline
Joined: 8th Jul 2005
Location: In the darkest cave
Posted: 31st Jul 2005 02:55
Actually, NanoBrain, I used bullet holes in my game and called them decals... about 200 decals, I made...

If practice makes perfect and nobody is perfect, then why practice?
NanoBrain
20
Years of Service
User Offline
Joined: 20th Jan 2005
Location: Portland, OR
Posted: 31st Jul 2005 04:43
Metrion,

I never stated a specific limit. However, I did state that if the decal count was without limits, then eventually, differing from system to system, there would be a performance hit. I am sure that 200 decals are fine for most systems nowadays. But, this does depend on the amount of other calculations needed to run the game, also.


+NanoBrain+
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 2nd Aug 2005 23:03
Also, the size of the texture being applied to the planes would affect performance, too. (A neat way to speed up your program if you need lots of decals).

[Insert extremely witty comment here] :: Add me to MSN if you like, but don't expect any big favours [unless you like VB6]. ... IDK!!
Uncle Sam
19
Years of Service
User Offline
Joined: 23rd Jul 2005
Location: West Coast, USA
Posted: 3rd Aug 2005 02:54
So that's what they are!

--------------
Uncle Sam

Login to post a reply

Server time is: 2025-05-22 13:14:45
Your offset time is: 2025-05-22 13:14:45