Frictional Games Forum (read-only)
LookAt head wiggle? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: LookAt head wiggle? (/thread-50916.html)



LookAt head wiggle? - DeAngelo - 07-11-2016

This has annoyed me since I started CS development years ago, but it's only now become a big problem because I'm trying to time an intro sequence with some music. There's a really annoying head "wiggle" that happens at the end of any remotely fast lookat command. Normally I just make my look at slower but I'm trying to fade in and out of various areas for an intro and the wiggle is forcing me to leave 2-3 seconds of black screen between each transition until they camera chills out. Is there any way to make the player look at something quickly without that wiggle at the end? I've been able to alleviate it a bit by making sure my start areas I port to are in the direction I'll be looking, but it still happens a little and makes the intro look really goofy.


RE: LookAt head wiggle? - Romulator - 07-11-2016

You might be able to cheese it slightly using a LookAtCallback in combination with this.
PHP Code:
void SetPlayerLookSpeedMul(0.0f); 

Untested, though. The smaller the thing you're looking at, the more precisely you'll look at something, and will apply the multiplier as late as possible. It can also be a bit of a pain, since, in the sequences of events you're suggesting, you may need to reset the look speed multiplier to 1 shortly after.


RE: LookAt head wiggle? - DeAngelo - 07-11-2016

I just did a quick test run by throwing it into one of the more problematic transitions and it worked perfectly. I'll still need to give like a .3 or so black screen between transitions but that's much better than what I was doing before.


RE: LookAt head wiggle? - Romulator - 07-11-2016

Glad I could help and glad you're working on something! Looking forward to hearing more Smile


RE: LookAt head wiggle? - DeAngelo - 07-13-2016

Thanks. I've actually been working on it for about 2 years but I had to take long breaks for personal reasons. It's nearing completion and should be ready within the month (later if I get voice actors but I don't know if I'll bother with that)