Jump to content

Joh

Members
  • Posts

    474
  • Joined

  • Last visited

Everything posted by Joh

  1. I loaded my animated mesh with loadmesh, but when i try to use getentityaabb i receive all the value to 0. Do you know why?
  2. Joh

    Road face problems

    Thanks mack, i'll try this.
  3. Joh

    Road face problems

    Found a workaround i simply raised a bit the road. Do you "fix" the y pos on editor? I really don't know what think, anyway seem ok for the moment.
  4. Joh

    Road face problems

    Josh just a question, which version of bmax you used to compile?
  5. Joh

    Road face problems

    Also compiled from another pc and same weird result..
  6. Joh

    Road face problems

    I just tested on my office pc and had the same result. Is there anyone who have the same issue? This evening i will try a fresh install.
  7. Joh

    226 Animated soldier!

    Well yes it was just a rough test!
  8. Joh

    226 Animated soldier!

    1 milion polygon and 17 fps.. Amazing
  9. Joh

    Road face problems

    The three images show you the issue.. This happened ONLY using this code (not in the editor) that is token by the documentation.. Framework leadwerks.engine Import "c:leadwerks engine sdkbmxframeworkframework.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. Joh

    Road face problems

    This seem don't have any effetcs, i don't see this error when the camera is far away.
  11. Joh

    Road face problems

    http://db.tt/8Zv5vYwM Here you can see the image. As i told this doesn' happened on editor and i simply copied an pasted the code on documentation (lua an bmax) Any idea?
  12. Hi all, i have a problem when i load the desert map on the editor everythings work fine, when i use the example on leadwerks wiki it load the map cprrectly but when the camera goes near to the street some face of the road flick and goes away (probably under the terrain). Do you know why? I can't show images right now because i am from the mobile.
  13. Well not necessary.. I just wanna get some data, that i have put on it using the editor but as now there is a command to seek all the entities i suppose it can be done later on. I am an "old" LE coder, when i used it there wasn't this command so it was a little bit harder, also i did many commercial games and i admit that i never used an easy engine as Leadwerks, that's why i always try to do everything by myself! Thanks again Pixel.
  14. Yeah that's was my question! Thaks to "fix" my english! But anyway i think i can use lua just to load the whole scene and forget about it!
  15. Size = 75 kb. Dimension = 350x350 Format = jpg I retry with an icon and let you know something. I reduced it by 50% and it worked well. Thanks.
  16. Image size? Where i can found it? Checking the image window it's tell 200px or larger. I choose an image 350x350 on jpg but still failing.
  17. I saw it there are voice called river node or road node. In those string there is a voice called "data" (or something similar) and this is not saved as string, i am wondering how it saved. If i could have the "specifications" in how it's saved i could load it. Also i am not sure which kind of data those are, maybe are the mesh data.
  18. Well no, my english isn't really good I wanna load it without using lua, just by code, as i told i already did the process scene for other things, but still don't know how implement road/river.
  19. Hi all, I know that lua doesn't need to do this but i wanna do it.. so: How can i manage road or river after loaded the scene? I did my own process scene (and didn't debug it at all yet) but before doing this i wanna know if i should do something in particular. Opening the sbx file i saw there is some data, are those mesh data? Did i need to create it or loadscene do for me and i only need to process it? Thanks in advice.
  20. Really? Wonderful! Can you give me more details? Link or name of it?
  21. Also as a game isn't made in few days, when your game (and engine too) will be ready probably an NVIDIA 8800 it will be a "base" Graphics hardware.
  22. I just need to say that almost every big game have big requirements. It's named "Progress". Call of Duty: Modern Warfare 3 System Requirements Requirements Microsoft Windows[30] Operating system Windows XP, Windows Vista, or Windows 7 CPU Intel Core 2 Duo E6600 or AMD Phenom X3 8750 processor or better Memory 2 GB RAM Graphics hardware 256 MB Pixel Shader 3.0 or better (NVIDIA GeForce 8600GT/ATI Radeon X1950 or better) Sound hardware DirectX 9.0c or later
×
×
  • Create New...