-
BackgroundThere is a web app of https://threejs.org/editor/ with its source code as part of three.js repository: https://github.com/mrdoob/three.js/tree/master/editor I'm trying to use the above with Lorca to create a desktop app version of the web app. First approachAs sugggested here, I use the Lorca counter example as a base. I copy the counter example in this location:
Then I clone the three.js at this location:
The three.js editor would be at:
Now, I change the Lorca counter example source code like this, note that ln, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
log.Fatal(err)
}
defer ln.Close()
go http.Serve(ln, http.FileServer(http.Dir("/home/m3/repos/three.js/editor")))
ui.Load(fmt.Sprintf("http://%s", ln.Addr())) The commit diff would be: But I get these Second approachI keep a copy of Lorca counter example here:
Then, I copy the whole three.js source code over here:
So, the web app source code would be at:
Now, I change the Lorca counter example source code like this, not that ln, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {
log.Fatal(err)
}
defer ln.Close()
go http.Serve(ln, http.FileServer(http.Dir("three.js/editor")))
ui.Load(fmt.Sprintf("http://%s", ln.Addr())) Now I'm getting some Possible problemPossibly, the problem is that the web app inside |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Keeping a copy of Lorca counter example here:
Also, keeping the whole three.js source code at:
So, the web app source code would be at:
Now, the problem is resolved by such a commit: Now ThreeJS editor runs fine by Lorca: |
Beta Was this translation helpful? Give feedback.
Keeping a copy of Lorca counter example here:
Also, keeping the whole three.js source code at:
So, the web app source code would be at:
Now, the problem is resolved by such a commit:
Now ThreeJS editor runs fine by Lorca: