Jump to content

Joh

Members
  • Posts

    474
  • Joined

  • Last visited

Profile Information

  • Location
    Italy

Joh's Achievements

Newbie

Newbie (1/14)

13

Reputation

  1. Well as all of us still have a life, i can surely understand your needs! Honestly speaking i did not use leadwerks forum since a while so i don't know most of the users.. My goals is fulfill my free time with some interesting project, so of course let me know anything about that.
  2. I know about last community project, i was looking for something similar. I did a lots of game, so is not easy describe "my skills", i love AI, but i work for a small software house (10 persons) so most of the time i need to do many things.. (Gameplay, Ai, Ui, etc..) My known languages are: C++, Java, C#, Ue4 (Blueprints), Basic, Blitz, Js You can also check my linkedin profile: https://www.linkedin.com/in/johnny-picciafuochi-3536b318
  3. Hi guys, i am back to Leadwerks! Many months (years!?!?) ago i was a Leadwerks user, now i am back again and i would like join for a HUGE project. My name is Johnny and i am a full time programmer, i have some free time atm and i really want give to Leadwerks engine a great game! Is there any community project or other kind of project in development? Let me know ASAP! Joh.
  4. Hi guys i am looking for the fastest way to know the x,y screen coordinates of a 3d point. Any suggestion?
  5. Nice.. Didn't know about this callback. In past i used another way to render with opengl.
  6. So basically we should just use our opengl command in this callback?
  7. @Josh working with aabb and entity i see a strange issue (not sure if it's a bug, i am back on leadwerks after many months..) i loaded the monstertruck and aabb y0 higher of some vertex position.. It's probably due to tyre but how could i find the correct aabb y0? Also i am working on animation, is there a way to get vertex-bone information? I know my english is bad, i hope you'll understand what i was meaning for.
  8. Ok a fast update.. Modified the code to be faster, fixed some bugs, now voxel are a lot more detailed. Still working on point/cube render. On blank rectangle there is written the number of voxels present!
  9. You should do something like this to load everything. Framework leadwerks.engine Import "c:\leadwerks engine sdk\bmx\framework\framework.bmx" Include "lua-gluefunctions.bmx" GCSetMode(2) RegisterAbstractPath ("c:leadwerks engine sdk") Graphics(800, 600) 'Create a framework instance called 'fw'' Global fw:TFramework = CreateFramework() If Not fw RuntimeError "Failed to initialize engine." 'Pass to the lua state' SetScriptObject("fw", fw) Global scene:TEntity = LoadScene("abstract::deserthighway.sbx") PositionEntity(fw.Main.camera, StringToVec3(GetEntityKey(scene, "cameraposition"))) 'movement variables' Global move:Float = 0.0 Global strafe:Float = 0.0 Global camrotation:TVec3 = Vec3(0) Global mx:Float = 0.0 Global my:Float = 0.0 HideMouse() fw.SetStats(1) 'Main loop' Repeat If KeyHit(KEY_ESCAPE) Exit If AppTerminate() Exit 'camera rotation/movement' CameraUpdate() fw.Update() fw.Render() SetBlend(1) DrawText("Use WSAD/Mouse to move/rotate camera",0,20) SetBlend(0) Flip(0) Forever GCCollect() ShowMouse() End Function CameraUpdate() mx = Curve(MouseX() - GraphicsWidth() / 2, mx, 6) my = Curve(MouseY() - GraphicsHeight() / 2, my, 6) MoveMouse(GraphicsWidth() / 2, GraphicsHeight() / 2) camrotation.X = camrotation.X + my / 10.0 camrotation.Y = camrotation.Y - mx / 10.0 RotateEntity(fw.Main.camera, camrotation) move = KeyDown(KEY_W) - KeyDown(KEY_S) strafe = KeyDown(KEY_D) - KeyDown(KEY_A) MoveEntity(fw.Main.camera, Vec3(strafe / 10.0, 0, move / 10.0)) End Function Function StringToVec3:TVec3(text:String, scale:Float = 1.0) Local t:TVec3 = Vec3(1) Local sarr:String[] sarr = text.split(",") If sarr If sarr.length > 0 t.x = Float(sarr[0]) * scale If sarr.length > 1 t.y = Float(sarr[1]) * scale If sarr.length > 2 t.z = Float(sarr[2]) * scale EndIf Return t EndFunction 'These functions allow you to pass framework to the lua state' Function SetScriptObject(name:String, o:Object) Local size:Int=GetStackSize() lua_pushbmaxobject(luastate.L,o) lua_setglobal(luastate.L,name) SetStackSize(size) EndFunction Function GetStackSize:Int() Return lua_gettop(luastate.L) EndFunction Function SetStackSize(size:Int) Local currentsize:Int=GetStackSize() If size<currentsize lua_pop(luastate.L, currentsize - size) EndIf EndFunction
  10. Roland are you able to read my mind? Simply you written what i was thinking.. I am a bit scary!
  11. @Benton i used library many times, if you need to do a project you have limited amount of time. But this is not my case, i do this for fun!
  12. Ahaha that's why i love my job! That feeling!
  13. There is a beta of the exporter here: http://www.leadwerks.com/werkspace/files/file/353-voxel-exporter/ @Josh i see. Ok i'll try to improve my code. @Naughty Allen i know this lib, but if i use it i will lose the possibility to get fun doing this!
×
×
  • Create New...