TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Creating a DOOM-inspired aesthetic with PlayCanvas

80 点作者 OmarShehata将近 4 年前

4 条评论

greggman3将近 4 年前
That raw PNG data doesn&#x27;t make it into a canvas via the canvas 2D API is not a bug, as pointed out in the responses in the bug report. It&#x27;s the way the 2D canvas API has always been.<p>WebGL on the other hand, has the option to tell the browser not to apply colorspace info or whatever other tweaks the browser would usually to do the data so if you want to read a PNG raw you can load it as a texture, attach it to a framebuffer, and call readPixels and get the raw data. You don&#x27;t need to decode PNGs in JS although that&#x27;s certainly a viable solution.
评论 #28026260 未加载
publicola1990将近 4 年前
Perhaps the article could do with a better intro, explaining what PlayCanvas is, for example.
评论 #28023669 未加载
westoncb将近 4 年前
This is a nice, inventive high-level explanation. Linking scroll position in the article to showcase various features in a live version of the renderer was a great idea.<p>Also, for those unfamiliar with PlayCanvas: it&#x27;s an open source javascript game engine that is kinda like halfway between something like three.js and e.g. Unity—pretty lightweight, but still comes with a nice scene editor etc.
the__alchemist将近 4 年前
This is weird. Each item described feels not like something useful or original, but part of a workaround for this specific engine used.