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 render the quadrilateral? #149

Open
SunnyXJ opened this issue Feb 21, 2023 · 10 comments
Open

How to render the quadrilateral? #149

SunnyXJ opened this issue Feb 21, 2023 · 10 comments

Comments

@SunnyXJ
Copy link

SunnyXJ commented Feb 21, 2023

Hello, I want to render the quadrilateral, but there is no feasible method. Can anyone give me some suggestions?

@ponchio
Copy link
Contributor

ponchio commented Feb 21, 2023

Hi,
just open the model in Meshlab and use the filter Turn into a pure triangular mesh.
(you could do the same thing using blender).

Motivation:
Multiresolution requires a fast, robust simplification algorithm; we opted for quadric based edge collapse, which wont
work on quad meshes. Quad meshes are not usually big enough to warrant use of a multiresolution approach,
so we didn't bother to implement a pipeline just for quads.
Moreover, when you render a quad, the graphic card just splits the quad into 2 triangles anyway.

@SunnyXJ
Copy link
Author

SunnyXJ commented Feb 22, 2023

Thanks ponchio,
I think my statement may not be clear enough, I need to display quadrilaterals or triangles, or a mixture of both, depending on the actual document. I need to see the actual gridlines, not just display objects.

@ponchio
Copy link
Contributor

ponchio commented Feb 22, 2023

Hi,
I am afraid nexus is the wrong tool.
This library is designed for large datasets where the individual triangles are very small (a few pixels).

If your dataset is small, nexus is definitely not the right tool.

If your dataset is big and created using a CAD, the major obstacle is the simplification algorithm.
In theory it would be possible to adapt nexus to quads/mixed provided an open source simplification algorithm exists, 
with some modifications to the code and some shaders in ThreeJS.
I would need to have a look at the models to get an Idea of how suitable your use case is.

@SunnyXJ
Copy link
Author

SunnyXJ commented Feb 23, 2023 via email

@ponchio
Copy link
Contributor

ponchio commented Feb 27, 2023 via email

@SunnyXJ
Copy link
Author

SunnyXJ commented Feb 28, 2023

ponchio@gmail.com,I sent to. Is this yours.

@ponchio
Copy link
Contributor

ponchio commented Mar 1, 2023

I got no email from you to ponchio@gmail.com, could you send it again?

@SunnyXJ
Copy link
Author

SunnyXJ commented Mar 2, 2023

yes, I sended it again.

@ponchio
Copy link
Contributor

ponchio commented Mar 2, 2023

I had a look at the model and nexus is really a bad fit for such a model: I do not know any simplification algorithm that could do a decent job on such a model (mixed triangle and quads, cad model, nasty spirals!).

Wireframe on mixed content is hard already on the web, without the multiresolution stuff, implementing it in nexus would be a nightmare...

I think you should work more on splitting the dataset in object and apply LOD techniques.

@SunnyXJ
Copy link
Author

SunnyXJ commented Mar 6, 2023

thanks, I need more try.

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