Forum Replies Created
-
AuthorPosts
-
2019-04-01 at 3:05 pm in reply to: How to use PointerLock correctly for a first-person camera #13450webglCustomer
Good, thanks:
container.addEventListener("mousemove", onMouseMove, false); function onMouseMove(event) { var movementX = event.movementX || event.mozMovementX || event.webkitMovementX || 0; var movementY = event.movementY || event.mozMovementY || event.webkitMovementY || 0; app.camera.rotateX(-movementY/1000) app.camera.rotateY(-movementX/1000) }
webglCustomerКрасиво, но можно было у астероида текстуру поинтересней сделать;).
Обновил текстуру :)
webglCustomerStars position I got from HYG-data.csv http://www.astronexus.com/hyg
I wanted to create a real stellar environment, but I’m tired of struggling with my meager programming knowledge.
I also made a simple sound effect to create an atmosphere of anxiety. This asteroid with a relatively high probability (1/4000) can hit the earth. I made the sound in an interesting cross-platform application – sunvox.
I did not understand the Points generation well, perhaps because of the bad code the scene requires more resources than I would like. So for mobile I probably will remove a variety of colors and sizes of stars to the application smoothly worked on mobile including VR mode.
webglCustomerThanks. It was a difficult challenge for me. I set a goal to make all stages of 3D Configurator creation (without backend development): 3d scene creation, Front-end and application logic development, laconic UI. I hope I succeeded.
webglCustomerHi
It’s easy for me. But you have to do a term of reference. -
AuthorPosts