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.

Newcomers DBPro Corner / shadow problem

Author
Message
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 17th Feb 2007 00:38
i used this code before the main loop, but when i compile it is about to start but closes and goes back to dbp's editor. Is it my graphis card problem?



and when i take off the "set shadow shading on 2" line it works but there are not shadows, just bright light.
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 17th Feb 2007 19:01
can anyone help please?
thanks
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 17th Feb 2007 19:17
Your card needs to support vertex shader 1.1 or above.

Try this:




The word "Gullible" cannot be found in any English Dictionary.
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 17th Feb 2007 20:17 Edited at: 17th Feb 2007 20:25
i says "3". Does that mean it is not high enough to support that.

That means it should support that right? If my comp does i think it might be because of low memory.
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 18th Feb 2007 00:42
does anyone know.
Flashing Blade
21
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 18th Feb 2007 11:40
If you replace object 2 with a simple primitive does it still crash?
If you write a small snippet just to test shadow shading on the object in question does it still crash? If so could you post the snippet?


The word "Gullible" cannot be found in any English Dictionary.
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 18th Feb 2007 16:29
it is a simple object i am putting the shadow on, and only one object.It is sphere.
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 18th Feb 2007 18:14
I don't remember seeing a point light command anywhere in the command set

This seems to be the sintax:

SET POINT LIGHT

This command will set an existing light to that of a point light. The position is specified using a coordinate in 3D
space. The light number must be specified using an integer value. The coordinate must be specified using real
values.

Syntax

SET POINT LIGHT Light Number, X, Y, Z

Try the above command, maybe creating another light (make light 1), I'm not sure if light 0 can be set to a point light
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 18th Feb 2007 19:17 Edited at: 18th Feb 2007 19:18
i tried it but it doesnt work, but the thanks for the help.
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 18th Feb 2007 20:52
can someone give me the entire game code for a basic game with an object on the floor with a shadow on that object.
this would be very helpful. thanks.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 19th Feb 2007 03:22 Edited at: 19th Feb 2007 03:28
spooky i have seen yours, but it also doesn't work.

edit: can you post pictures of the result for that.
Wait a minute what is the lowest upgrade you need to run the "set shadow position lightmode,0,0,0" does not work.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 19th Feb 2007 12:11
That command should work, but it just isn't highlighted in blue inside the editor. If it does not compile then why don't you just upgrade? That command has been around for a long time, well over a year.

In editor, what version does it show on the help/about screen?

You say that vertex shader on your card is '3' which is more than enough. Can you tell us exactly what graphics card you do have.

Boo!
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 19th Feb 2007 12:57
Does this work?




Or this? (same thing but uses shaders instead)




03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 19th Feb 2007 20:12
it says it cannot understand the command set shadow light 0,0,30,100,10000.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 19th Feb 2007 22:03
That command has existed since upgrade 6.0 which came out almost a year ago. As suggested, simply update to latest version to fix your problems and please answer my questions about version numbers and graphics cards.

Latest update is 6.4

I bet you are using a really old version.

Boo!
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 19th Feb 2007 22:53
it says 1.057 for DBP and my graphics card is NVIDIA RIVA TNT2 Model 64/Model 64 Pro and this computer is pretty old, bought in 2000.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 20th Feb 2007 12:06
1.057 which is upgrade 5.7 came out in September 2004. There have been numerous FREE updates since then that give you all the proper working shadow commands as well as a heap of extra functionality.

Why have you not upgraded? Just go to main DBPro site and download the update.

From what I've read your graphics card is so old it does not support vertex or pixel shaders at all, so no shadows I'm afraid.

Maybe time to upgrade your pc or scrap it and buy a new one.

Boo!
03apples
17
Years of Service
User Offline
Joined: 25th Sep 2006
Location:
Posted: 21st Feb 2007 00:41 Edited at: 21st Feb 2007 00:42
thanks for all your help guys and i will upgrade.

Login to post a reply

Server time is: 2024-09-25 17:30:16
Your offset time is: 2024-09-25 17:30:16