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

Fix for #2813 (scene.drillPick breaks scene.pickPosition) #2829

Closed
wants to merge 1 commit into from

Conversation

hpinkos
Copy link
Contributor

@hpinkos hpinkos commented Jun 23, 2015

Fixes #2813

I don't know if this is the best solution, but I decided to take a guess.

Essentially, drillPick was setting the show property of primitives to false, then calling pick, which executes some commands to update the frame state. But when drillPick sets the show property back to true, it doesn't do that same update. So if pickPosition is called during the same frame, it thinks the primitives are still hidden.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jun 23, 2015

This adds a very expensive operation. I suspect it is overkill. @bagnell please advise.

@bagnell
Copy link
Contributor

bagnell commented Jul 1, 2015

The depth buffer should only be copied during the render pass. I added a fix in #2862. Closing.

@bagnell bagnell closed this Jul 1, 2015
@hpinkos hpinkos deleted the issue2813 branch July 7, 2015 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants