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.

Dark GDK / Shadow again

Author
Message
AlbertoT
18
Years of Service
User Offline
Joined: 16th Aug 2005
Location:
Posted: 17th Sep 2005 23:36
Hello

In DarkBasicSDK Demo 9 of 14 Road Terrain , the bikers cast a shadow
I would like to know how did the programmer get such effect since the shadow functions do not work

Thanks in advance

Alberto
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Sep 2005 00:25
I believe its a sprite - unless the code has been updated to actually show a proper shadow. Its been pointed out that the shadow is the wrong way around.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Miguel Melo
18
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 18th Sep 2005 12:54
I looked at the code and it is a blitted shadow. That's why it shows up in my Radeon 9200 (hint, hint, moan, moan).
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Sep 2005 13:04 Edited at: 18th Sep 2005 13:05
Have you tried my Planet demo - that uses proper shadows ?
If that works okay, then it could be your code...

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
AlbertoT
18
Years of Service
User Offline
Joined: 16th Aug 2005
Location:
Posted: 18th Sep 2005 20:51
Actually your demo does not work on my PC.
I get the error massage ,D3DX9_25.DLL can not be found
I have been using dark SDK for some months and everything is ok , a part from shadow and some minor issues.
Can you help me ?, thanks a lot

Alberto
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Sep 2005 20:56
You can download D3DX9_25 by having a quick search on the Internet.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Miguel Melo
18
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 20th Sep 2005 10:41
@Nick: Tried your planets demo. I do get a small shadow cast on the bigger planets from what I assume is the moon (looking at your code) on the 9600 card but _NOT_, as I expected, on the 9200. It really is a dgsdk implementation limitation.
Erick G
Retired Moderator
19
Years of Service
User Offline
Joined: 2nd Oct 2004
Location: Texas, USA
Posted: 20th Sep 2005 11:04
Quote: "It really is a dgsdk implementation limitation."


Or a video card limitation ?
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 20th Sep 2005 11:37
I would think its a limitation of the 9200 - its possible the 9200 doesn't have stencil buffers (if thats how DBPro does it) or shadow volume/mapping.

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Miguel Melo
18
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 20th Sep 2005 15:53
I could be a videocard limitation but as I mentioned in another post

a) The 9200 does have a stencil buffer;
b) All other engines (irrlicht, ogre, cipher etc) that have real shadows render fine in it.

Of course the dbpro/dgsdk could _in theory_ have a totally different implementation from the other engines: that's why I asked in an earlier post if Lee or Mike could shed some light on it - but got no reply.

But since when you go through DX there are only so many ways you can do this, I am more inclined that there is some minor bug in the parsing of the card's capability flags that is needlesly disabling shadows in these cards (someone in the dbpro confirmed the problem on the 9000 too).
Miguel Melo
18
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 20th Sep 2005 15:59
BTW, to give you some context, the reason I keep going on about shadows is that they are particularly important on the project I am starting.

Since the project _needs_ shadows (due to the design) and _needs_ to run on lower-end cards (due to the target demographics) I'd like to have this working on all the radeons it is humanely possible or risk having to consider using another engine (which I'd rather not).
lowcost
19
Years of Service
User Offline
Joined: 25th Oct 2004
Location: Coruscant
Posted: 22nd Sep 2005 20:23
Anything from a TNT2 has stencil buffers. What is your code for shadows?

The planet one may be using shaders, you need to enable cpu shadows.
AlbertoT
18
Years of Service
User Offline
Joined: 16th Aug 2005
Location:
Posted: 16th Oct 2005 20:32
Hello

I created a textured plain and a cylinder just for testing shadows
but the dbSetShadowShadingOn ( ) simply does not work
It seems to be an empty function.
If so I go on ,with my project waiting for next updating otherwise I try to fix my code

Do dynamic shadows work ?

An yes\no answer ,please !
Thanks in advance

Alberto
OSX Using Happy Dude
20
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Oct 2005 21:34
I use dbSetShadowShadingOn in my demo...

Come to the third DarkBasic Pro Sci Fi Con - Be there and be square
Blog:http://spaces.msn.com/members/BouncyBrick/
Web Site:http://www.nicholaskingsley.co.uk
Miguel Melo
18
Years of Service
User Offline
Joined: 8th Aug 2005
Location:
Posted: 17th Oct 2005 14:09
DGDK (and DBPro) seem to be annoyingly picky about what hardware they support shadows on. I cannot get shadows in a Radeon 9200 (that has both stencil buffer and VS 1.1). Someone else reported no shadows on a Radeon 9000 either (don't know about this card's specs).

Shadows do work on my 9600 pro, though. Still, I think that (hardware-wise) the 9200 should have been enough.

Login to post a reply

Server time is: 2024-04-27 02:29:57
Your offset time is: 2024-04-27 02:29:57