Title: A simple teapot isosurface Post by: DarkBeam on November 13, 2016, 07:43:40 PM I found the Utah teapot shader on Shadertoy but it looked way too complicated for me.
So I thought that it might be redesigned using far less constants, routines and stuff, of course using more simple shapes! :D But it still looks pretty realistic. The code reported here must be shadertoy-ized a little but the hardest work is done; :D Code: // Teapot lame isosurface code is released under CC BY-SA 3.0 Title: Re: A simple teapot isosurface Post by: M Benesi on November 13, 2016, 07:54:39 PM Good job Luca!
initialize variables somewhere? Title: Re: A simple teapot isosurface Post by: DarkBeam on November 13, 2016, 07:56:55 PM Thanks Matthew :-* but let me attach a preview :embarrass:
Title: Re: A simple teapot isosurface Post by: M Benesi on November 13, 2016, 08:00:43 PM Looks like texture is not attached to normals on the object, but instead to something else? First one is nice!
Title: Re: A simple teapot isosurface Post by: DarkBeam on November 13, 2016, 08:23:59 PM Well I don't know it is a mb3d lightmap (the actual iso is clean) :) the second is a cut view that shows the inside and the holes all around :)
Also yes all vars are float and you must declare and initialize them! I programmed all in assembly (where vars ... don't exist ;D ) this is a transcript that hopefully is not too messy!!! Title: Re: A simple teapot isosurface Post by: Sabine on November 13, 2016, 08:26:39 PM (http://orig09.deviantart.net/a968/f/2012/015/0/a/cheerleading_squad_by_cookiemagik-d4mf5q1.gif) You did it, Luca!!! You're my hero :yes: |