使用正交投影和拉伸模型开发2D 3D

时间:2022-11-23 12:16:50

I was wondering if there is any benefit to using an orthographic projection camera, to make a 2D game with 3D models (as opposed to making sprites and using 2D).

我想知道使用正交投影相机是否有任何好处,用3D模型制作2D游戏(而不是制作精灵和使用2D)。

Also, on a related note when I use orthographic projection, my 3d-model is stretched. Does anyone know why this is happening? I know that aspect ratio only influences the perspective projection, so this should not be happening.

此外,在我使用正交投影的相关说明中,我的3D模型被拉伸。有谁知道为什么会这样?我知道宽高比只影响透视投影,因此不应该发生这种情况。

2 个解决方案

#1


If you developing a 2D game, using 3D models would be a lot of pointless overhead - both for you as the developer and for the system running the game. Even if you have fancy 3D models and are not very good at drawing sprites you could still use a 3D modeling tool to project the models to images.

如果您开发2D游戏,使用3D模型将是一个无意义的开销 - 无论是作为开发人员还是运行游戏的系统。即使您拥有精美的3D模型并且不太擅长绘制精灵,您仍然可以使用3D建模工具将模型投影到图像。

#2


If you are making a 2d game, ortho with 3d models might be better, because you can take advantage of hardware acceleration with OpenGL and Direct3D. However, sprites are much easier to make than 3d models.

如果您正在进行2D游戏,那么使用3D模型的ortho可能会更好,因为您可以利用OpenGL和Direct3D的硬件加速。但是,精灵比3d模型更容易制作。

#1


If you developing a 2D game, using 3D models would be a lot of pointless overhead - both for you as the developer and for the system running the game. Even if you have fancy 3D models and are not very good at drawing sprites you could still use a 3D modeling tool to project the models to images.

如果您开发2D游戏,使用3D模型将是一个无意义的开销 - 无论是作为开发人员还是运行游戏的系统。即使您拥有精美的3D模型并且不太擅长绘制精灵,您仍然可以使用3D建模工具将模型投影到图像。

#2


If you are making a 2d game, ortho with 3d models might be better, because you can take advantage of hardware acceleration with OpenGL and Direct3D. However, sprites are much easier to make than 3d models.

如果您正在进行2D游戏,那么使用3D模型的ortho可能会更好,因为您可以利用OpenGL和Direct3D的硬件加速。但是,精灵比3d模型更容易制作。