pichayuth

Members
  • Content Count

    14
  • Joined

  • Last visited

About pichayuth

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have read the doc and from what I understand is, if i want to have 3 races in my game (dwarf, human, Orc) which dwarf has a smallest body size and Orc has a biggest one. I have to define a min state as dwarf size and max as Orc size separately for every body part (head, arm, hand, leg, etc) NOT!! The whole body together and the process of defining min and max will be done in modeling program such as Blender
  2. Dear, All experts I want to create a character creation system like Saint Row game. The Saint Row system allow me to adjust size of each part of the body, such as chest size, arm muscle, legs and arms length. I did some research and the internet said about "Morph" technique. but I still don't understand about what this technique is about, how to do it? how to apply to be used in Babylon? Some said I have to use Blender or 3ds. The information that I got seem to be overwhelming ,but it is like a jigsaw that I don't know where should i begin first. ***Sorry,if i post in the wrong forum or category Thank you in advance
  3. Thank you JCPalmer I will take a look at .babylon and maybe exporter, but what I have done now is, I called updateMeshPositions to update the vertices and get those vertices and setVerticesData. The mesh is changed, but I don't know if this is the best way to update it. m.updateMeshPositions(positionFunction, true); var temp = m.getVerticesData(BABYLON.VertexBuffer.PositionKind); m.setVerticesData(BABYLON.VertexBuffer.PositionKind, temp, true);
  4. thank you jerome and JCPalmer did you mean after loading the mesh in, I crate new Geometry by using the mesh .getVerticesData(BABYLON.VertexBuffer.PositionKind) and set updatable to true, am i understand it right?
  5. Hi, I have imported mesh from Blender which is basic box. I want to update mesh vertices positions each time I click the mesh, so I will get a random new shape from the imported mesh. (modify the existing mesh to get new one) this is the import mesh code var m BABYLON.SceneLoader.ImportMesh('', 'mesh/Box/', 'Box.babylon', scene, function (meshes, particleSystems) { m = meshes[0]; m.isVisible = true; var temp = m.getVerticesData(BABYLON.VertexBuffer.PositionKind); var count = 0; for (var i = 0; i < temp.length / 3; i++) { var arr = BABYLON.Vector3.FromArray(temp, count); count += 3; console.log(arr); } }) Each time I click, I try to change its color first and it worked and call updateMeshPositions. after calling updateMeshPositions, I log out the new positions and all positions is already changed, but the mesh look the same. var positionFunction = function (positions) { for (var i = 0; i < positions.length; i++) { if (i % 2 === 0) positions *= 2; if (i % 3 === 0) positions *= 4; } }; scene.onPointerDown = function (evt, pick) { if (pick.pickedMesh) { var material = new BABYLON.StandardMaterial('mat1', scene); material.emissiveColor = new BABYLON.Color3(0, 1, 0); pick.pickedMesh.material = material; m.updateMeshPositions(positionFunction, true); temp = m.getVerticesData(BABYLON.VertexBuffer.PositionKind); console.log(temp); } }; I don't understand that although the positions is changed but the mesh look the same. Thank you, every one in advance Peace.
  6. Thank you @adam for you suggestion. Now ,I didn't know much about BONE and the function , but I will put it in my list with the morph technique. I hope that now I am going in the right way.
  7. Thank you, @dbawel I will try to study Babylon.js in deep. Now, it looks like I have to do a research about morph target(morphing).
  8. Hi, and Thank you Pryme8 My first ideal is same like what you said. I thought of pre-creating all size of the body, but there can be many hundred to many thousand of models, so I thought maybe there is a better way. I have tried to look for blend animation and I understood that it is the way we animate the object, but is it really change the model data ? because next time the user login I have to load that model with the setting. Sorry, if I ask dump question. I am new here and I want to know about Babylon.
  9. Hi, Thank you Adam I have followed and seen the demo. I want to change my model dynamically just like the demo, but not 100% likes the demo. In the demo, when I minimized the head to the lowest value, it looked likes the eyes pop out and the upper and lower arms can't be adjusted relatively to each other.
  10. I have downloaded previous version of Blender(2,74) and tried with new exporter from Babylon,js. I got the model out,but got some warnings.
  11. Hi, I use new version of Blender(2.78a) and I have my model in it, so I tried to export it to .babylon file. I got exporter file from Github just now and I have already move io_export_babylon.py to Blender's addons. When I tried to export my model it got this error(in the picture that I have attached), but when I tried to export a normal cube, I could do it. With the same model, I can do it with the babylon exporter that come with babylon v2.4 and previous version of Blender. But for both new version of Blender and Babylon i can't. Thank you in advance Peace
  12. Thank you for your answer NasimiAsl and Getzel. So if I want to make a change to some parts of my character(nude model) for example this male character has bigger hands or smaller arms than the normal character ,but other part stay the same. To make a specific changing to some parts of the mesh(not the whole mesh like mesh.saclling) this technique called "morphing". Am I understand it correctly ?
  13. Hi I am new in this 3d field and I am looking for a right tools to build my dream game. I have read and seen some demos that use Babylon.js and I want to make sure that with Babylon.js I can make this game, so I want to ask all experts here, because I want to start right with the tools. I want to build a MMORPG game. Players can create their characters which is male or female. The players also can set the body size of their characters such as height, muscle, arm and etc and these settings will be used to calculate the characters strength, agility and power, for example big guys have high power and small guys have high agility. I want to know that with Babylon.js can I do all these things or do I have to use Blender or other libs to make a change of hero's size and setting. Thank you in advance Peace.