Questions tagged [npr]

Non-Photorealistic Rendering are rendering techniques that do not attempt to mimic reality. Cartoon rendering, heavy ink outlines as seen in comics, pencil-sketch rendering, etc.

6 questions
2
votes
3 answers

NPR GLSL Tutorials

Anyone have a good list of tutorials on doing Non photo realistic rendering with GLSL ? I have seen books on GLSL, and books on NPR, but very few books/tutorials on doing NPR with GLSL. (I want to do it with GLSL as I want real time). Thanks!
anon
  • 41,035
  • 53
  • 197
  • 293
2
votes
0 answers

NPR edge detection using custom shader

I am trying to implement edge detection in a shader to achieve a non-photorealistic "outline" effect in Three.js, following the approach here: http://ar3f.in/goochShading.html . I am mainly interested in the dark outlines, rather than the Gooch…
caseygrun
  • 2,019
  • 1
  • 15
  • 21
1
vote
1 answer

How to calculate principal curvature directions in 3D mesh?

In non-photorealistic rendering, line direction matters much of effects. In order to achieve a good effect, I wanna rotate texture to principal curvature directions. I have 3D mesh model(consist of triangle set). I wanna estimate principle curvature…
cyblocker
  • 184
  • 7
0
votes
1 answer

GLbyte Data in Strange Format -- NPR Technique

I'm working on an edge detection algorithm for a NPR technique. I plan on just using difference of gaussians to find the edges. I thought that I would take a copy of the current screen, then analyze and recolor the pixels so that I have a map to…
Nathan Tornquist
  • 6,468
  • 10
  • 47
  • 72
0
votes
1 answer

Line drawing with GLSL shader, how to do it in fragment shader?

I've read some papers and it says like they can detect silhouette,edge,ridge and draw a line to it using GLSL shader. But in the implementation they says that they 'accessed' neighbouring pixel and do something. How can that even possible? This is…
5argon
  • 3,683
  • 3
  • 31
  • 57
0
votes
2 answers

Combination of characters in an array with formula nPr in java

Can someone please tell me how to implement combination for character values stored in an array with formula nPr. For example if I have a set of {a,b,v,f} and I want to choose 2 at a time the answer should be {a,b} {a,v} {a,f} {b,v} {b,f} {v,f}. Or…
Ali Asad Sahu
  • 57
  • 1
  • 3
  • 9