Brijesh Posted April 4, 2017 Share Posted April 4, 2017 I created a spiral using a CreateLine method and connect points, Now i want to apply texture, glow effect and some width to created line, Is it possible ?? If any one have some idea,please help me..!!!! Quote Link to comment Share on other sites More sharing options...
jerome Posted April 4, 2017 Share Posted April 4, 2017 Lines have no width. You can create a ribbon or a tube instead. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 4, 2017 Share Posted April 4, 2017 There might be a way that breaks the rules. HighLightLayer Do not forget you have to instance engine correctly by enabling stencil. Unless this is no longer required this looks like a major ommission in the doc. Since a playground does not instance engine, it will not be easy to know why it does not work. var engine = new BABYLON.Engine(canvas, true, { stencil: true }); Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 4, 2017 Share Posted April 4, 2017 I'll fix the doc asap! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 4, 2017 Share Posted April 4, 2017 (And now stencil is on by default on 3.0) Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted April 4, 2017 Share Posted April 4, 2017 I rarely do someone elses playgrounds, but am thinking about strand / line based hair. Highlights definitely work with lines Wish it was more obvious how to control via width / amount of alpha. If lines thicker that 1 pixel could be made using stencil, that could reduce the number of strands by maybe a factor of 2x. 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.