Vesmy Posted December 1, 2017 Share Posted December 1, 2017 Hi, is there any way to render circle (planet orbit), which will have always same thickness (for example 3px), no matter the camera radius or angle? Here is (unfunctional) example. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted December 2, 2017 Share Posted December 2, 2017 Hi @Vesmy It could be done with scaling accordingly to the camera's radius.. but as can be seen here ; https://playground.babylonjs.com/#4K0F42#1 it will also gain/lose size compared to other meshes in the scene, which i suppose you're not interested in Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 2, 2017 Share Posted December 2, 2017 You could use your own shader/material for this. This what we are doing in the grid material: https://github.com/BabylonJS/Babylon.js/blob/master/materialsLibrary/src/grid/grid.fragment.fx This helps a lot : https://www.babylonjs-playground.com/#0CUISJ#2 aWeirdo 1 Quote Link to comment Share on other sites More sharing options...
Sebavan Posted December 2, 2017 Share Posted December 2, 2017 Actually way smoother and better antialiasing ;-) https://www.babylonjs-playground.com/#0CUISJ#4 meteoritool 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.