Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meaning of the parameters of LOD #19

Closed
nakijun opened this issue Jul 9, 2024 · 1 comment
Closed

meaning of the parameters of LOD #19

nakijun opened this issue Jul 9, 2024 · 1 comment

Comments

@nakijun
Copy link

nakijun commented Jul 9, 2024

Hello,

i saw the lines bellow in LevelOfDetial.java

public enum LevelOfDetail {
NONE(-1,0, 0, 1.0f, new float[]{1.0f, 1.0f, 1.0f}),
LOD0(0,0,0, 1.0f, new float[]{1.0f, 0.4f, 0.4f}),
LOD1(1, 2, 8, 0.5f, new float[]{0.4f, 1.0f, 0.4f}),
LOD2(2, 4, 50, 0.25f, new float[]{0.4f, 0.4f, 1.0f}),
LOD3(3, 8, 120, 0.125f, new float[]{1.0f, 1.0f, 0.4f}),
LOD4(4, 16, 180, 0.0625f, new float[]{0.4f, 1.0f, 1.0f}),
LOD5(5, 32, 240, 0.03125f, new float[]{1.0f, 0.4f, 1.0f}),
LOD6(6, 64, 300, 0.01625f, new float[]{1.0f, 1.0f, 1.0f});

for example, LOD6(6, 64, 300, 0.01625f, new float[]{1.0f, 1.0f, 1.0f})
would you tell me about the meaning of each parameter?
and more, if I add the value above LOD6 , is it meaningful doing?

thank you.

@znkim
Copy link
Contributor

znkim commented Jul 9, 2024

Hi @nakijun

Enumeration refers to the level of detail of a 3D model.
Level 0 is the most detailed and the higher levels are simpler.
The Geometric Error in a Level affects whether or not the model is visible from the camera's perspective in the scene.

We are specifying GeometricError based on the size of the original model, so dividing by more than LOD4 is not particularly meaningful in most situations.

The code below is a constant that is matched with each parameter.

    final int level;
    final int geometricError;
    final int geometricErrorBlock;
    final float textureScale;
    final float[] debugColor;

level : means the LOD level
geometricError : maximum value of GeomtricError for filtering 3d models in tiles
geometricErrorBlock : a more loosely applied GeometricError filter value
textureScale : Texture scale of 3D data based on LOD
debugColor : High-contrast debugging color for testing models generated based on LOD

Thank you.

@nakijun nakijun closed this as completed Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants