Depth passed to onmousedown is always -Infinity
Open
Nobody has claimed this yet.
auto-migrated
Priority-Medium
Type-Defect
- Dominant language
- HTML
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
What steps will reproduce the problem?
viewer.onmousedown = function(x, y, button, depth, mesh) {
if (button == 0/* left button down */&& mesh != null) {
console.log("POKE: " + x + "," + y + "," + depth);
}
};
What is the expected output? What do you see instead?
Some sort of value for the z-index. -Infinity
What version of the product are you using? On what operating system?
1.6.5
The model I'm using is a wavefront .obj file if that is of any help.
Original issue reported on code.google.com by ryan.s...@gmail.com on 8 Dec 2014 at 4:48
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the viewer.onmousedown callback path and reproduce the report using the supplied handler and a Wavefront .obj model on version 1.6.5. Trace how depth is calculated and passed to the callback; done means the callback receives a finite depth value instead of -Infinity.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100