• Content Count

  • Joined

  • Last visited

Everything posted by getzel

  1. getzel

    WIP Rpg

    Imo, if you obfuscate there are not a lot of risks that an amateur will cheat. The best practice is to check on server side like in a PHP game before sending to other players (validate in real world). All logic variables like mana can be stored and updated easily for each player on server side. No physic stuff I think cause its difficult to simulate there. But this process is not really handy for the programmer, mostly in a real-time game. We are used to do nearby all code in client side. And the player still has to check first on client side too. Because he can't wait the answer of the server to see the result on his screen.
  2. Multiplayer is a little pain in the ass : Thinking about existing players and players to come, instantiate them. Not using something that has not be created so check the variables != null. Socket events are faster than the launching of the game so firing the functions once the game has loaded. Interpolation between existing position and movements we receive with Vector3.Lerp. I take more time than I thought. Congrats JP, it's deserved
  3. Now you can move pressing any key. Yes it doesn't work with a centered ellipsoid : the collision tests first the lower part ? Instead it works with a bigger ellipsoid offseted : I updated the drawing function for offset. We could implement it in the BJS sourcecode. Maybe it's better to have a bounding box than an ellipsoid for the collision testing on the character ? Because the ellipsoid is not so accurate.
  4. Hello, there is a predicate part in my raycast tutorial : draw the ray :, new BABYLON.Color3(1, 1, 0.1));
  5. But the ellipsoid should be at the center of the mesh by default, no ? @Deltakosh Can you take a look ?
  6. @RaananW The problem now is that the man is floating, not on the floor. We can change the ellipsoid offset but I guess it's not the best practice ?
  7. Thank you a lot for this function. So now we see the ellipsoid : But there is still the problem : the man can go through the floating box. Although if we set the box on the floor with position.y = 2, the collision works.
  8. Hello guys ! I do some experiments with the native function moveWithCollision and the ellipsoid parameter for meshes. I don't know what dimension should be the ellipsoid here or the ellipsoid offset. Our character is the red man and the obstacle is the blue box. The character should collide with the obstacle. I want to test collisions with man on the floor and box at different y positions : box on the floor (collision), floating box in front of man (collision), floating box upside the man (no collision) When box is on the floor, it's ok. There is a problem when the box is floating in front of the man (in the PG), because the man doesn't stop. If I change the ellipsoid number Y from 2.0 to 2.5, the man will be floating with strange collision and I want that the man stays on the floor. Offset is for moving the ellipsoid from the center of the mesh ? So I don't need it here ? Can we implement a function to draw the ellipsoid ?
  9. I dont know where to put that because its general tutorials about mathematics but very useful : Jorge Rodriguez : Maths for 3D games, everything but advanced and fast. Khan : Here is trigonometry courses, basic and slow with exercices, it takes you by the hand. There are also vectors and matrices courses.
  10. Maybe WebGL 3 will evolve inspired by Vulkan : No WebVulkan because of Apple but WebGL is ok.
  11. I'm happy to see that my tutorial about raycasts is now online, thx to Deltakosh and RaananW : So now the questions about that on the forum will be lighten and people can have directly the answers on the Documentation. _____ I have some other ideas for improving existing tutorials. I don't know if I'll do it or someone else : - Collision system : precisions on ellipsoid dimensions, talk about oncollide (new features to add : draw ellipsoid, onGrounded variable and slope factor maybe) - Animating bones : talking about the new features of 2.5 rotating bones, blending, playing animation only on certain bones (new features to add : importing multiples animation from different action and timeline in Blender ?)
  12. This is low level, sound shader.
  13. You're welcome, I'm happy to contribute ! When the result will be online ?
  14. We can't send private message to you @Deltakosh anymore. My raycast tutorial is ready. I tried to update the index of tutorials as you said. But i dont know why the checks after the pull request have failed ? (I don't have access to the netlify log.)
  15. Hello ! Use this function : function mousemovef(){ var pickResult = scene.pick(scene.pointerX, scene.pointerY); if (pickResult.hit) { var diffX = pickResult.pickedPoint.x - box.position.x; var diffY = pickResult.pickedPoint.z - box.position.z; box.rotation.y = Math.atan2(diffX,diffY); } } This is trigonometry (arctangeant2). This will be soon in the tutorials.
  16. It would be cool if there is a button link to Babylon.js main site in the Documentation's menu. When we click on Babylon.js on the top left corner. And DOCUMENTATION links to the main page of the documentation. In fact separate this one links into two.
  17. The characters look like guys in latex suits escaped from a sadomasochist dungeon. Just kidding, thats cool
  18. Sure ! edit : Finally I found the edit online button on github lol. No need to use softwares.
  19. @Nockawa Thx for your help. By Wiki I thought about editing online (cms with validating process after).
  20. Interesting debate, I think I understand both sides : Some users say it would be easier with more documentation. Yea, for example the raycast thing with predicate, it is not explained in the doc and there is no tutorial for that. I had to look on the forum. It is not difficult but it is the second process normally. We could improve that by completing the documentation or tutorials with important posts of this forum or our contribution to make it official. Some contributors's priority is not so much documentation. And they are not passionated by writing tutorials, easy to understand. They prefer to code. And they may have a different point of view, for them matrix (for example) is an easy thing so they don't understand how much beginners can be stucked. BJS is already good documented and beginner friendly (more than three.js) so I'm happy and very grateful for that. But it could always be better (nothing is perfect). So we could together help to improve the documentation. I want to add this tutorial page about raycast but I have to learn how to contribute to documentation with Git (i learned) and Grunt (i didnt have yet). We could create a wiki to make it easier to contribute ? But for some tools, only the contributor can help because nobody else knows how to use. Who else can know better its tool when its an advanced one ? BJS is like a bunch of tools. You have to choose the right ones and assembly it like a puzzle to make your game. Do we guide the user ? With my modest Babcity, I will try to find a way to resolve a puzzle.
  21. Haha you've been George Michaeled