Product Chat / Shadow Jutters

Author
Message
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 4th Dec 2019 18:11 Edited at: 4th Dec 2019 18:19
Hi ya...

Added; this relates to the shadow on the ground, not certain about on other
objects or not?
So when moving an object in the air (using MoveForward), I get a strong
shadow judder effect more noticeable the faster the object goes. Actually
now that I look at it closer, the object itself is juddering, while the shadow
is just behaving accordingly afterward-- maybe. But the shadow anomaly
seems stronger than the objects?

What it looks like the object lags behind itself some reason and the movement
is very "juddery" so everything starts to blur-- like shake. Two shadows can be
seen when the object is moving fast enough. I turned off physics, weight and
friction to zero, even though the object is in the air. Also tested isimmobile on
and off... same.

Hmmm.... anyone else seen that?
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 4th Dec 2019 18:18
@ AmenMoses;

So in your video of the airplane flying, I looked for such "juddering" in the plane,
or the shadow-- and there is none! I'm also pretty sure you don't use
MoveForward, because -- well that's not you. How do you do that, move the
camera and the plane, without this shaking, and I'm getting a great deal of
shaking?

To clarify my script moves the camera to follow the object. Did I hear once
that this effects the shadows? But not yours.
Thanks.
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Dec 2019 18:39
the juddering is likely caused by the physics trying to place the object, how did you turn it off? try in the properties and also adding CollisionOff(e) to the script.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 4th Dec 2019 18:56
Thanks smallg.
Yes, I turned off physics. Weight and friction to zero, even though
the object is in the air.

CollisionOff(e)
RotateY(e,rotateit)
MoveForward(e,frwrd[e])
CollisionOn(e)
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 4th Dec 2019 19:01 Edited at: 4th Dec 2019 19:09
Hi Bod.

Yes, at greater speeds, it can get pretty bad. This could be a game breaker.
Perhaps I need to test straight move object outside of MoveForward,
and see if MoveForward is the culprit?

Update; Tested removing the RotateY() command. Didn't fix the shakes!
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 4th Dec 2019 19:38
Tested: pure X,Y,Z movement
Object moves smoothly-- ground shadow still "shudders" just as much.

But honestly using MoveForward, it seems like the object also "shudders".
Caveat-- still using Camera control to follow object, so would it possibly
effect it?

BTW, possible to turn off the primary shadow?
PM
cybernescence
GameGuru Master
11
Years of Service
User Offline
Joined: 28th Jan 2013
Playing: Cogwheel Chronicles
Posted: 5th Dec 2019 00:17
try leaving collision off (don't put it back on until all movement finished, not every cycle).

Make speedshadows=0 in setup.ini to stop flickering at camera distance.

castshadow = -1 in fpe of entity if you want to remove it as as shadow caster. Use shadow slider to remove or reduce all sun shadows.

Cheers.

GPU: GeForce RTX 2070 SUPER PassMark: 14817

Login to post a reply

Server time is: 2024-10-07 00:32:13
Your offset time is: 2024-10-07 00:32:13