Skip to content

Will Troika 2D use WebGL? #205

Answered by lojjic
johncardiologs asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, thanks for writing. The troika-2d package definitely won't be the right tool, it's specifically a Canvas2D wrapper. But there's no reason you can't use troika-3d with an orthographic camera to render 2D content, in fact most of its original use cases were exactly that: 2D dataviz that needed to be WebGL accelerated.

So if it were me I'd just go straight to "3D". You could use troika-3d, though honestly nowadays I'd recommend you take a look at react-three-fiber instead, it's generally easier to grasp and has a much larger community, and is more actively developed. That, like Troika, will also require you to learn Three.js and work with 3D objects on a primitive level, so if you wanted…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johncardiologs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants