How to make draw 3D line go through transparent node

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

How to make draw 3D line go through transparent node

Post by robmar »

My node uses a custom transparent shader, but the draw 3D line function is clipping the line at the node, rather than drawing through/over it.
Any ideas how to best control this?
CuteAlien
Admin
Posts: 9644
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: How to make draw 3D line go through transparent node

Post by CuteAlien »

It sounds like you have zwriting enabled for the transparent shader. What's the base material of your custom shader? It should be disabled if you use a transparent material as base for the shader. Any material with TRANSPARENT or BLEND in it should work I think (at least in svn trunk, there's been a few changes since 1.8... though that part is likely the same there).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
robmar
Posts: 1125
Joined: Sun Aug 14, 2011 11:30 pm

Re: How to make draw 3D line go through transparent node

Post by robmar »

Thanks, yes, that was it, thought I had that disabled :oops: :roll:
Post Reply