getzel

Members
  • Content Count

    130
  • 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. getzel

    Multiplayer games challenge - The games

    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. Hello guys ! http://www.babylonjs-playground.com/#1E3DCH#2 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 ?
  4. getzel

    moveWithCollision ellipsoid size

    Now you can move pressing any key. Yes it doesn't work with a centered ellipsoid : http://www.babylonjs-playground.com/#1E3DCH#8 the collision tests first the lower part ? Instead it works with a bigger ellipsoid offseted : http://www.babylonjs-playground.com/#1E3DCH#13 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.
  5. getzel

    How to use Scene.pickWithRay ?

    Hello, there is a predicate part in my raycast tutorial : http://doc.babylonjs.com/tutorials/raycasts draw the ray : ray.show(scene, new BABYLON.Color3(1, 1, 0.1));
  6. getzel

    moveWithCollision ellipsoid size

    But the ellipsoid should be at the center of the mesh by default, no ? @Deltakosh Can you take a look ?
  7. getzel

    moveWithCollision ellipsoid size

    @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 ?
  8. getzel

    moveWithCollision ellipsoid size

    Who made this function moveWithCollision ?
  9. getzel

    moveWithCollision ellipsoid size

    Thank you a lot for this function. So now we see the ellipsoid : http://www.babylonjs-playground.com/#1E3DCH#5 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.
  10. I dont know where to put that because its general tutorials about mathematics but very useful : Jorge Rodriguez : https://www.youtube.com/playlist?list=PLW3Zl3wyJwWOpdhYedlD-yCB7WQoHf-My Maths for 3D games, everything but advanced and fast. Khan : https://www.khanacademy.org/math/trigonometry/ Here is trigonometry courses, basic and slow with exercices, it takes you by the hand. There are also vectors and matrices courses.
  11. Can we have a t-shirt even if we finish 2nd ?
  12. getzel

    WebGl and webGpu

    Maybe WebGL 3 will evolve inspired by Vulkan : https://www.lunarg.com/faqs/vulkan-web-applications/ No WebVulkan because of Apple but WebGL is ok.
  13. getzel

    Contributing to documentation 101

    I'm happy to see that my tutorial about raycasts is now online, thx to Deltakosh and RaananW : http://doc.babylonjs.com/tutorials/raycasts 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 ?)
  14. getzel

    Chill topic

    This is low level, sound shader.
  15. getzel

    Chill topic

    Hey guys, Wanna talk off-topic or just things that go inside your head ? Do you know this magazine ? http://www.gdcvault.com/gdmag I'm so nostalgic about the late 90's and the beginning of 3D on PC and Playstation. We can discover the softwares of this time. Some are still here (Maya, 3DSMax) and some have disappear. A lot of process remain the same (C++, OpenGL, maths).
  16. getzel

    Contributing to documentation 101

    You're welcome, I'm happy to contribute ! When the result will be online ?
  17. getzel

    Contributing to documentation 101

    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. https://github.com/BabylonJS/Documentation/pull/343 But i dont know why the checks after the pull request have failed ? (I don't have access to the netlify log.)
  18. getzel

    Bjs is moving fast

    This is badass !
  19. getzel

    Mesh lookAt

    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). http://playground.babylonjs.com/#KNE0O#4 This will be soon in the tutorials.
  20. getzel

    Contributing to documentation 101

    It would be cool if there is a button link to Babylon.js main site in the Documentation's menu. http://doc.babylonjs.com/ 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.
  21. getzel

    My babylon js game

    The characters look like guys in latex suits escaped from a sadomasochist dungeon. Just kidding, thats cool
  22. getzel

    Bjs is moving fast

    Sure ! edit : Finally I found the edit online button on github lol. No need to use softwares.
  23. getzel

    Bjs is moving fast

    @Nockawa Thx for your help. By Wiki I thought about editing online (cms with validating process after).
  24. getzel

    Bjs is moving fast

    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.