Hi guys,
I’m currently using renderLine to draw some debug display, but when I’m using multiple viewports, it seems to be rendered only to the last viewport. Is there a way to change this behavior?
Thanks
Eric
Hi guys,
I’m currently using renderLine to draw some debug display, but when I’m using multiple viewports, it seems to be rendered only to the last viewport. Is there a way to change this behavior?
Thanks
Eric
Hey. Currently it is a limitation indeed. They are meant for debugging only. There is a github ticket for this: https://github.com/playcanvas/engine/issues/720
Hi Max!
Thanks I guess in the meantime I will use triangles, a thicker line would have been appreciated anyway
Eric
Regarding thicker lines, you probably want to implement own line rendering, and for rendering lines in actual game especially.
renderLine uses GL line thing, with immediate rendering array, which will lead of more arrays and buffers being created/thrown away, for simplicity during debugging.
But thickness for this line is dictated by support of hardware and drivers, and that unfortunately is bad: http://webglstats.com/webgl/parameter/ALIASED_LINE_WIDTH_RANGE for example only 24% of devices support 8 pixels line weight. So in production this is not viable.
Thanks! That’s why I was considering: https://mattdesl.svbtle.com/drawing-lines-is-hard
Anyway, I’m probably not releasing my demo, I just need it to work long enough to record videos for my presentation next Tuesday
Where you will be presenting, and what is the demo you making as part of it?
GDC, I have a talk about NPC sensors. I just built these simple scenes to demonstrate visually some concepts I’m trying to explain
Awesome! And thanks to Will my presentation looks much nicer in reveal than it did in powerpoint
I have received an invite to visit a stand in GDC too but CA is a bit too far from Italy to attend, i would love to see that at last once in my life so enjoy GDC for me as well…will be there in soul …wish u best luck at GDC @emartelAI