Jump to content

Three.js in TypeScript on Playground


8Observer8
 Share

Recommended Posts

I made very simple example (just rewrite Getting Started Example) in TypeScript and Three.js without Angular.

This example shows:

  • How to compile TS files to AMD modules and load them with Require.js
  • How to  place your examples in Playground (https://plnkr.co/edit/)
  • And how to use OrbitControl with TS on Playground (It does not work now but I will solve it soon)

Check: https://plnkr.co/edit/yICv96E7lTK8xu7DohJB?p=preview

OrbitControl with TS works locally:
https://github.com/8Observer8/usage-orbitcontrols-in-typescript-on-playground
But it does not want to work on Playground.

P.S. I will be very glad if someone help me and explain me why OrbitControl works locally but does not work on Playground.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...