Saturday, May 11, 2024
 Popular · Latest · Hot · Upcoming
188
rated 0 times [  194] [ 6]  / answers: 1 / hits: 18884  / 13 Years ago, tue, december 27, 2011, 12:00:00

I'm currently researching a way to produce non-photorealistic rendering in webgl. The best looking algorithm I've found so far for edge detection was implemented with OpenGL's geometry shader, here. Specifically GL_TRIANGLES_ADJACENCY.



I was wondering if there was an equivalent in WebGL or even how would I go about porting this code over to Javascript.


More From » opengl-es

 Answers
3

Geometry shaders is not available in WebGL.



However there is plenty of ways to do edge detection. E.g. you can use image space based algorithms, such as



http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.93.9731&rep=rep1&type=pdf



Or take a look in Real-time Rendering - 3rd edition (book). In this book there is a lot of examples of NPR, of which most will run fine on WebGL.



http://www.realtimerendering.com/


[#88362] Sunday, December 25, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaelynncherokeeg

Total Points: 697
Total Questions: 109
Total Answers: 104

Location: France
Member since Thu, Mar 18, 2021
3 Years ago
jaelynncherokeeg questions
Thu, May 27, 21, 00:00, 3 Years ago
Fri, Jan 24, 20, 00:00, 4 Years ago
Thu, Nov 14, 19, 00:00, 5 Years ago
Wed, Sep 18, 19, 00:00, 5 Years ago
;