Posted by: Rok
« on: September 27, 2017, 01:13:48 PM »A scope feature sounds cool! Like in T2. Wish I could help 

Posted by: Rok« on: September 27, 2017, 01:13:48 PM »A scope feature sounds cool! Like in T2. Wish I could help
![]() Posted by: Badger« on: September 27, 2017, 10:56:49 AM »Quote 2. Level geometry occlusion doesn't always update. So, for example, if you zoom in, then walk around a corner, any level geometry that was originally blocked will still not be rendered (screenshot). I think I've only seen this happen on level 5 (even the corridors of level 8 seem fine), but it's a pretty big error to expect players to just re-scope and ignore. Having worked with cutscenes briefly, all the other code for stuff loading stuff is still relative to turok himself, not the camera. You probably have to have the game itself render more chunks to fix. Number 1 sounds pretty bad. Does this mean you'd be able to skip triggers? Posted by: Smoke39« on: September 27, 2017, 03:56:16 AM »I have a scope mostly working by using a cutscene to change the FOV, and making the camera move along with the player. There are two technical problems, though:
1. Sector properties are not updated when moving from one sector to another (e.g., fog color and distance don't change when entering/exiting a cave). This one's not so bad, since players are unlikely to move too far while scoped anyway. I could also disable the scope if you move too far, if I really wanted to minimize the issue. 2. Level geometry occlusion doesn't always update. So, for example, if you zoom in, then walk around a corner, any level geometry that was originally blocked will still not be rendered (screenshot). I think I've only seen this happen on level 5 (even the corridors of level 8 seem fine), but it's a pretty big error to expect players to just re-scope and ignore. Currently, as a workaround, I have it so you can't move while zoomed in. If you try, it just deactivates the scope. This isn't terrible, but it's kinda clunky and feels like a lame compromise. Anyone have any idea if there's some "proper" way to update the camera so sector properties and level occlusion actually get updated? Here's how I'm doing it currently: when activating the scope: Code: [Select] Camera.StartCinematic( CMF_NO_LETTERBOX | CMF_SHOW_HIDDEN_OBJECTS | CMF_NO_INITIAL_FADEOUT ); in OnTick(), while scope is active: Code: [Select] kStr s; I tried using Camera.SetEyeView() to see if it would more robustly update the camera's position, but it did nothing on its own, and fixed neither issue when used in conjunction with setting Camera.origin. I've also messed with some other camera functions, but haven't been able to get them to even do anything. :/ |