Skip to content
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

Debug primitive drawing API #1875

Closed
wants to merge 3 commits into from
Closed

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Feb 14, 2020

Added public DebugDraw interface for rendering of debug primitives with duration, depth test, layer controls.

Fixes #1852

…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
@mvaligursky mvaligursky requested a review from a team February 14, 2020 10:56
@willeastcott willeastcott changed the title Added public DebugDraw interface for rendering of debug primitives with duration, depth test, layer controls. (#1852) Debug primitive drawing API Feb 14, 2020
var i;
for (i = 0; i < lines.length; i++) {
if (lines[i].isAlive) {
pc.app._addLines(lines[i].points, lines[i].colors, lines[i].options);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

App doesn't have an _allLines function... what am I missing?!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's in immediate.js

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eeeeuw immediate assigns to Application.prototype! (mindblownemoji)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this could definitely do with being tidied up. I don't think it's necessary for this PR to address this problem though. But @mvaligursky, maybe add an issue to refactor this part of the engine?

@willeastcott willeastcott added the area: graphics Graphics related issue label Apr 15, 2020
@mvaligursky mvaligursky marked this pull request as draft August 27, 2020 17:14
@mvaligursky mvaligursky deleted the mvaligursky-debugdraw1 branch September 13, 2021 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Application.renderLine(s) with duration
3 participants