» GSFX Per vertex normals
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

GSFX Per vertex normals

effect dx11 geometry normals
Credits: vux

about

Just a GSFX to calculate flat normals.

download

NormalsGSFX.zip
04.01.14 [15:06 UTC] by lasal | 1089 downloads
Geometry shader, calculate normals

colorsound 06/01/2014 - 10:40

hey Lasal thanks.

Did you find a way to calculate smooth normals as well , the further i got is like in your shader ?

microdee 06/01/2014 - 14:25

@colorsound: i'm thinking on the topic i already have a draft idea of a compute shader. the basic problem with smooth normals that you have to know which triangles share the same vertices.

colorsound 07/01/2014 - 10:29

Yes you need TriangleListWithAdjacency i think,cool keep me updated.

woei 07/01/2014 - 11:20

already tried unsuccessfully with adjacency. either no adjacency was passed (vertex indices > 2 were at origin) or with topology i'd get them, but then half the triangles were missing...

microdee 07/01/2014 - 22:48

adjacency is not the full picture because that only includes the triangles that share the same edges, however there could be any number of triangles sharing the same vertice between the 2 adjacent triangle of the neighbouring edges. think of the triangle fan closing the top and the bottom of a cylinder.

mrboni 28/04/2014 - 16:54

get anywhere with generating smooth normals?

screamer 17/02/2015 - 11:50

bump...

mburk 22/03/2015 - 20:40

Check this out: smooth-per-vertex-normals

anonymous user login

Shoutbox

~11h ago

joreg: Know someone who should learn #vvvv? Send them to one of our intro workshops in #Berlin https://nodeforum.org/announcements/2020-series-of-2h-introduction-workshops-to-vvvv-gamma/ #creativecoding

~20h ago

udo2013: @sunep:had an idea how to restore midi-data by one lick and bring the sliders in original position.patch in forum."restore midi.."

~7d ago

sunep: @udo2013 make a forum post about and I can share my subpatch

~7d ago

sunep: @udo2013 I have myself dealt with that problem by using LTP (Value) in pickup mode

~11d ago

~11d ago

~13d ago

joreg: @soundreactor: yes

~13d ago

soundreactor: is 50beta.. supposed to be working in windows 7 ?