graycontrast Posted August 8, 2016 Share Posted August 8, 2016 I am making a platformer with lights that cast dynamic shadows and when I put a script on the player model it no longer cast shadows. I tried with my custom script and the packaged "SimpleAnimation.LUA" when I attach it the shadows are no longer being made. I check the the model and light are both set to dynamic no script with "SimpleAnimation.LUA" Link to comment Share on other sites More sharing options...
shadmar Posted August 8, 2016 Share Posted August 8, 2016 Are the model using static shaders or animated ones, (how does the material file look like?) HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
graycontrast Posted August 8, 2016 Author Share Posted August 8, 2016 the materials for the character all have the "diffuse+normal.shader" for the shader and "shadow+animation.shader" for shadows Link to comment Share on other sites More sharing options...
Genebris Posted August 8, 2016 Share Posted August 8, 2016 There are animated and not animated versions of diffuse+normal shader, you need one from model/animated folder. Link to comment Share on other sites More sharing options...
graycontrast Posted August 8, 2016 Author Share Posted August 8, 2016 I checked all the materials and they are in the animated folder and they all have the cast shadows ticked Link to comment Share on other sites More sharing options...
graycontrast Posted August 8, 2016 Author Share Posted August 8, 2016 I put the moter.LUA script on the model and it cast a shadow while it is spinning, but it doesn't cast a shadow while it is playing an animation (walking, idle, est.) Link to comment Share on other sites More sharing options...
graycontrast Posted August 9, 2016 Author Share Posted August 9, 2016 I tried some troubleshooting by updating my GPU drivers, activating beta, scaling the model, and using the crawler monster none of it worked. The only thing that happened was I was able to get a shadow from one spot light, but the shadow went away when I added a player controller script. my player character and the pre-packaged crawler is not casting shadows while playing animations. Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 9, 2016 Share Posted August 9, 2016 What are the settings of the light? Are they static? Link to comment Share on other sites More sharing options...
graycontrast Posted August 9, 2016 Author Share Posted August 9, 2016 the lights are static + dynamic + buffered Link to comment Share on other sites More sharing options...
shadmar Posted August 9, 2016 Share Posted August 9, 2016 Maybe you should post an example map using the crawler so we can have a look. HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
graycontrast Posted August 9, 2016 Author Share Posted August 9, 2016 ok I made a test floor you can download it here: (REMOVED) and here is a screen shot of it not working for me Link to comment Share on other sites More sharing options...
Thirsty Panther Posted August 9, 2016 Share Posted August 9, 2016 Very strange. I had a look at your map could find nothing obvious https://www.dropbox.com/s/crfk1d2t69h2v03/20160809211407_1.jpg?dl=0 The Crawler in the middle is yours ( has no shadow). The one to the right is a new crawler placed in the scene (he works fine). The one to the left is a copy (ctrl + left click and drag) of yours, yet it works fine. Only other thing was that your project crash a couple of times with a windows exception violation error. Link to comment Share on other sites More sharing options...
Jazz Posted August 9, 2016 Share Posted August 9, 2016 In the crawler's appearance tab change the view range to near, medium or far. 1 --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
shadmar Posted August 9, 2016 Share Posted August 9, 2016 In the crawler's appearance tab change the view range to near, medium or far. That actually works, so this has to be a bug. It only applies to point and spot lights, not directional. 1 HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
graycontrast Posted August 10, 2016 Author Share Posted August 10, 2016 okay, I changed it from 'max' to 'far' and it started to work. Thank you all for your help! I wonder if this is a bug. 1 Link to comment Share on other sites More sharing options...
shadmar Posted August 10, 2016 Share Posted August 10, 2016 You should report it as a bug in the bug forum, or it will probabaly not be fixed. HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Josh Posted August 26, 2016 Share Posted August 26, 2016 Since no file is provided I cannot investigate this. I tried creating the problem in the editor and everything worked fine. 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