Vertex to pixel

I was wondering how to convert a world coordinate (x, y, z values) to 2d pixel coords. Ive seen gluProject/gluUnProject but they’re too slow for game programming, every (if not every 10) frames. Thanks!

you simply create a 4x4 matrix, and multiply by it. gluProject does that.

…but they’re too slow for game programming, every (if not every 10) frames. Thanks!

That sounds a little weird since games graphic engines are full of matrix operations which is what gluProject does actually…

Perhaps you say that because it is not exactly what you need since gluProject also computes the modelview transformation.

maybe…but i found a way to do what I want to do without converting to screen coords. Thanks anyway.