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 Professional Discussion / Depth Sprite Aka Nailboard

Author
Message
Try
19
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 12th Oct 2007 14:38
Nailboard/Depth Sprite is a kind of sprite that can have Depth informations, has anyone done this in DBP? I suppose this will need shaders implementation! (I might ask it on 'Learning to write Shaders' thread)

I don't know if it is possible in DBP or not! (While we don't have access to the Depth Buffer)

This kind of sprite rendering can really decrease the artifacts when a sprite or a billboard intersects with a polygon. (We have seen this before, just imagine an explosion on the floor!)

Here's a link:
http://ati.amd.com/developer/samples/DepthExplosion.html

Thanks in advance
-Try
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 12th Oct 2007 15:43
I know nothing about shaders, but wouldn't it be simpler to use a plane, and just ensure that it sits ontop of the ground, rather than intersecting with it? You could possibly fade out the bottom of the plane with an alpha layer too, to make it sit more naturally on the ground.

Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 12th Oct 2007 17:39
Depthsprite is just a buzzword as far as I'm concerned, the same kind of effect can be achieve by using billboarding and positioning some of the planes further back to give some element of depth...

Try
19
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 12th Oct 2007 18:35
Ric,
Yeah, you've always shown us these work arounds but a simple plane with Depth information would be way too good, especially for explosion like effects

If we could use Nailboard in our game development process then our lives would be much easier, everything would be simpler and more impressive with less hassle

Note: There are some other advantages for nailboards like applying correct lights and shadows on them. (as in nVidia demos)

Kentaree,
Quote: "Depthsprite is just a buzzword as far as I'm concerned"

Yeah, Depthsprite, Nailboard and Z Perturbation are just some fancy names for this effect

Quote: "same kind of effect can be achieve by using billboarding and positioning some of the planes further back to give some element of depth..."

Are you talking about Depth Imposters? Nailboard only uses one simple plain polygon + Depth data; it is not layer based and that's the point, less polygon more realistic

Cheers,
-Try
Try
19
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 13th Oct 2007 11:18
OK, hmmm, I think that I should dicuss this in the shaders thread.

Thanks anyway guys

-Try

Login to post a reply

Server time is: 2024-04-20 13:05:45
Your offset time is: 2024-04-20 13:05:45