What dimensions should you use for a perspective projection frustum?

What dimensions should you use for a perspective projection frustum? Initially I created a perspective matrix based on the width and height of the screen, with a calculated zNear value based on a 45degree FOV. // OpenGL example // For height of 800, zNear is calculated to be ~965. zNear = (height / 2.0f) / … Read more

Import a 3D animation into an android game

I want to import a skinned and animated character model built with bender into an android game. The animations can be: idle, walk, run …etc I’ve seen a related question but it’s only about importing a static model: https://stackoverflow.com/questions/204363/is-there-a-way-to-import-a-3d-model-into-android But I don’t see how to import a set of animation with tweened frames. Any ideas, … Read more

Lasers in 3D space game

I am creating this little 3d space shooter and am somewhat unsure on how to implement the laser beams. I’m thinking about something along Star Wars and the like where mostly you shoot rather short laser beams but very many of those. Should I create a “tube” for each of the beams, render them via … Read more

How to find the bottleneck of the graphical pipeline

I’ve been wondering about this issue for a while. How to find the bottleneck of the graphical pipeline. Recently I’ve been using a program to draw massive amount of polygons in a simple scene with alpha blending (AKA grass scene). I’ve used two programs, one uses static coordinates and another uses rotation and translation. Both … Read more

Drawing a textured triangle with CPU instead of GPU

I understand the benefits of GPU rendering and such, but for a certain limited application I need to render textured triangles purely using CPU. I’ve built a 3D engine capable of object handling, transform, projection, culling and the likes … now all I need is a little code snippet that draws a single textured triangle … Read more