Having shadow and animation issues in game

Hey all,

I’ve started making a game recently, and despite numerous Google searches and Youtube videos, I’ve run into a couple of problems that I’m not sure how to fix. First is the lighting. When the character moves, the shadows are rendered incorrectly and freak out. Secondly, I’m having trouble layering animations smoothly. Before I broke it further by trying to fix it, I couldn’t figure out how to smooth the animation transitions through logic bricks. If this requires me to rebuild some animations, do something special in the NLA, or something else I can’t figure out, I’d love to know.

This is the current .blend file I’m working with ChamberedTest.blend (7.59 MB)

When the game starts up, press any keyboard key to advance the menu.

Thanks for the assistance in advance.

shadows have been broken for a long time, and wont be fixed for a while. i also know there are animation problems in 2.78+.

2.74 FTW

if you have a valid bug that exists in upbge or bge - REPORT IT - or it will not be fixed.

About animations, it can be kinda a beast to get more then 2 animations to mix,
use layers and I have found priority kinda broken.

try using python to play actions and stop them when they finish yourself.

player.stopAction(channel)

I can’t really tell what is a bug and what’s my mistake - I’ve really only started learning the program recently, so it’s good to know that it may not be something I can fix. Thanks for informing me of this.

it’s ok grekorski - I was talking to Daedalus_MDW, to be a strong community and game engine, we need to dissect bugs and try and understand them the best we can and report them so they die*. - best to make a very simple demo file where you have the bug isolated, or at least a video. - then go to the bge or upbge issue tracker.

lamps and shadows work quite well for me in bge and upbge,

I can’t really get a look at your file, but can you take a video or describe your issue in more detail?

‘the shadows are rendered incorrectly’ - do you have a son or spot lamp vertex parented to a physics mesh?

I didn’t know upbge existed - I’ve seen armory recently and have been wanting to try it to see how it would help my game. I’m going to try that now and see how it works out.

I also took a short video to demonstrate the lighting. https://youtu.be/VCbr6MF6iy4 I recommend turning volume down a bit in case some sounds are too loud, mainly the gunshots. You’ll notice some flickering, incorrect rendering, and other odd issues. Lastly, this is the lighting setup of the world, which is mainly a sun and hemi lamp. The spot under the sun was experimental. The sun is providing the light and creating the shadows throughout, while the hemi works to make the world darker, as I’m building a horror game.

https://i.gyazo.com/5394fcb5d1362efed3e12b21f09096f9.png

Edit: I also kinda fixed the animations. I’ve been having trouble understanding the Action actuator’s layering and blending options with the NLA editor. They all mostly work for now, I can tune them later.

tried that already.

its been fixed in upbge, though.