Quantcast
Channel: Babylon.js
Browsing latest articles
Browse All 388 View Live

Image may be NSFW.
Clik here to view.

Happy disco ball to you all !

hi guyz !       Nothing fancy here, just a little effect for the new year.       hope you enjoy and happy new year to babylonJS community !       http://www.synergy-development.fr/hny/

View Article


How to assign an Exported Scene to Scene variable

Hi, My name is vijay.I am new to this forum and new to Babylonjs. i got very much existed by the wonders we can create by using babylonjs so i started working on it. Especially in this forum people...

View Article


Question: How to use the mesh loader using data url?

hi,   So I have object file stored as data url in the form of "data:;base64...", and I need to pass the value to BABYLON.SceneLoader.ImportMesh.   I have been trying on using modelurl = "data url to...

View Article

Reducing Calculations Solid Particle System updateparticles

I'm having some framerate issues (granted there are 240k vertices)...   Getting about 58 on Desktop... Drops to 15 Chrome on  Laptop and then 8 on Firefox on Laptop...   http://crab.strangled.net/   I...

View Article

Image may be NSFW.
Clik here to view.

Problem with layerMask and shadow

Hi all, and Happy New Year !!!!! I come with an over problem. I've got a ground, and some meshes on it (this is a strategy game). I've got 2 viewports, 1 for the game, and 1 for minmap to have a global...

View Article


Image may be NSFW.
Clik here to view.

Babylon.js and playing sounds

Anyone who has looked at the code I use for playing sound, music or dialog will notice that I use howler.js for playing sound. Now this New Year, I made a resolution to investigate more the the sound...

View Article

babylon js preloader

Hi,   We have used asset manager to import meshes into scene with the default loading UI. How can we show the progress of the load as can be seen in the link   http://webtrude.com/Models/hs00/trial4...

View Article

Bump maps

Well, I'm managed to generate textures and meshes using procedural techniques.  Now I'm working on bump maps.  For my first attempt, my assumption was the bitmap contained the actual normals, no worky....

View Article


getAltitudeAt()

continued from : http://www.html5gamedevs.com/topic/15523-getheightatcoordinates-alternative/?p=111175   same algo slightly modified for a ribbon : http://www.babylonjs-playground.com/#1QC4YQ#8

View Article


Mirroring objects (preferably as instance)

Hello,   Is there a way to efficiently mirror imported/created meshes in Babylon?   The obvious way would be to set the scaling of the desired mirror axis to -1, so that it could be part of the same...

View Article

Fluid Simulations using LiquidFun

Happy New Year All!   I had a little time over holiday break to play with LiquidFun and BabylonJS together. LiquidFun is limited to 2D physics, but you can still do some neat stuff together with BJS...

View Article

Oculus Renderer Question

Do we have anything like this?   https://github.com/wwwtyro/three-vr-renderer   I'm trying to get this thing to render to an oculus and having heck of a time with babylon.  Thanks!   -P

View Article

javascript object creation and "n is undefined"

Hello, I'm tryng to create an object wich holds mine ground in a scene, I'm using this code but it doesn't works, in console I receive a "n is undefined" message. But with the vector creation, for...

View Article


Best setup to work on Babylon.js

Hey guys, when you work on Babylon.js to extend it or fix something, for example Jerome adds his SPS, how does your setup look like. Because working with the one big Babylon.js from the dist folder...

View Article

Image may be NSFW.
Clik here to view.

Babylon.js dancer looks like a creature.

Hi   I tried SIMD example of Babylon.js in each browser.   http://www.babylonjs.com/Demos/SIMD/   However, In some browser, Babylon.js dancer looks like a creature. Is it a problem of the browser?...

View Article


How to create a selection ring like in Starcraft 2?

While building an RTS, how would I go about creating a selection ring under a specific unit, like in Starcraft 2?   What I mean is the green ring here:...

View Article

how to load a cubeTexture in diferent sizes for mobile & desktop

Hi all, I would like to load the textures for a cubeTexture in different sizes, so that first only a small resolution is loaded and then the normal textures. like LOD I would like to use the...

View Article


Parse / Serialize Animation Ranges

I do not see where AnimationRanges can be placed in a .babylon file.  Just thinking out loud, but this might a method of implementing the export of Actions in Blender, which are also named.  I got 90%...

View Article

Accessing AssetsManager imports

Hi,   Im new to Babylon.js but it seems fun, I have a simple question about the code below. It imports models and places them in random positions, whats the most efficient way to re-randomise the...

View Article

Image may be NSFW.
Clik here to view.

Quality of DynamicTexture Text with transparent background

Hi Babylon citizens!  Thanks for your help. This forum is really helpful! I'm getting text and dynamically drops it on the given plane with DynamicTexture. But I feels like quality gets lower when I...

View Article

How to create a hollow box (open from top side)

Hi all   I want to create a box (or a mesh) which should be open from top side. I will use it to drop items into it  using a physics engine such as cannon.js     For example the physics applied to the...

View Article


How to create a rectangular box?

When creating a box, there's the assumption that all sides are of equal length.   However, for a rubberband selection in an RTS I'd like to create a rectangular box on the fly (from the screen down to...

View Article


Updating CannonJS plugin

Hi all, is anyone going to update the CannonJS plugin to support latest Cannon version? I tried replacing the cannon.js to use the latest one and I got the same issue as described here:...

View Article

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 Article

Put 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 Article


I 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 Article

3ds 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 Article

Extrude 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article



convert 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 Article

Tree 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 Article

Image may be NSFW.
Clik here to view.

Part 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 Article

How 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 Article


Rotate 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 Article

shaderMaterial 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 Article

mesh.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 Article


Image may be NSFW.
Clik here to view.

WebAssembly

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 Article


Image may be NSFW.
Clik here to view.

convert / 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 Article

How 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 Article

Detection 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 Article

Image may be NSFW.
Clik here to view.

Particles - 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 Article


Interleaved 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

new getHeightAtCoordinates() and getNormalAtCoordinates() functions

http://www.babylonjs-playground.com/#1LEGTP#1   Commented code : each rolling ball has a tiny line on its top, normal to terrain.

View Article


Image may be NSFW.
Clik here to view.

Water bug with bGUI

Hi everyone,   I'm developing a projet with Babylon.JS : http://www.info-d-74.com/demos/aqua/ And I got a strange bug with bGUI. When I had this code in my loader.onFinish function :...

View Article

Full light for specularTexture

Hi everyone.   I have a doubt, need to illuminate a specularTexture but for the effect I am looking for the light must be absolute (everywhere) and I can´t achieve it with hemispheric lights: var...

View Article


Optimizing scene: MergeMeshes makes a copy

Hi,   I have an array of boxes (which are all cloned from an initial box), placed next to each other (as one long box). I want to merge these boxes together.   Using the following function, I've...

View Article

Image may be NSFW.
Clik here to view.

DDS Texture Issue?

See below. I've attached the texture too. For whatever reason, 3DS sees the texture fine, but paint.net and babylon show it as a transparency so my models are invisible in the scene.   Does anyone know...

View Article

Image may be NSFW.
Clik here to view.

[TUTO] Analyzer

Hi guyz !   Here is a little tutorial about the analyzer in Babylon.   This is the effect we will try to do here : http://synergy-development.fr/webaudio2/   We will make a grid of cube moving with the...

View Article

How Does BJS Handle Cameras

Hi,   I'm having a look at the excellent bGUI extension code. I'm wondering how Temechon did to display a vertical orthographic panel in front of the main scene.   I'm just discoverying that a BJS...

View Article


How to play the sound only when the moving mesh?

How to make the appearance of a sound only when the moving mesh. I want to move the mesh only arrows.  If I write "autoplay:true" the music plays regardless of the movement of the mesh.  var ms = new...

View Article

Browsing latest articles
Browse All 388 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>