Jump to content

Search the Community

Showing results for tags 'meshes'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





  1. Hello ! My objective is to create geometry for meshes. until now I used quad so it wasn't too hard to model. Now I want to model some more complex shapes in 2D, polygons, cones etc. Since I'm familiar with the tools exposed in the PIXI.Graphics object, I thought to myself, "Hey! I'm going to draw a shape, and reuse the geometry contained in the Graphics object." Here is my playground: https://www.pixiplayground.com/#/edit/jGD8JtmKkkbseor6FklBg But after a few tests, it doesn't look so easy. What did I miss? Thanks for your help!
  2. Hi to all.. I hopefully everybody is fine.. I'm tryed to do create highlight effect and i've done it easly, it was very quick; and i know this effect not apply to the transparent meshes (i've read HL part so many time). But my issue is that... I've some pictures designed like buttons, and those pictures atteched to each other while designing. (Seems like one mesh) I was created some invisible boxes on front of all those button pictures and i given action them, they are all together clickable and working fine. No problem in there.. But i want to create highlight effect
  3. Hello, I am using babylonjs to implement a 3D visualizations inside my app. The app allows a user to define a scene in a 2D view. The scene is static in the 3D view - meshes cannot be moved, edited etc. A user can interact with objects using mouse - selection by click, hover on mouse move, double click to open in another view. In my opinion the most natural way to present that something is happening when user moves mouse is to change meshes’ colors. Everything works well (50-60 fps) when there isn't much meshes – 300-400. Unfortunately, performance drops down when the scene becomes m
  4. Hi guys, I wanted to share with you a custom library I made, that was very helpful on my project. It implements the basic constructive operations on meshes, like union, intersection, subtraction etc. In 3 words, it's called "constructive solid geometry". The library is an adaptation from csg.js (http://evanw.github.com/csg.js) for BabylonJS meshes. You will find this lib useful if you meet the need to dynamically build your own geometry with basic primitives. For instance you can carve cylindric holes in bigger cylinders to create pipes (wink wink to all old-school Half-Life mappers dow
  5. Hello, its me again, sorry for inconvenience. I have the following question: How can I position a mesh as a button in the corner of the (free)camera in a fixed position on the corner even if I move the camera? Thanks.
  6. Hi, Maybe its a dumb question but how can I get only the first mesh of a imported model from Blender? Until now I had no reason to use another thing like: scene.getMeshByName("unique_mesh"); But now I need to get only the first one (nad meybe the third one) to make changes in babylon. How can I achieve it? Thank you all.
  7. Hello, Is there any way to optimize animations? If I want to animate a lot of meshes at the same time, over 200 or 300 instances... they all are having their scaling animated, but at different times.
  8. Hi all. I'm trying to return an array of objects loaded by the Mesh Importer for later use. I would like to be able to call a function to load my objects and outside of the function, affect & change each one of them OUTSIDE of the function. Here is the small demo I made :: http://www.babylonjs-playground.com/#1QJUDF#3 Thank you! <3 Mythros
  9. Hi everyone, I have an obj file of an object composed of several meshes. When I load this file using the object file loader and try to drag it (as in the drag and drop tutorial in the playground) only one of the meshes is selected. What is the correct way to make sure the object is selected? Thanks!
  10. Hey guys, I'm very new to babylon JS and I've a problem with understanding how to add a mesh to the cursors movement. Here is an example: try.matterport.com. I've created a playgroud: https://www.babylonjs-playground.com/#S0BZWE The mesh is changing its size and isn't always in front off all other meshes as shown in the exampel (matterport). Can somebody give me some light? Thanks in advance Benji
  11. Hi, Don't know if this is intended behavior but ActionManager executes actions on disabled meshes too. Don't want it run on disabled meshes. Also actions registered with a parent mesh are not executed by children. Got children to execute parent action by registering action to each end child. For meshes disposed/created actionManager to toggle action execution when they are disabled/enabled. So found a way around both, if anyone is looking for it. If there is a better way, please tell. Would love to see ActionManager handle this internally. Thankyou And yeah pg: http:
  12. I'm trying to get my head around the functionality that allows lights to only illuminate certain meshes - namely using includedOnlyMeshes and excludedMeshes . And I seem to have run into a problem which hopefully you can see with this playground example Lights The example has two spheres, sphere(centre screen) and sphere2 (right side). Down the script four lights are set up and there are some marked lines of code for "turning off" the red and green lights for the centre sphere. The red light is "turned off" by using this line of code: light0.includedOnlyMeshes = [sphere2];which tells
  13. There is a lot of documentation about how to export from different formats and platforms to babylon. I didn't find the reverse so far, and at this point I don't know if it's because there isn't or there are too many results from obj to babylon, so I can't find them. I want my App to be able to give me a full 3D freeze scene, like a screenshot, of the scene the users/players creates. For sure I can take all meshes from my scene, diving in the documentation and build my own obj file, but before reinventing the wheel I hope there is already a good library for this. Thanks for
  14. All the meshes in the scene are dissapearing when i try to dispose only one mesh http://www.babylonjs-playground.com/#1QY43I#0
  15. good morning guys...I want to be able to spawn meshes in a time interval without affecting the engine performance
  16. Hey! I'm struggling really hard trying to get anything to work - I checked to Playgrounds, forums and documentation but I can not find anything helpful about working with imported meshes. Am I blind? Most of the playground examples I can find work with simple meshes like cubes and spheres, but that is not helpful for me. var frame = new BABYLON.Mesh.CreateBox("box", 100, scene); frame.isVisible = false; var loader = new BABYLON.AssetsManager(scene); var meshTask = loader.addMeshTask("FW", "", "assets/", "groups.babylon"); meshTask.o
  17. Hi everyone I'm trying to change the same meshes values to a new one. The problem that the old instance is still rendered in the scene over the new one. Is there is a way to clean the canvas or the sean or to clean the old meshes state ?
  18. Hey there, I have a problem with my imported babylon-mesh. Its not that small, and sometimes if I refresh the site, it is loaded to the half (the balloon loads, the basket not). Thats probably because the basket uses some textures, the balloon not. Is there a way to wait for everything (also textures) to load? Like the spinning circle from a lot of bablyonjs-projects featured on the main site. Here is the project: http://spielwiese.vllg.at/ Thanks! I don't want to seem unthankful, and because of that this small information: I'm not at home from now on till probably tomorrow Thanks fo
  19. Hi all, I am hoping someone on here can help me as I have given up trying to search for the answer. I have a scene with 29 meshes and what I would like to achieve is to import a new mesh from another scene file into one of the already existing mesh locations e.g scene.meshes[0]. What I would like to know is, is this possible using ImportMesh and if so how would one achieve this, any help would be much appreciated. Regards Andy
  20. Hello there, sorry I didn't find any topic (or searched with the wrong words) related to this. So look at the screenshot attached. I have this simple scene with just one mesh. This mesh has submeshes. I also have two hemispheric lights and one directional light. The ground receives shadow. Ok. But the mesh itself always gets black when "receiveShadow" is set to true. I tried bias value, every filter. Other light conditions. Nothing helped. So I always can't figure out what the shadowgenerator wants. How can I achieve that the desk throws shadows on itself? Thanks everyone for help!
  21. I'm not sure whether or not this is intended, but when viewing a concave mesh with hasVertexAlpha enabled, faces with normals that face the camera become visible through the rest of the mesh, resulting in a sort of 'x-ray' effect. (The depth buffer is being handled incorrectly?) Backface culling has no real effect on this, as far as I can tell. No alpha (control) [http://s17.postimg.org/sdsv8fqn1/Screenshot_from_2014_12_01_14_07_46.png] X-Ray effect with partially-transparent voxels [http://s17.postimg.org/5mf78ag7x/Screenshot_from_2014_12_01_14_07_20.png] X-Ray effect with empty voxels
  22. Hi everyone I have a problem with loading .babylon objects into my scene. I create a landscape, sky and water at my page and now I need to load some objects into scene like buldings and another things. I have .babylon file podused with Blender, but when I try use BABYLON.SceneLoader.Load(), I can see only me blender scene after rendering and I mean what I can see just only bulding at black background, no landscape, no sky. When I try to use ImportMeshes, I can see only scene with landscape etc without object. I dont understand where is problem
  23. Is there a way in babylonjs/ts to prevent meshes from falling through a map made with GroundFromHeightMap? meshes's physics seems to work only with flat ground tho the camera's gravity recognize height maps so what am' I missing?, in my searches, I've read that it was not support in Babylonjs, If so I would like to know and perhaps try other libraries tho I'm getting use to this one, which is very intuitive and usually find my own way. since my meshes are floating on water, i guess it could be made with shaders but yet to heavy for my understanding so far, any hint to get me started would be a
  24. Hi! I am having some problems that i think i can solve but i am wondering if there is any simpler solutions. I want an FPS like camera i am not happy with the standard controls of the FreeCamera even though i have changed the arrow keys to W,A,S,D keys. I don't like that you have to press the left mouse key to rotate it. Is it possible only using moveCamera controls and skip the rotation part of a FreeCamera? If it's not, can i move the camera depending on it's rotation so it always moves forward when pressing the W key. I am also wondering if anyone nows a easy way of implementing a dra
  25. Hi! I have problems changing the rotation and position of meshes when i have added physics to them. I have taken a look at the tutorial (https://github.com/BabylonJS/Babylon.js/wiki/How-to-handle-rotations-and-translations) but still haven't found a solution. I have manage to change the rotation and position before i have added physics to the mesh but i would rather change the rotation and position without removing and adding the mesh every time i want to change it's position and rotation. I think the problem is that i don't manage to get these two function to work. mesh.rotate(BABYLON.Ax
  • Create New...