Frenchgui Posted February 16, 2014 Share Posted February 16, 2014 Hi! Maybe I'm wrong, but I can't get dynamic shadows with a animated model with spotlights or pointlights. Only works with directional lights. Link to comment Share on other sites More sharing options...
Frenchgui Posted February 17, 2014 Author Share Posted February 17, 2014 Any ideas? Link to comment Share on other sites More sharing options...
YouGroove Posted February 17, 2014 Share Posted February 17, 2014 Thre is shader type, and in shader panel a shadow slot to choose the shader for shadow type. Also in general tab Appearence it is Shadows set to dynamic ? Stop toying and make games Link to comment Share on other sites More sharing options...
Frenchgui Posted February 17, 2014 Author Share Posted February 17, 2014 Do you have dynamic shadows while your model is animating, and with point lights? These are my settings (but I've tried everything from static to dynamic+buffered for light and also for the model) hébergeur d image gratuit Link to comment Share on other sites More sharing options...
YouGroove Posted February 17, 2014 Share Posted February 17, 2014 it should work. I guess it's LE3 that works that way, only directionnal lights with animated shadows ? Stop toying and make games Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 17, 2014 Share Posted February 17, 2014 do you use animated shadow shader? It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Frenchgui Posted February 17, 2014 Author Share Posted February 17, 2014 Yes "shadow+animation.shader". Should it work or only with directionnal lights? Link to comment Share on other sites More sharing options...
Admin Posted February 17, 2014 Share Posted February 17, 2014 What GPU do you have? Link to comment Share on other sites More sharing options...
Frenchgui Posted February 18, 2014 Author Share Posted February 18, 2014 Nvidia Geforce GT430. Far from being top notch, but supports GL4 and DX11. Do you think it's because of my old GPU? Link to comment Share on other sites More sharing options...
shadmar Posted February 18, 2014 Share Posted February 18, 2014 I have something similar on the converted DA game. Idle animation doesn't animate shadow, but if character is moving it animates. Does pointlight have some sort of movement tracking so shadows become static if entity isn't moving? HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Frenchgui Posted February 18, 2014 Author Share Posted February 18, 2014 Yes, you're right shadmar!!! As my scene is quite empty (it was just for learning animations), so nothing uses physics. As soon as I've put some boxes (in unstable position) shadows are working fine. As soon as everything is on floor and idle, shadows stop updating. I will try using a physic camera to force shadow update. Thanks!!! edit: Ok I've tried it, but character physic doesn't update physics save if they collide. So I have to find a trick, or maybe Josh can add an option to enable/disable update shadows continuesly. Link to comment Share on other sites More sharing options...
Shirk Posted February 21, 2014 Share Posted February 21, 2014 Josh said that the lighting only updates when there is physics calculated, like a box moving. Link to comment Share on other sites More sharing options...
Frenchgui Posted February 21, 2014 Author Share Posted February 21, 2014 Yes thanks Shirk. As I don't use physics on my project, but need dynamic shadows, I have to find a trick (maybe a motorized box hidden somewhere). Link to comment Share on other sites More sharing options...
DudeAwesome Posted February 21, 2014 Share Posted February 21, 2014 lol? this is weird. is this a bug or is this how it should be oO ? It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
gamecreator Posted February 21, 2014 Share Posted February 21, 2014 Probably neither, if Shirk is correct. If lighting truly only updates during physics events, that needs to change to include animated models. Link to comment Share on other sites More sharing options...
Josh Posted February 22, 2014 Share Posted February 22, 2014 It should work with animation. It is possible it might not under the right circumstances. I never encountered this with the example game level. 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...
Frenchgui Posted February 22, 2014 Author Share Posted February 22, 2014 Hello Josh. To see the shadow trouble, just put a floor, a point light and the crawler model with this script: Script.Speed=1.0--float Script.Sequence=2--int entpos = Vec3(0,0,0) Script.angle=50.0--float function Script:Draw() -- move entity a bit for shadow updating self.angle = self.angle + 1.0 if self.angle >= 360 then self.angle=0 end entpos = self.entity:GetPosition() entpos.x = entpos.x + Math:Sin(self.angle)/100 entpos.z = entpos.z + Math:Cos(self.angle)/100 + 0.001 self.entity:SetPosition(entpos.x , entpos.y , entpos.z) local t = Time:GetCurrent() self.entity:SetAnimationFrame(t/100.0*self.Speed,1,self.Sequence) end ... and a camera. As you can see, model is animating and moving, but not shadows. Link to comment Share on other sites More sharing options...
Frenchgui Posted February 26, 2014 Author Share Posted February 26, 2014 Ok, I've tried everything, with no success. I really need that point light updates animated models shadows in real time like directionnal lights. Link to comment Share on other sites More sharing options...
Josh Posted March 1, 2014 Share Posted March 1, 2014 This is a confirmed bug. I will start a new round of fixes next week. You don't need to do anything else, thank you. 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...
Frenchgui Posted March 1, 2014 Author Share Posted March 1, 2014 Nice! you've made my day Thanks to you Josh. Link to comment Share on other sites More sharing options...
Josh Posted March 4, 2014 Share Posted March 4, 2014 Fixed for the next update on the beta branch. 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