Alienhead Posted March 27, 2022 Share Posted March 27, 2022 Hello, for a couple days now I've been noticing this weird lighting effect - it's not happening editor side, which is usuall, but it happens game side. I get very darastic lighting changes - almost night to day changes, just by rotating my camera around. Here's a video - Any idea what could be casuing this ?? skybox materials have no shadow casting on. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted March 28, 2022 Share Posted March 28, 2022 Hmmmm, I have not seen this before. Is the camera parented to another entity? Maybe that could be causing something weird in the camera projection matrix? If you would like to upload a sample that produces this error I will look at it. Very nice character animation / movement BTW. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted March 28, 2022 Share Posted March 28, 2022 It's a small detail, but the normal map for those rocks on the ground looks flipped. You can invert it in the texture editor. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
reepblue Posted March 28, 2022 Share Posted March 28, 2022 Is the camera a child of the player? Make sure the camera is updating it's position and rotation in the player's UpdateMatrix/UpdateWorld functions respectfully. Having the camera be a child of something causes weird things to happen. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Alienhead Posted March 28, 2022 Author Share Posted March 28, 2022 Inverting the nromal map on the terrain layer fixed it.. phew.. ty guys Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted March 28, 2022 Share Posted March 28, 2022 That's kind of strange. You would think it would mostly point straight forward? Maybe you should post a screenshot of the normal map here? It sounds like maybe it is not using the correct axes or something? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted March 28, 2022 Author Share Posted March 28, 2022 sure, Attached norm. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted March 28, 2022 Share Posted March 28, 2022 The image looks normal to me...but I guess the problem is solved. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted March 28, 2022 Author Share Posted March 28, 2022 Thats the flipped version Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Josh Posted March 28, 2022 Share Posted March 28, 2022 Yeah, I was expecting something like the blue channel being completely black or something really obvious. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.