Jump to content

Yue

Members
  • Content Count

    623
  • Joined

  • Last visited

Community Reputation

139 Excellent

1 Follower

About Yue

  • Rank
    Advanced Member
  • Birthday 11/04/1978

Profile Information

  • Gender
    Male
  • Location
    Colombia / Bogotá

Recent Profile Visitors

1,390 profile views
  1. Yue

    The forklift

    The nightmare error has been fixed. Because if I tried to rotate the vehicle and give it a new position somewhere else, we had this. By now I have the tires correctly in place, it's scary to look inside the code to do this, but it's usually fun, I hope to have everything under control. The next step is to establish the ideal configuration for the tires with their springs, tire steering, and engine to move the vehicle. The litmus test really is when you want to implement the shovel and lift a hollow pallet, that will depend on the end of this prototype of forced vacations. code here: https://paste.ofcode.org/98YxbjP8RN8REtpY3ArhSe
  2. Yue

    The forklift

    Creating the hinges for steering the rear wheels of the forklift. The next thing is to limit their angle of rotation, and hook the rims with another hinge joint.
  3. Yue

    The forklift

    Program structure. nevitably I have come across the most feared problem, low FPS. Possibly it's because the hard drive is always working in the background, but no idea what it could be, it only happens when I move the camera away from a certain distance, and eventually this is not very animating if I put more entities on stage.
  4. Yue

    The forklift

    I've found a way for certain rigid bodies not to collide with others. For example, the rims do not collide with the chassis or the axle of the wheels, where the spring and the hinge joint are established. And here goes the best structured code that gives my head. https://paste.ofcode.org/34XJZpmUyKTmtG6uSYLngXq Although the front wheels are in the correct position, it does not yet have the suspension parameters set. For now it is only rigid, and the idea is that the suspension on this type of vehicle is very minimal.
  5. Yue

    The forklift

    Okay, I've got this under control. ow trying to solve puzzles of how to do one thing, the other, and improve. I've always told people who tell me why I don't make a game, and I tell them that it's like solving a crossword puzzle, at some point I run into something I can't solve, I leave it and then take it back with a fresh mind, of course that means sending work to oblivion, I think it's an excuse, but with time things get better and it becomes more fun.
  6. Yue

    The forklift

    This is the result of putting the springs in their respective positions. In motor debug mode I have some spheres where it is necessary to limit their angular limits in their three axes so that those spheres disappear. The strange thing about it is that I have to find a way so that these spring bodies don't collide with either the forklift body or the tires. In the first prototype I did this by making these bodies very small, but it is not that it was very viable, because at some point when moving the direction of the tires these blocked part of the movement of the vehicle. For Local x:Byte = 0 To Self.resorte.length -1 Self.ejeResorte[x].CreateD6SpringJoint(Self.chassis.ente, 0,0,0, 0,0,0, False,False) Next
  7. Yue

    The forklift

    I'm from Colombia, I told you that the processor I currently have was given to me a few years ago by someone named Derron from the disappeared community of Blitz3D. I think that the processor because it is small the shipment has not come out so expensive, but if they are bigger things than that, I think it comes very expensive shipping. The board only supports four gigas, but with the connection of the two usb to the ports improves a bit the performance. I've thought about changing the entire motherboard for a second one, to have more memory, but also here these technological products are very expensive. Well, I continue to make progress in this, I'm putting correctly the rigid bodies for the springs, in the first prototype had a spaghetti code, and the idea is to have everything a little more organized so that this does not get out of hand Translated with www.DeepL.com/Translator Type TVehiculo Field chassis:TMesh Field pxChassis:TMesh Field rueda:TMesh[4] Field ejeResorte:TMesh[4] Field resorte:Int[4] Field motorDir:Int[2] Field motorRueda:Int[4] Field ejeDir:TMesh[2] Function Init:TVehiculo() Local veh:TVehiculo = New TVehiculo veh.Load() Return veh End Function Method Load() ' Chassis. Self.chassis = TMesh.Init("Chassis.x") Self.pxChassis = TMesh.Init("ChassisPx.obj") Self.chassis.AddConcaveShapeProxy(Self.pxChassis.ente,0) Self.pxChassis.Free() Self.chassis.SetAlpha(0.4) Self.chassis.SetPosY(3) ' Ruedas. For Local l:Byte = 0 To Self.rueda.length - 1 Self.rueda[l] = TMesh.Init("Llanta" + l + ".b3d") Self.rueda[l].AddConvexShape() Next Self.InitResortes() End Method Method InitResortes() ' Ejes de los resortes. For Local r:Byte = 0 To Self.ejeResorte.length -1 Self.ejeResorte[r] = TMesh.Init() Self.ejeResorte[r].SetColor(255,128,0) Self.ejeResorte[r].SetScale(0.2,0.02,0.02) Self.ejeResorte[r].AddBoxShape(0) Self.ejeResorte[r].SetFX(1) Next ' Posiciíon de los ejes. Self.ejeResorte[0].SetPosY(2.8) Self.ejeResorte[0].SetPosX(-0.5) Self.ejeResorte[0].SetPosZ(0.9) Self.ejeResorte[1].SetPosY(2.8) Self.ejeResorte[1].SetPosX(0.5) Self.ejeResorte[1].SetPosZ(0.9) Self.ejeResorte[2].SetPosY(2.8) Self.ejeResorte[2].SetPosX(0.5) Self.ejeResorte[2].SetPosZ(-0.6) Self.ejeResorte[3].SetPosY(2.8) Self.ejeResorte[3].SetPosX(-0.5) Self.ejeResorte[3].SetPosZ(-0.6) End Method End Type
  8. Yue

    The forklift

    Hi, thanks for your question. I'm using BlitzMax + Xors3D. The board is a https://www.asrock.com/mb/Intel/Wolfdale1333-D667 R2.0/index.la.asp At the moment I have 2 gigas of ram and a hard disk of 80 gigas, it has touched me to connect two memories usb to the ports, each one of four gigas, apparently improves the general performance of Windows 10. Equally I have uan Nvidia gtx 1050 Pny. The processor is an E8400 Intel Duo. 3.0 Translated with www.DeepL.com/Translator
  9. Yue

    The forklift

    The collision of the tires, has improved, it is no longer just a ray, but a type of collision a little more like reality. Type TVehiculo Field chassis:TMesh Field pxChassis:TMesh Field rueda:TMesh[4] Field motorDir:Int[2] Field resorte:Int[4] Field ejeResorte:TMesh[4] Field motorRueda:Int[4] Field ejeDir:TMesh[2] Function Init:TVehiculo() Local veh:TVehiculo = New TVehiculo veh.Load() Return veh End Function Method Load() ' Chassis. Self.chassis = TMesh.Init("Chassis.x") Self.pxChassis = TMesh.Init("ChassisPx.obj") Self.chassis.AddConcaveShapeProxy(Self.pxChassis.ente) Self.pxChassis.Free() Self.chassis.SetAlpha(0.5) Self.chassis.SetPosY(5) ' Ruedas. For Local l:Byte = 0 To Self.rueda.length - 1 Self.rueda[l] = TMesh.Init("Llanta" + l + ".b3d") Self.rueda[l].AddConvexShape() Next End Method
  10. Yue

    The forklift

    The result of the optimization. Type TVehiculo Field chassis:TMesh Field pxChassis:TMesh Field resorte:Int[4] Field ejeResorte:TMesh[4] Field motorRueda:Int[4] Field motorDir:Int[2] Field rueda:TMesh[4] Field ejeDir:TMesh[2] Function Init:TVehiculo() Local veh:TVehiculo = New TVehiculo veh.Load() Return veh End Function Method Load() Self.chassis = TMesh.Init("Chassis.x") Self.pxChassis = TMesh.Init("ChassisPx.obj") Self.chassis.AddConcaveShapeProxy(Self.pxChassis.ente) Self.pxChassis.Free() End Method End Type
  11. Yue

    The forklift

    To avoid the collision calculation being made on the chassis of the forklift that has about five thousand polygons, I'm creating a simplified version of the chassis to create the body that collides, this means gaining a little performance.
  12. Yue

    The forklift

    Concave vs Convex
  13. Yue

    The forklift

    With the new best in Leadwerks for version 4.6 my mouth is watering to use it, but unfortunately my computer is not in the best possible condition, two gigas in ram is not enough in windows 10 and Leadwerks closes inseperately after a while, so I will continue here while I see who can sell me a board with better features, that if and count if I have the money. Well, I continue with the joints, in this case better accommodating the code to create a spring joint. Translated with www.DeepL.com/Translator Local cubo:TMesh = TMesh.Init() cubo.AddBoxShape(1) cubo.SetColor(255,0,0) cubo.SetPosY(0.1) cubo.SetScale(5,0.2,5) Local cubo2:TMesh = TMesh.Init() cubo2.AddBoxShape(1) cubo2.SetColor(255,255,0) cubo2.SetPosY(1) cubo2.CreateD6SpringJoint(cubo.ente,0,-2.0,0, 0,2,0, False, False ) JointD6SetAngularLimits( cubo2.joint, 0,0,0, 0,0,0) JointD6SetLimits( cubo2.joint, 1, -1, 1) JointDisableCollisions(cubo2.joint,1 ) JointD6SpringSetParam( cubo2.joint, 1, True, 200, 50 )
  14. Yue

    The forklift

    And here we have the engine test, obviously it looks good, a lot of suspension for this kind of vehicle, but that can be fixed. However, the mistake I have now and it has made me think, is that if I want to change the rotation of the chassis during the game, just rotate the chassis and not the tires, that makes me thoughtful.
  15. Yue

    The forklift

×