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

How to preserve / depict depth-information #101

Open
MartinPyka opened this issue Feb 21, 2024 · 1 comment
Open

How to preserve / depict depth-information #101

MartinPyka opened this issue Feb 21, 2024 · 1 comment

Comments

@MartinPyka
Copy link

With a couple of modifications in DxfViewer (#99) I got perspective rendering and 3d rotation working. Now I am wondering where the depth information are omitted in the parsing process.

When I look at line.js and ParseHelper.js I get the impression that everything should work just fine. I cannot really figure out where exactly the information get lost. Can you give me an advice?

@vagran
Copy link
Owner

vagran commented Feb 21, 2024

For example, 3DFace vertices, x/y stored only:

const v0 = new Vector2(vertices[0].x, vertices[0].y)

Vertices accumulation:

const idx = this.vertices.Push(v.x)

Also see all 2D transforms in this file.

Shader code assumes 2D coordinates and transforms in buffers:

const fullInstanceAttr = instanceType === InstanceType.FULL ?

@MartinPyka MartinPyka changed the title How to preserver / depict depth-information How to preserve / depict depth-information Feb 21, 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