Im trying some LOD techniques. One of the techniques requires the existence of multiple 3d models for the same object. But to know how many models are required i need to know a few things.One is to able to calculate the size of a pixel in the view plane. Lets say that field of view is 45 degress, the plane distance is 1000 meters and the screen resolution is 800x600 pixels. How do i know the size of the pixel in meters ?

Another technique requires replacing an individual object by a flat image. What variables do i have to look at to know when to replace a 3d object with a flat image representation ?

Another technique is to palce a group of objects in something like a "system". This technique is the only one im considering for deleting and adding objects to a scene dynamically. Lets say i have a set of objetcs for a group of birds. When this group of birds is seen faraway the system contains less objects. As anyone done anything similar to this ?

One is to able to calculate the size of a pixel in the view plane. Lets say that field of view is 45 degress, the plane distance is 1000 meters and the screen resolution is 800x600 pixels. How do i know the size of the pixel in meters ?

Trigonometry. Field of view is 45 degrees = 800 pixels. Half the screen is 22.5 degrees = 400 pixels. By trig, 1000 tan 22.5 = 414.21 metres, which we know is 400 pixels, so each pixel is 1.04 metres in width. If your aspect ratio is correct, the height will be the same.

Another technique requires replacing an individual object by a flat image. What variables do i have to look at to know when to replace a 3d object with a flat image representation ?

When to replace it? Depends on the application, surely? Just pick a distance that seems "reasonable" in your coordinate system and try it. If it looks too close, push it back. If you don't notice it, pull it forward until you do, then push it back a little.

Trigonometry. Field of view is 45 degrees = 800 pixels. Half the screen is 22.5 degrees = 400 pixels. By trig, 1000 tan 22.5 = 414.21 metres, which we know is 400 pixels, so each pixel is 1.04 metres in width. If your aspect ratio is correct, the height will be the same.

I think your solution works. I realize now that i needed some more information to extimate the LOD geometry to use.

The problem is how to compute the distance in pixels between two points (wherever they are) when projected in the view plane. Suposing the info related to fov and the view plane distance is the same as in post above. How can we solve this ?

Im thinking in calculating the he distances between two extreme points in the bounding box of an object. Then based on the distance between the two in pixels i would choose what LOD geometry to use.

For instance if an object is going to be projected in a rectangular region of 10x10 pixels on the screen i would probably choose a LOD geometry with at most 10 vertices wide and 10 vertices equaly distributed.

Or i would use a flat image. Which probably would be a much better solution if the object is far enough and considering it is only 10x10 pixels. Just what are the known problems on using flats to replace geometry ?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org