Rick Posted May 11, 2010 Share Posted May 11, 2010 I'm able to use the Framework with the LETKControl, but when I set Framework.StatisticMode = StatisticMode.Detailed; I don't see anything on the screen. Any ideas? Quote Link to comment Share on other sites More sharing options...
klepto2 Posted May 11, 2010 Share Posted May 11, 2010 Unfortunatly the LETKControl doesn't work with Framework. I'm working on this issue but haven't found a working solution by now. Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI Link to comment Share on other sites More sharing options...
Rick Posted May 11, 2010 Author Share Posted May 11, 2010 Bummer. It seems like some things work with it. I use the framework Update() and Render() and that seems to work. Do you happen to know what things work and what don't? Quote Link to comment Share on other sites More sharing options...
ZioRed Posted May 11, 2010 Share Posted May 11, 2010 The reason it fails seems to be the LUA object initialization in the method Framework.Initialize: if I pass FALSE to not enable LUA then the scene and the model are shown when calling Framework.Update + Framework.Render, but when I pass TRUE to enable LUA then the screen appears black and no scene/models are drawn. Another thing I don't succeeded to do have working physics: loading a scene and a body from a mesh (I used the Crawler model from the tutorials) it doesn't fall to the terrain even if it has Mass=1 and GravityMode=1 and World.Gravity=new Vector3(0,-20,0) Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
TylerH Posted June 18, 2010 Share Posted June 18, 2010 One more thing: All of the polled input commands (basically every Leadwerks input command) will not work with a custom context, like this control, or the one I made using Tao.OpenGl. I have been researching a way to add custom support in the C# wrapper to circumvent the polled input and provide an identical use API for custom contexts, but have not really done anything on it yet. Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Rekindled Phoenix Posted June 25, 2010 Share Posted June 25, 2010 It's been a while. Would you be able to work on this sometime soon? I'm holding out on the LE Control until it's got a stable release. Quote Link to comment Share on other sites More sharing options...
klepto2 Posted June 25, 2010 Share Posted June 25, 2010 Hi, I'm still working on this issue. The polled Input is working, but in another way then the usual way in leadwerks. you have handle the correct events. In the Formssample you need this: private void RenderContext_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.W) cam.Move(new Vector3(0.0f, 0.0f, 1.0f * Core.AppSpeed())); if (e.KeyCode == Keys.S) cam.Move(new Vector3(0.0f, 0.0f, -1.0f * Core.AppSpeed())); } And this: this.RenderContext.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RenderContext_KeyDown); Quote Windows 10 Pro 64-Bit-Version NVIDIA Geforce 1080 TI 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.