Position mesh in screen coordinates

Blitz3D Forums/Blitz3D Programming/Position mesh in screen coordinates

eos(Posted 2003) [#1]
Hi. We have a mesh and we want to put it all the time in the left-botton corner. We want to know how to calculate the x, y, z of the mesh when we use diferent graphic resolution(800x600, 1024x768, etc). How many pixels are there in one unit of space coordinate(PositionEntity(ent,1,1,1)).

Thanks a lot. EOS.


Floyd(Posted 2003) [#2]
The 3d world has its own coordinate system.

You can set resolution to 640x480, 800x600, 1024x768 etc.
and it will have no effect on where entities appear on screen.


ghislain(Posted 2003) [#3]
In the code archives there is a program called 'sprite control'. It is intended to place sprites using 2d (screen) coordinates. But because it creates quad-meshes you can actually use it to resize/place any mesh with it.


eos(Posted 2003) [#4]
Thanks a lot Floyd and Ghislain