Can wireframe mode show quads instead of triangles?

Hi~All, Can wireframe mode show quads instead of triangles? Like pressed alt+j in Blender’s edit mode

pg: https://www.babylonjs-playground.com/#QCU8DJ#22

Hello! :smiley:

Modern real time graphics APIs, such as OpenGL, don’t really have the notion of a “quad”, because triangles are much more efficient to process and render. When Blender and other modelers show “quads”, these are actually still being rendered as triangles, the quads are just an abstraction to help the modeling process. So, in short, Babylon doesn’t have this capability, as it isn’t very important for the engine.

1 Like

I was just reading several long posts about this yesterday, i think originating on the webgpu issues page, and lead me to who knows where, including gltf vs usd, etc. My impressions were that many many people want to use model formats with quads to ensure lossless interchange between tools.

1 Like

Fortunately, It isn’t very important for me too. :grin:
In fact, I just need a similar effect, If anyone wants to know. I choose to use the gridMaterial directly.
It’s good enough, even if it doesn’t show the structure well.

1 Like

Update: I learned a shader code from here

pg: https://playground.babylonjs.com/#E9PXGU

2 Likes

This looks super cool! :smiley:

1 Like