You are an expert at JavaScript. Please help me write a simulation of a star field…
Jump to turn (13)
- 1You are an expert at JavaScript. Please help me write a simulation of a star fie
- 2uncaught TypeError: starfield.geometry.translateZ is not a function
- 3that's close, but there's cross-shaped blank space in the middle of the canvas.
- 4thats a bit better, but the animation ends after only a few seconds and is movin
- 5go on
- 6hmm that's not quite it either. the stars are "popping" in and out of existence
- 7That's still not quite it. The animation should start very slowly and get expone
- 8how can I change the camera position with mouse movement
- 9nevermind about that. The animation function is still a little bit off. Instead
- 10the stars don't have transparent backgrounds and look like boxy rectangles up cl
- 11let's go back to a simpler animation function. The current one is causing interm
- 12ok, that's getting closer but the stars are moving away from the camera instead
- 13ok, this is great. one last thing, can you make the stars a little bit smaller a
- User
You are an expert at JavaScript. Please help me write a simulation of a star field accelerating to the speed of light (like in Star Wars) using canvas and webGL.
- Assistant