Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

scaling and renderOutline not working properly

$
0
0

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


Viewing all articles
Browse latest Browse all 388

Trending Articles



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