Jump to content

Framework.StatisticsMode with LETKControl


Rick
 Share

Recommended Posts

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)

?? FRANCESCO CROCETTI ??

http://skaredcreations.com

Link to comment
Share on other sites

  • 1 month later...

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.

52t__nvidia.png nVidia 530M cpu.gif Intel Core i7 - 2.3Ghz 114229_30245_16_hardware_memory_ram_icon.png 8GB DDR3 RAM Windows7_Start.gif Windows 7 Ultimate (64x)

-----

IconVisualStudio16.png Visual Studio 2010 Ultimate google-Chrome.png Google Chrome PhotoshopLinkIndicator.png Creative Suite 5 icon28.gif FL Studio 10 MicrosoftOfficeLive.png Office 15

-----

csharp.png Expert cpp.png Professional lua_icon.png Expert BMX Programmer

-----

i-windows-live-messenger-2009.pngskype-icon16.pngaim_online.pnggmail.pngicon_48x48_prism-facebook.pngtunein-web.pngyahoo.giftwitter16.png

Link to comment
Share on other sites

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);

  • Intel® Core™ i7-8550U @ 1.80 Ghz 
  • 16GB RAM 
  • INTEL UHD Graphics 620
  • Windows 10 Pro 64-Bit-Version
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...