Core Posted November 21, 2015 Share Posted November 21, 2015 I'm currently testing doors with default script, but it raised some questions. When I open or close door, my computers stutters very badly, like it is a heavy operation. Also, sometimes my door opens, but won't close again. When using double doors, very often other or both of of them jam after open and close cycle. I have played with door masses, speeds etc. and seems that with slow speeds jamming is more common... I have tried just door, with nothing touching it and it still stutters. I tried door tutorial and there doors worked like they should, no stuttering. But I cannot imagine that my testmap is allready too heavy for my computer, even if I'm using primitives pretty uneconomically (faces there where player will never see) Quote Link to comment Share on other sites More sharing options...
Core Posted November 21, 2015 Author Share Posted November 21, 2015 I tested performance with lots of AI enemies and some shaders and everything runs smooth. Something is wrong with doors... Quote Link to comment Share on other sites More sharing options...
Josh Posted November 21, 2015 Share Posted November 21, 2015 Post the map? It could be possible that the door is causing a lot of shadows to be re-rendered when it moves, but monsters running around would do the same thing. 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...
Core Posted November 21, 2015 Author Share Posted November 21, 2015 Yes! You were right, it was those shadows. If I disable cast shadows from the door, it works smooth. I need to be more careful with light sources. But weird that all those creatures were not so heavy! Quote Link to comment Share on other sites More sharing options...
Core Posted November 24, 2015 Author Share Posted November 24, 2015 Ok, back to door problem... So how do I share my map? Edit. I mean, if I attach just mapfile here, will that do? I don't know what is going on... Glitch feels so random, usually door opens and closes, but may not work after that. Sometimes, if my character is colliding with the jammed door while it should be opening, it unlocks jam. Sometimes all doors work, no matter how I abuse them... Quote Link to comment Share on other sites More sharing options...
Core Posted November 25, 2015 Author Share Posted November 25, 2015 Ok, still fighting with this problem. I once had all my five doors on my map working with manual controlling, looks like moving and rotating them fixed them(?!). Then I decided to try attach button to one of them. Button worked, but then, door was jamming again. Then I reloaded new door. put it in the scene without walls surrounding it and tried it with stock settings. It was working. Then I moved it in to it's place. Still working. Scaled it, rotated it, still working. Attached it to a button, working. Then I reversed it's movement and it started jamming. Now I have a door that seems to be working. If I set negative "Distance" value to reverse movement (in my case -2.0 on first Distance box in Script properties), it jams on the second open/close try usually. Using positive Distance value seems to be working. But this is strange, I have currently other working manual controlled doors on my map with negative distance value (the ones that I earlier just moved around and they started working). This puzzles me beyond belief and being noob with Leadwerks and lua does not help a bit. Quote Link to comment Share on other sites More sharing options...
Core Posted December 2, 2015 Author Share Posted December 2, 2015 I guess no one else is experiencing this doorproblem, so it must be something I have created by my self. Can I screw up original assets from the leadwerks dir by accident? So when ever I start new project, it copies possibly faulty assets to the new project aswell? Quote 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.