Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stencil Shadow and Camera Angle Question #54637
09/10/05 23:50
09/10/05 23:50
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
I created a cube.mdl and a plane.mdl in med. I put the cube above the plane in
Wed, and set the "shadow_stencil = on" variable before my main function and
then set the "my.shadow = on" in the cubes action.

In game, when I view the plane from a downward angle, I get the cubes stencil
shadow on the plane, but when I tilt the camera slightly up to hoizontal, the
shadow disappears even though it should still be in the view. I tilt it down
again, and the shadow comes back! What causes this strange clipping behavior?



The picture (right) shows a view slightly downward, you can see the shading on
the cube. However, as the camera tilts upward (left), the cubes shading and the
shadow on the plane has disappeared! I tried this with a dynamic light and/ or
sunlight, but it didnt help.

What am I doing wrong?


Not two, not one.
Re: Stencil Shadow and Camera Angle Question [Re: Grafton] #54638
09/10/05 23:53
09/10/05 23:53
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline
Developer
Gho5tFac3K1llah  Offline
Developer

Joined: Sep 2005
Posts: 514
USA
I don't think I know anymore than you do, but could it be the angle of the sun?

Re: Stencil Shadow and Camera Angle Question [Re: Gho5tFac3K1llah] #54639
09/11/05 00:24
09/11/05 00:24
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Thanks for the reply Domingo. I have tried different sun angles and even putting a dynamic light directly over the cube.

By the way, this is from commercial 6.314.


Not two, not one.
Re: Stencil Shadow and Camera Angle Question [Re: Grafton] #54640
09/11/05 00:31
09/11/05 00:31
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline
Developer
Gho5tFac3K1llah  Offline
Developer

Joined: Sep 2005
Posts: 514
USA
So you still have the problem? Maybe you need to create some kind of material like shadow?

Re: Stencil Shadow and Camera Angle Question [Re: Gho5tFac3K1llah] #54641
09/11/05 08:06
09/11/05 08:06
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
I've the same problem, too. When I use shadow_stencil = on; , the shadows disappear sometimes. I don't think you can do anything against this, only waiting for the next update.


Your friendly mod is at your service.
Re: Stencil Shadow and Camera Angle Question [Re: MichaelGale] #54642
09/11/05 13:53
09/11/05 13:53
Joined: Sep 2005
Posts: 514
USA
Gho5tFac3K1llah Offline
Developer
Gho5tFac3K1llah  Offline
Developer

Joined: Sep 2005
Posts: 514
USA
Maybe this is a bug.

Re: Stencil Shadow and Camera Angle Question [Re: Gho5tFac3K1llah] #54643
09/11/05 16:18
09/11/05 16:18
Joined: Oct 2003
Posts: 2,628
IL,US
FeiHongJr Offline
Expert
FeiHongJr  Offline
Expert

Joined: Oct 2003
Posts: 2,628
IL,US
dont take my word as gold. But I recently upgraded my vid card and am final able to use stencil_shadows myself. I encountered some what similliar problems too. I think it has something to do with the amount of polygons in the model. I was just reading a post the other day that said something along the lines of this. Havent tried it with higher poly models yet tho so could be way off here but prehaps it is the cause of the disappearing shadows. Tho i also know that there was some issues with stencil shadows aways back. Not sure if they were in the current version or not. So prehaps they have allready been fixed. If not that could also be the cause. Not sure if theres a work around or not try doing a search. If i come across anything ill post it here. Good luck


http://www.freewebs.com/otama_syndicate/index.htm - Each master to his own technique.

- Not me said the bee, Nor I said the fly.
Re: Stencil Shadow and Camera Angle Question [Re: FeiHongJr] #54644
09/12/05 02:21
09/12/05 02:21
Joined: Jun 2005
Posts: 656
G
Grafton Offline OP
User
Grafton  Offline OP
User
G

Joined: Jun 2005
Posts: 656
Thanks FeiHongJr, the plane in the picture was made in med, it has 2048 faces
but the cube has only 12.

Edit: I have experimented with several models of various poly counts and it
dosent seem to matter. It works fine on model to wed block, but not on model to
model.


Not two, not one.
Re: Stencil Shadow and Camera Angle Question [Re: Grafton] #54645
09/12/05 12:04
09/12/05 12:04
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
I think this bug occours by everything without geometric forms, like cubes, spheres and so on.


Your friendly mod is at your service.

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