cassius Posted August 15, 2010 Share Posted August 15, 2010 Your main program can be written in c++ while lua can be used on a per object basis. You can use lua to alter a lights intensity and color and range etc. You can reference objects placed in the editor in your c++ program and make them perform in any way you like. Its great. You do not need ultimate unwrap but its nice to have. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Manuel Posted August 15, 2010 Author Share Posted August 15, 2010 Ok, thanks! Now just waiting for a clear answer for what concerns me most: 1. I have had some problems with animations on other engines. Specially with "DarkBasic Professional", the animasion show very good in Blender, but when I export the 3d model, on DarkBasic Pro, the animation is deformed. Has anyone tried to export animations from Blender to Leadwerks? How to works with this? That is very important to me. How I can prove my animation on the Leadwerks demo with Lua? any help or command reference? Quote Link to comment Share on other sites More sharing options...
cocopino Posted August 15, 2010 Share Posted August 15, 2010 Export your animated mesh from Blender to collada or fbx. Then use dae2gmf.exe or fbx2gmf.exe from the tools directory. Quote desktop: Quad core Q6600 + 4GB + ATI HD4890 + XP laptop: Dual core T6400 + 4 GB + NVidia 9600M GT + Vista 32 Link to comment Share on other sites More sharing options...
Canardia Posted August 15, 2010 Share Posted August 15, 2010 http://www.leadwerks.com/wiki/index.php?title=Entities#Animate Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
DaDonik Posted August 15, 2010 Share Posted August 15, 2010 I have not yet tried animation in LE, but i know DarkBasic...believe me, this engine is MUCH better So you have a very good chance that it will work Quote (Win7 64bit) && (i7 3770K @ 3,5ghz) && (16gb DDR3 @ 1600mhz) && (Geforce660TI) Link to comment Share on other sites More sharing options...
Manuel Posted August 15, 2010 Author Share Posted August 15, 2010 Can anyone give me a sample code to animating my character (in Lua)? I don't know how to begin. Any help, please? I have not yet tried animation in LE, but i know DarkBasic...believe me, this engine is MUCH better So you have a very good chance that it will work I know that Leadwerks is better that Darkbasic lol Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 15, 2010 Share Posted August 15, 2010 Can anyone give me a sample code to animating my character (in Lua)? I don't know how to begin. Any help, please? How did you convert your model to GMF? require("scripts/class") local class=CreateClass(...) function class:CreateObject(model) local object=self.super:CreateObject(model) object.framebegin = 70 --first frame of animation-- object.frameend = 130 --last frame of animation-- function object:Draw() self.frame = AppTime()/100 self.frame=math.fmod(self.frame,self.frameend-self.framebegin)+self.framebegin Animate(self.model,self.frame,1.0,0,true) end end Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Manuel Posted August 15, 2010 Author Share Posted August 15, 2010 I can not prove the script, the evaluation kit has finish. Can anyone try my character and tell me if the animation works well? the only animation is from the frame 1 through 21. In the file I include the .fbx, .blend (of Blender) and texture. Can anyone try my animation and tell me if works well? Thank you very much for all! http://www.megaupload.com/?d=7S556P4P Quote Link to comment Share on other sites More sharing options...
macklebee Posted August 15, 2010 Share Posted August 15, 2010 it works after converting the model to gmf, converting the texture to dds, creating a mat file for the texture, and giving it an object script. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Manuel Posted August 15, 2010 Author Share Posted August 15, 2010 Ok, great! I think that I will buy Leadwerks engine soon. Thank you very much and sorry for all the inconvenience! 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.