» 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
Credits: vux

about

Just a GSFX to calculate flat normals.

download

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

colorsound 06/01/2014 - 11: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 - 15: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 - 11:29

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

woei 07/01/2014 - 12: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 - 23: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 - 17:54

get anywhere with generating smooth normals?

screamer 17/02/2015 - 12:50

bump...

mburk 22/03/2015 - 21:40

Check this out: smooth-per-vertex-normals

anonymous user login

Shoutbox

~4mth ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~5mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~5mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~5mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~5mth ago

~5mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~6mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~6mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~6mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~6mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/