60K+ 360上有精灵吗?
只是想知道 - 在我的脑海中抛出想法 - 关于为 360 启动一个新的 XNA 项目。我希望它是复古的老派,并模拟扫描线和调色板等。
作为这个想法的一部分,我理想的做法是手动绘制屏幕的每个像素。因此,最坏的情况是我必须在 252x240 分辨率上绘制大约 60K 精灵(我认为这是正确的)。屏幕上一次显示 60K 个精灵。
那么,在我尝试编写此代码之前 - XBOX 360 是否能够跟上这个速度?这是很多精灵,但它们不是大精灵,并且所需的纹理数据也不存在。然而,我猜这个项目的实施方式会成功或失败,但我所想的只是提出一个 2D 数组并映射此时需要绘制的颜色值。
当然,现在这只是淡化的说法。但你们都建议什么?
编辑:每个精灵代表一个像素。例如,0,0 处的精灵。另一个在 0,1。 ETC。
Just wondering - throwing ideas in my head - about starting a new XNA project for the 360. I would like it to be retro-old school, and emulating scanlines and color palettes and such.
As part of this idea, what I would ideally like to do is manually draw each and every pixel of the screen. So, worst-case scenario I would have to draw about 60K sprites on a 252x240 resolution (I think thats correct). 60K sprites on the screen at a time.
So, before I even attempt to code this - would the XBOX 360 be able to keep up with this even? That is a lot of sprites, but they aren't big sprites, and the texture data needed would be non-existant. However, I guess how this project would be implemented would make it or break it, but all I was thinking was coming up with a 2D array and mapping which color value would need to be drawn at that point.
Of course, this is watered down talk right now. But what you all suggest?
EDIT: Each sprite would represent one pixel. E.g., a sprite at 0,0. Another at 0,1. etc.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议您绘制原始正方形并为它们提供所需的颜色,而不是使用 60K 精灵(这不太可能起作用)。
它实际上是 3D 编程的一部分,但您完全放弃 Z 轴并指定正交相机。
事实上,正方形是两个三角形的简单组合。我并不是说解决方案既快速又简单,但我认为这是您应该开始研究的地方。
60K 精灵并不是一个好主意。
Instead of using 60K sprites, which is unlikely going to work, I suggest you draw primitive squares and give them the colors you need.
It's actually a part of 3D programming, but you drop the Z axis altogether and specify an orthogonal camera.
As a matter of fact, a square is a simple combination of two triangles. I'm not saying the solution is quick and easy, but I think this is where you should start your research.
60K sprites is not a good idea.