{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/13807","repository_url":"https://api.github.com/repos/mrdoob/three.js","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/13807/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/13807/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/13807/events","html_url":"https://github.com/mrdoob/three.js/issues/13807","id":312474909,"number":13807,"title":"Technology Overhaul","user":{"login":"Usnul","id":5939063,"avatar_url":"https://avatars0.githubusercontent.com/u/5939063?v=4","gravatar_id":"","url":"https://api.github.com/users/Usnul","html_url":"https://github.com/Usnul","followers_url":"https://api.github.com/users/Usnul/followers","following_url":"https://api.github.com/users/Usnul/following{/other_user}","gists_url":"https://api.github.com/users/Usnul/gists{/gist_id}","starred_url":"https://api.github.com/users/Usnul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Usnul/subscriptions","organizations_url":"https://api.github.com/users/Usnul/orgs","repos_url":"https://api.github.com/users/Usnul/repos","events_url":"https://api.github.com/users/Usnul/events{/privacy}","received_events_url":"https://api.github.com/users/Usnul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2018-04-09T10:21:33Z","updated_at":"2018-04-20T23:08:59Z","closed_at":"2018-04-20T20:47:09Z","author_association":"CONTRIBUTOR","body":"I have been following three.js for many years now, as well as using it in my own projects. I have watched it develop into the amazing library and community surrounding it that it is today. There are many amazing things in three.js, but overall, as far as state of the art for real-time rendering engines goes - three.js has remained relatively stagnant for about 4 years now. Therefore, i would like to list some of the features i'd like to see in three.js in the future, and the reasons I believe them to be necessary for continued success of this library.\r\n\r\n# Deferred rendering\r\nForward rendering doesn't fit well with most advanced use cases, and when it does - it lacks performance. I want to see a Deferred, Tiled renderer as the main renderer in three.js, not something relegated to /examples folder. \r\n### Motivation\r\nAny kind of post processing you want to have today requires you to build part of the pipeline, depth buffer, normals and colour also. This results in duplicated effort for the hardware in most cases resulting in sub-optimal performance. \r\nIf you wish to have any kind of sub-system which relies on a G-buffer, such as G-buffer based decal system which writes into colour+normal buffers - you require what three.js doesn't have.  \r\n\r\n# Better Shadows.\r\nMore specifically, i want to see a better shadow-mapping implementation than PCF. Such as Variance shadowmaps. Second, i wish to see a cascading shadowmaps. They were once at the core of thee.js, but fell victim to bitrot and lack of support.\r\n### Motivation\r\nCurrently shadows require a fair amount of artistry just to make them look okay. If we had a better shadowmap algorithm - a lot of existing problems with acne and filtering would go away. If we had a cascading shadowmap implementation - it would remove the need for artistry currently required to set up shadow camera for each shadow-casting light in the scene.\r\n\r\n# Spatial Index\r\nSpatial index is necessary when dealing with large scenes, such large scenes are very common in games for example. \r\n### Motivation\r\nIf you want to do a raycast into the scene - currently you are stuck with a linear search, which is dominated by number of objects and polygons. A spatial index would enable a lot of internal optimizations, such as faster occlusion culling and sorting.\r\n\r\n# Occlusion culling\r\nGood occlusion culling is required for good performance. Point above would help here. There are a lot of techniques that can be utilized further here.\r\n\r\n# Optimizations to animation engine\r\nCurrently animation engine chokes on some 500 bones being animated simultaneously, resulting in a very high CPU usage. \r\n### Motivation\r\nIt is not uncommon to see 3-5 characters at the same time with 500+ bones each in modern games, with current CPU demand such fidelity is not achievable, instead you have to compromise to about 15 bones per character in order to achieve decent performance.\r\n\r\n# Compressed Textures\r\nCompressed textures as a first-class citizen, along with tools for on-line compression\r\n### Motivation\r\nCompressed textures offer a great amount of extra detail requiring only a little space, for applications with large textures and/or large number of textures, this draws a line between interactive frame-rate and a slide-show, this point becomes more relevant for lower-end GPUs, as they tend to have less RAM, being able to draw 2024 compressed textures instead of 512 uncompressed ones is a extremely important, as they take up potentially the same amount of GPU RAM. Compressed textures take less time to load and put less stress on browser, since decompression is not done by default (unlike PNG).\r\n\r\n# Competent Particle Engine (nice to have)\r\nParticles are the magic stuff of the real-time visualization. As such, i believe it is necessary for a comprehensive real-time visualization to have a good particle engine. Simulation aspect can be kept rudimentary, have a way to plug in simulation logic, but handle things like sorting particles in view-space according to depth, and offer solution for tracking lifecycle of a particle, such as spawning/dying. Things like self-shadowing could be amazing to have also."},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/383244501","html_url":"https://github.com/mrdoob/three.js/issues/13807#issuecomment-383244501","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/13807","id":383244501,"user":{"login":"donmccurdy","id":1848368,"avatar_url":"https://avatars3.githubusercontent.com/u/1848368?v=4","gravatar_id":"","url":"https://api.github.com/users/donmccurdy","html_url":"https://github.com/donmccurdy","followers_url":"https://api.github.com/users/donmccurdy/followers","following_url":"https://api.github.com/users/donmccurdy/following{/other_user}","gists_url":"https://api.github.com/users/donmccurdy/gists{/gist_id}","starred_url":"https://api.github.com/users/donmccurdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donmccurdy/subscriptions","organizations_url":"https://api.github.com/users/donmccurdy/orgs","repos_url":"https://api.github.com/users/donmccurdy/repos","events_url":"https://api.github.com/users/donmccurdy/events{/privacy}","received_events_url":"https://api.github.com/users/donmccurdy/received_events","type":"User","site_admin":false},"created_at":"2018-04-20T23:08:59Z","updated_at":"2018-04-20T23:08:59Z","author_association":"COLLABORATOR","body":"Thanks for starting the individual issues! 🙂"}}
{"actor":{"display_login":"donmccurdy"}}