Two.js: Interactive Support only for SVG Renderer?

Created on 18 Aug 2018  路  4Comments  路  Source: jonobr1/two.js

I am sorry if the question is trivial. In the docs, I only see one example featuring mouse event response through svg element. Does two.js only have interactive support for svg renderer? Thanks!

enhancement

Most helpful comment

I described in issue #209 a two.js hit test demo I wrote some time ago (it can be tested here).

It takes advantage of rbush for efficiency and is renderer agnostic. HTH.

All 4 comments

That is correct. There isn't hit-test logic built into Two.js yet. So, at the moment the only manner I'd through SVG.

This ticket will serve as a good thread to start tracking features on hit test logic.

I described in issue #209 a two.js hit test demo I wrote some time ago (it can be tested here).

It takes advantage of rbush for efficiency and is renderer agnostic. HTH.

Thanks for sharing. That's a great point of reference and looks like it could be a good avenue to implement not just hit testing but frustum culling as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Muini picture Muini  路  7Comments

trusktr picture trusktr  路  8Comments

Neglexis picture Neglexis  路  7Comments

adamdburton picture adamdburton  路  6Comments

iandanforth picture iandanforth  路  6Comments