Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Ayumi), 1,405 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Beginner problem with shading #103063
12/20/06 23:15
12/20/06 23:15
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline OP
Member
Gumby22don  Offline OP
Member
G

Joined: Oct 2006
Posts: 175
Hi all,

I've started playing with 6.5 commercial, and I can't get shading to work in my level. I'm doing a sopwith-style side-scroller, and I have a simple level which is an imported landscape (box with rough top side) and a couple of lights.
I create the entity for the plane with c-script, and it flies around ok, so I'm getting there. I just can't seem to figure out why everything in my level is flat shaded, with no shadows from the plane entity onto the ground.
Not sure if I might have to set up the ground as a map entity or model, or whatever. Its currently a mdl7 format model, just imported into MED, then put into the WED level.

Any help with setting up my basic shading would be appreciated.

Don
have a great day

Re: Beginner problem with shading [Re: Gumby22don] #103064
12/22/06 00:46
12/22/06 00:46
Joined: Dec 2006
Posts: 32
P
Paulo_Sousa Offline
Newbie
Paulo_Sousa  Offline
Newbie
P

Joined: Dec 2006
Posts: 32
Greetings.

I believe you are saying that your plane won't cast a shadow according to your lighting? Well, I think that ain't achievable... According to someone I know that has Commercial updated...
Wait for more answers...

cya


To the finest Game Designing tool I have ever seen!
Re: Beginner problem with shading [Re: Paulo_Sousa] #103065
12/22/06 09:29
12/22/06 09:29
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline OP
Member
Gumby22don  Offline OP
Member
G

Joined: Oct 2006
Posts: 175
Hey, thanks for a response

Sorry if I wasn't clear, I basically want to know what the minimum is to have z-buffer shadows working from one entity (moving and scripted) to another entity (static, terrain or model) As i understand it, z-buffer shadows should occur as down-projected shadow maps of entitys onto the next surface. I just can't seem to get any shading onto my level model.

Don
have a great day

Re: Beginner problem with shading [Re: Gumby22don] #103066
12/22/06 10:40
12/22/06 10:40
Joined: Dec 2005
Posts: 414
Munich, Germany
R
Robotronic Offline
Senior Member
Robotronic  Offline
Senior Member
R

Joined: Dec 2005
Posts: 414
Munich, Germany
Hi!

You have to tell the engine, that you want to use stencil buffer shadows:
You can simply write

var shadow_stencil = on;

There are currently some restrictions about these shadows, so you might look into the manual for details ...

Re: Beginner problem with shading [Re: Robotronic] #103067
12/23/06 19:45
12/23/06 19:45
Joined: Jun 2003
Posts: 1,017
Germany
T
Thomas_Nitschke Offline
Senior Developer
Thomas_Nitschke  Offline
Senior Developer
T

Joined: Jun 2003
Posts: 1,017
Germany
He was talking about z-buffer shadows IMHO. These can be switched on by adding
my.shadow = 1;
to the entity's action.
As far as I know, z-buffer shadow project onto any block that has been compiled in "shaded" mode, and behave according to the sunlight. Thus, I assume you'd also need to set a global sunlight to get the shadows working, but I'm not sure about this one. It has been a long time since I last used z-buffer shadows...


Formerly known as The Matrix - ICQ 170408644 I've been here for much longer than most people think. So where's my "Expert" status?
Re: Beginner problem with shading [Re: Thomas_Nitschke] #103068
12/24/06 13:03
12/24/06 13:03
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline
Member
zwecklos  Offline
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
isnt the problem that the z-buffer shadow only works on BSP Block (WED-Blocks)?
Or did this thing change with 6.5?

cheers

zweck


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1