How to render a geometry in wireframe on chrome

45 views
Skip to first unread message

Sandeep C

unread,
Jan 16, 2017, 1:43:31 AM1/16/17
to Chromium-discuss
Hi ,

I am looking to render different geometries on Chrome in wireframe mode. 
Ive tried glpolygonmode on OpenGL, but this api is not supported on OpenGLES. Is there any other algorithm/method to see a wireframe rendering of a geometry on chrome ?

Thanks,
Sandeep

PhistucK

unread,
Jan 16, 2017, 3:45:30 AM1/16/17
to wonde...@gmail.com, Chromium-discuss
What is "wireframe mode"?


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

SANDEEP C

unread,
Jan 16, 2017, 3:50:10 AM1/16/17
to PhistucK, Chromium-discuss
https://en.wikipedia.org/wiki/Wire-frame_model

wire-frame model is a visual presentation of a 3-dimensional (3D) or physical object used in 3D computer graphics.

The term wire frame comes from designers using metal wire to represent the three-dimensional shape of solid objects. 3D wire frame allows to construct and manipulate solids and solid surfaces

Using a wire-frame model allows visualization of the underlying design structure of a 3D model. Traditional two-dimensional views and drawings can be created by appropriate rotation of the object and selection of hidden line removal via cutting planes.

PhistucK

unread,
Jan 16, 2017, 3:52:23 AM1/16/17
to SANDEEP C, Chromium-discuss
I know what a wireframe is, I meant to ask, what is "Chrome in wireframe mode" (mode, not model)?


PhistucK

Kai

unread,
Jan 18, 2017, 1:48:14 AM1/18/17
to Chromium-discuss, wonde...@gmail.com
Sandeep, it sounds like you are using WebGL. To draw a wireframe you must use the gl.LINES drawing mode, which will require different vertex data. There is no way to draw a wireframe directly.

WebGL 1.0 matches OpenGL ES 2.0; WebGL 2.0 matches OpenGL ES 3.0. 
Reply all
Reply to author
Forward
0 new messages