Jump to content

Search the Community

Showing results for tags 'renderoutline'.

  • 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
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 5 results

  1. Hello. I have a kayak model in my scene and I would like the renderOutline to show around the model like in the playground examples below: http://www.babylonjs-playground.com/#18ZFZ9 http://www.babylonjs-playground.com/#18ZFZ9#2 Here is code importing the kayak: BABYLON.SceneLoader.ImportMesh("", "models/", "Kayak.gltf", scene, function (newMeshes) { }); ----------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------- I first tested out this code below. I checked index numbers 0-12 and newMeshes[6] is the only one that shows the outline around the model. Another problem is this changes my kayak hull texture as well: BABYLON.SceneLoader.ImportMesh("", "models/", "Kayak.gltf", scene, function (newMeshes) { newMeshes[6].renderOutline = true; newMeshes[6].outlineWidth = 0.01; newMeshes[6].outlineColor = new BABYLON.Color4( 255, 200, 0, 1); }); ----------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------- Next, I tried the loop like in this playground: http://www.babylonjs-playground.com/#18ZFZ9#2 . The outline shows around the model but is outlining the other meshes on the model as well. BABYLON.SceneLoader.ImportMesh("", "models/", "Kayak.gltf", scene, function (newMeshes) { for (var i = 0, max = newMeshes.length; i < max; i += 1){ newMeshes.renderOutline = true; newMeshes.outlineWidth = 0.01; newMeshes.outlineColor = new BABYLON.Color4( 255, 200, 0, 1); } }); ----------------------------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------- This image below is exactly what I'm looking for. What would be the best way to achieve this? Thank you.
  2. Hi, new to Babylon.js and the forum. I want to use the renderOutline property on the rabbit.babylon model from BONES demo. BABYLON.SceneLoader.ImportMesh("", "models/", "rabbit.babylon", scene, function (newMeshes, particleSystems, skeletons) { var mdl_Rabbit = newMeshes[0]; mdl_Rabbit.position = new BABYLON.Vector3(0, 0, 40); mdl_Rabbit.renderOutline = true; }); It changes the position of the rabbit but it does not render outline. Also for some reason, I could use newMeshes[12] and the rabbit would still display correctly. mdl_Rabbit.showBoundingBox doesn't work either. Overall it's obvious I don't understand how the ImportMesh works. So, what am I missing and how do I get renderOutline to work?
  3. Hi people, I'm wondering if it's possible at Babylon's current state of mesh.renderOutline to do some kind of glow or gradient fade effect? The docs doesn't say anything on the subject so i guess it isn't, but i still wanted to ask here incase someone knows something. and as a picture says a thousand words^^ this is kinda what i'm after: Cheers
  4. Hello everyone, i'm trying to use mesh.renderOutline = true to get an outline on an object which has been scaled in one direction. But instead i get a floating plane in this direction. I guess the outline is made by inserting planes under the faces of the mesh and letting the edges "stick out" and there is some problem with scaling of the target mesh. Here an example in pg: http://www.babylonjs-playground.com/#1KJG6O#1 I hope someone can help me. A workaround would be to create every time i want to scale my box a new box with the right dimensions. But as the scaling may happen every frame i suppose this would not be good idea. Thanks and Greetings, moreAPI
  5. When I use renderOutline on text that's been written on a plane, the outline appears on a different Z-plane than the actual plane the writing is on, resulting in an outline that's a few pixels away from the text. It ends up looking like this: Does anyone know how I can fix this?
  • Create New...