-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application.renderLine(s) with duration #1852
Comments
@mvaligursky has been working on something like this |
Seems like convenient request, but leads to very specific use case. |
That project is private. |
For sure, very easy to add and we have done so for almost every project, to the point where we should probably make it part of our template. But it's such useful functionality for debugging (the primary use case for From my experience it seems pretty standard for a "render/draw lines" function to have an optional duration, is there a particular reason for not adding it, apart from extra complexity in |
…th duration, depth test, layer controls. (#1852) - new DebugDraw with advanced debug primitive rendering - added static constant colors in Color class - improved low level line rendering to handle depth testing better - DebugDraw engine example
Most of the times I use
pc.app.renderLine
orpc.app.renderLines
for debug purposes I find the lack of a duration option frustrating. I'm rarely in a position where I can call it every frame without recording it somewhere and adding therenderLine
call in some script's update, which is not great.I think both functions would benefit greatly from adding a
duration
option to theoptions
parameter, where the application would draw the line(s) until the duration had elapsed.The text was updated successfully, but these errors were encountered: