Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / 3d units to pixels

Author
Message
Wolfdog
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location:
Posted: 11th Dec 2002 06:05
Is there a way to calculate how many pixels are in a 3d unit.If you look at an object from far away and move it one unit it moves 1-2 pixels but when upclose it moves 30-40. Im wondering is there any way to figureout how much it will move.
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 13th Dec 2002 18:55
Not really, there is no direct comparison as it depends on so many factors - the resolution, how the textures are mapped, what the Camera field of view is.

Basically 3D does not work like that and you will need to try and get notions of 2D pixels out of your head and 3D coordinates in!

For instance, if you used a 256x256 pixel texture to texture a square and you made the square 256x256 3D units in size then you could be (fairly) sure that 1 unit = 1 pixel on the square, but not on the screen as that depends on where the square is in relation to the screen and the screens resolution and the cameras Field of View.

Does that help at all?
Wolfdog
21
Years of Service
User Offline
Joined: 9th Dec 2002
Location:
Posted: 14th Dec 2002 02:26
Ya i think im just going to have to find another way to do it.

Login to post a reply

Server time is: 2024-05-02 03:27:08
Your offset time is: 2024-05-02 03:27:08