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, alibaba), 1,184 guests, and 3 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
Page 1 of 2 1 2
Shadow in doorway #390450
12/30/11 17:04
12/30/11 17:04
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Hi, I want to make a proper shadow from a door which is model..
I can't even describe the problem, so take a look at the picture:

How do I fix this? Any ideas are welcome! Thank you.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Shadow in doorway [Re: 3run] #390452
12/30/11 17:18
12/30/11 17:18

C
chris_oat
Unregistered
chris_oat
Unregistered
C



What exactly is the problem? the wall around the doorway is a block, right?
if you want to scale the shadow you can scale down the texture on the floor. Try 0.100 to see better results.

Re: Shadow in doorway [Re: ] #390460
12/30/11 18:50
12/30/11 18:50
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Nahh.. you didn't get it mate. Problem is that there is no static shadows from models, so the door way has no shadow, that looks weird, I want to fix that, there is no problems with texture scale and so on.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Shadow in doorway [Re: 3run] #390509
12/31/11 22:07
12/31/11 22:07
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I didn't get any answers till last year, so could I have an idea how to fiw this problem this year? grin


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Shadow in doorway [Re: 3run] #390512
12/31/11 22:53
12/31/11 22:53
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
how about creating a sprite/decal shadow that you make dissappear when the door opens, this problem is a typical problem with static lightmapping and what happens if you let the door model cast a dynamic shadow ?

you could also put an invisible block there to cast a shadow, however, it'll still be there when the door opens but less noticeable i guess, but you could also create a light sprite/decal to show when door opens

typically, these types of games normally avoid putting doors in areas that would create such lighting.. maybe you could alter your level/light placement a bit ?

Re: Shadow in doorway [Re: darkinferno] #390530
01/01/12 10:32
01/01/12 10:32
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I think the best way will be using shadowmapping (as in shade-c), and to reject using lightning system of GS, it's horrible.
Dark, do you know how to make dynamic lightning in shade-c darker? I can't get it to work.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Shadow in doorway [Re: 3run] #390531
01/01/12 12:01
01/01/12 12:01
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hmm, does the door 'swing' open or retract up or to a side?

If its a retractor-diir, make a decal/sprite on the floor that looks like a shadow.
Then as the door retracts, contract the shadow's scale_x to scale_y by a matching amount.

EG: then the door is 50% closed, the shadow sprite is at scale_x=0.5
Get what I mean?


If its a swing-door, I dont have any ideas at this point.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Shadow in doorway [Re: EvilSOB] #390533
01/01/12 12:35
01/01/12 12:35
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
It's a swing door mate..


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Shadow in doorway [Re: 3run] #390534
01/01/12 12:54
01/01/12 12:54
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Hmmm. Still, the the same idea MAY apply.

The 'bright' area is from the baked light-map right? It looks like it...
See how the bright area is roughly rectangle-shaped.
So the 'width' is the door is the narrow dimension of that area.

What we need is a shadow-sprite to cover the light area.
Now when the door is shut, the shadow needs to cover the whole bright-zone.
But as the door opens, we need to shrink the scale of the shadow in the
narrow dimension of the shadow, so the bright-area gets slowly exposed.
You will also need to shift the shadow sideways toward the hinges-side of the door,
so that the bright area only only gets exposed on the non-hinge side of the door.

Unfortunately I cant do pictures at the moment, otherwise I would do a diagram...

I hope this explains my idea...


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: Shadow in doorway [Re: EvilSOB] #390535
01/01/12 12:58
01/01/12 12:58
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Thank you man for your time, but I think, I'll leave this as it is atm. As I see, there is no easy way to fix this, I better concentrate on gameplay and other important stuff, may be at the end, there will come public beta of new shade-c, so I'll simply reject external lightning system of GS and will use shade-c. Thank you all for ideas.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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