The camera position according to the scale of the mesh
Hello, How to keep the camera or to a position sufficiently away so that an object is completely visible by its scale. Some very large object that makes the camera is found on the inside of the...
View ArticlePut html element above the selected object
Hello Babylon citizens! I need to put html element just above the selected object. Any ideas about how can I get distance in pixels between for example center of the selected object and left and top...
View ArticleI do something wrong with mesh.intersectsPoint(otherMesh.position)...
Hi guys, I'm creating a simple selection-mechanism with a 'rubberband' which selects all the meshes within that rubberband. What I have now is this: http://www.babylonjs-playground.com/#4EPTA For...
View ArticleGet position of object
http://www.babylonjs-playground.com/#I3AVN I created a plane that always looks to the camera. When click " Turn right Plane", Plane will be rotated with the same direction of the clockwise. I want that...
View Article3ds Max exporting three times the number of vertices
Greetings, This is my first post here but I have been using babylon.js for a while. As the subject explains I am not sure if this is intended. My designer colleague creates a simple cube and...
View ArticleExtrude Box Mesh by Face
Im wondering if its possible to extrude a box mesh by face. Like to create a dynamic cube wich could be extruded in to all 6 directions at runtime?
View ArticleHow do you "stop" light at plain edges? is it possible?
Hello! So, i have been messing around with babylonjs for a couple weeks now, just trying different stuff out, now, i have a rectangular plain, aprox 150x100, i want the "center" of the plain to be...
View Articleconvert position to alpha, beta for ArcRotateCamera
I have an ArcRotateCamera targeted on a sphere like this: camera = new BABYLON.ArcRotateCamera("camera", 0, 0, 10, BABYLON.Vector3.Zero(), scene); earth = BABYLON.Mesh.CreateSphere("earth",...
View ArticleTree Challenge?
This is my first attempt at a realistic tree generator http://www.babylonjs-playground.com/#QNVMR I am certain there must be a better way. Anybody want to have a go at doing a better one?
View ArticlePart 2 of my Babylon.js tutorial on MSDN
Hi Guys, Just wanted to share this link - https://msdn.microsoft.com/en-us/magazine/mt614269 If any of you want to play my half-baked Bowling game you can find it here -...
View ArticleHow to get a matte surface
Hi, Is it possible to get a matte surface? If I set a diffuseColor for a StandardMaterial, it is glossy. Thanks!
View ArticleRotate Object
http://www.babylonjs-playground.com/#I3AVN I created a plane that always looks to the camera. When click " Turn right Plane", Plane will be rotated with the same direction of the clockwise. I want that...
View ArticleshaderMaterial texture UV wrapping mode
Hello, how is possible to change the UV wrapping mode in a shaderMaterial? I'm tryng to change it in the texture but it seems it's not working. I'm using this line of code trying to achieve a mirror...
View Articlemesh.intersects(ray) not working with heightmap
Hey guys, I am trying to place some boxes randomly on a heightmap. Easy, eh? Well, therefor I want to determine the current altitude at some random coordinates by casting a ray to see where it...
View ArticleWebAssembly
A sort of philosophical question here... I've been wondering about WebAssembly and how it might impact on us in the Javascript/WebGL world. http://www.2ality.com/2015/06/web-assembly.html It seems...
View Articleconvert / load .b3d .x animated models
Hi New to Babylon sorting things out and searching what is already done and available. I have hundreds of .b3d and .x models from former developments - many still to be used in my babylon projects....
View ArticleHow to get Heightmap vertices?
Hi, How can I retrive heightmap vertices? I tried with the following: var Positions = ground.getVerticesData(BABYLON.VertexBuffer.PositionKind); It returns null. Is there a speical way to get all the...
View ArticleDetection of "Mobile"
One way to handle devices of varying capabilities that works for both meshes & materials is to have separate directories, say desktop & mobile. Each directory has everything required. The...
View ArticleParticles - how to not render the emitter ?
Hello everyone, just joined and tried to get the hang out of Babylon.js I'm a bit lost on this problem: I want to remove the particle emitter from rendering, so only particles are rendered, but no...
View ArticleInterleaved Vertex Attribs?
Not sure if I might check out Babylon.js more in the future or not, but I'm kind of curious I guess, does Babylon.js interleave vertex attributes on meshes automatically?I'll admit I don't know the...
View Article