Sam Hocevar
0ba4e6d9e0
easymesh: interface the shiny shader with new Light objects.
12 years ago
Sam Hocevar
3adf42b00c
build: hide LolFx external declarations behind macros.
12 years ago
Sam Hocevar
bbf72e1a64
core: pass the project directory to the binary build and get rid of
that 2-year old "temporary Win32 hack".
12 years ago
Sam Hocevar
6a6e46cf0d
system: try to autodetect the data directory from the executable path;
currently works for images (SDL and GDI+ loaders) and sound samples.
12 years ago
Benjamin ‘Touky’ Huet
4393a43752
Added CSG v0.001a : not optimized, too much operation makes it slow. triangle count is not optimized.
Useage : "...[.... csg*]" equals "current mesh -CSG- the mesh in the braces".
Keywords : CsgUnion<csgu>, CsgSubstract<csgs>, CsgAnd<csga>, CsgXor<csgx>
TODO : cleanup useless code.
TODO : Some bugs are still present, some face that disappear should not.
TODO : Correct epsilon useage (see geometry files).
TODO : Coplanar face are not handled -at all-.
TODO : Vertex count goes through the roof in case of a Xor.
12 years ago
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
12 years ago
Sam Hocevar
5366a6b606
tutorial: display fewer points in the curve tutorial.
12 years ago
Sam Hocevar
c84c092a42
tutorial: minor tweaks.
12 years ago
Sam Hocevar
a8a3e6ced6
tutorial: add fancy dots to line segment ends.
12 years ago
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
12 years ago
Sam Hocevar
6c9c8e547e
build: renormalise a lot of files.
12 years ago
Sam Hocevar
2ec31981fd
easymesh: make demo objects smaller.
12 years ago
Sam Hocevar
7fa661a2fd
easymesh: motherfucking planetary gears demo.
12 years ago
Sam Hocevar
662148406f
easymesh: allow central holes in gears as well as internal gears.
12 years ago
Sam Hocevar
adfd582b98
tutorial: HUGE COGS.
12 years ago
Sam Hocevar
e2c28b3130
tutorial: optimise the line graph rendering shader.
12 years ago
Sam Hocevar
c71a033890
tutorial: minor shader tweaks in the line plot shader.
12 years ago
Sam Hocevar
8b35c75918
tutorial: change the terrain drawing into an antialiased line graph.
12 years ago
Sam Hocevar
bbca3b6e59
build: fixes for out-of-tree builds, and get rid of
some deprecated stuff.
12 years ago
Sam Hocevar
57c2805351
math: reimplement min(), max(), abs() and fmod() in the lol:: namespace to
avoid conflicts with the C++ stdlib.
12 years ago
jeunathe
169c6da480
nice holes
12 years ago
Sam Hocevar
df7a21d68f
tutorial: add texture demo to the VS solution.
12 years ago
Sam Hocevar
6944db663b
tutorial: add a new texture generation example.
12 years ago
Sam Hocevar
26c945a31f
gpu: allow to specify the pixel format when creating a texture; the
internal format is then automatically deduced. Only a few 8-bit RGB
or RGBA formats are supported for now.
12 years ago
Sam Hocevar
8a688a7d50
misc: compilation fixes for Windows, X360 and PS3 introduced by the
texture class refactor.
12 years ago
Sam Hocevar
b9aba5d27a
gpu: put the texture creation code in its own class; for now a lot of things are
hardcoded and only the fractal demo uses it, but everything will eventually switch.
12 years ago
Sam Hocevar
50ff3f9ce0
ps3: refactor elf → self build logic and make make_fself mandatory
when building for the PS3 on a Unix system.
12 years ago
Sam Hocevar
ad00a34984
gpu: add support for triangle strips and fans, and change the DrawElement
calls so that they take a number of vertices or indexes, not elements.
12 years ago
Sam Hocevar
787c96b47c
lolfx: improve the LolFx compiler, including error reporting. We can now
successfully parse a few of our full GLSL/HLSL shaders.
12 years ago
Sam Hocevar
549566cbf1
lolfx: use square brackets to indicate shader sections.
12 years ago
Sam Hocevar
ca909bb317
build: refactor lolfx build rule into common.am.
12 years ago
Sam Hocevar
e390f03e0a
build: add a common.am include file and a "make lolcheck" target that does
nothing for now except ensure that every makefile includes common.am.
12 years ago
Sam Hocevar
c5b10f5e9a
tutorial: flatten the fractal computation loop, and avoid the use of
new/delete when our arrays will do.
12 years ago
Sam Hocevar
4cee96d09d
easymesh: use "ato" for torus, because "at" is already for triangle.
12 years ago
Sam Hocevar
d4c0c005d6
math: refactor real number constant declarations so that they are only
computed on demand with static initialisation.
12 years ago
Sam Hocevar
38364a0bd6
easymesh: first shot at a simple, flat shaded torus.
12 years ago
Sam Hocevar
a233173fc7
tutorial: sync HLSL version of the water/fire effect with the GLSL one.
12 years ago
Sam Hocevar
0d78d14145
tutorial: tweak noise shader once more, and add a few code comments.
12 years ago
Sam Hocevar
36d49b50e5
tutorial: replace white noise with ordered dithering.
12 years ago
Sam Hocevar
6cb15b3647
tutorial: add some cosmetic white noise.
12 years ago
Sam Hocevar
10431d1421
tutorial: add funny shit to the noise shader example.
12 years ago
Sam Hocevar
45da878e36
tutorial: make the noise shader computationally more efficient.
12 years ago
Sam Hocevar
ada16c6214
tutorial: use a better value noise function that does not suffer from the
same discontinuity issues as the sin() approach.
12 years ago
Sam Hocevar
7c30e626bd
tutorial: optimise Perlin noise shader and reduce its complexity.
12 years ago
Sam Hocevar
5d7a1c24bd
tutorial: port noise demo to PS3 and Xbox360.
12 years ago
Sam Hocevar
125ad21192
tutorial: the noise demo is now really, really, ridiculously good looking.
12 years ago
Sam Hocevar
a86eaf1bb2
tutorial: start working on a small Perlin-like noise demo.
12 years ago
Sam Hocevar
779815802a
tutorial: minor shadebob demo tweaks.
12 years ago
Sam Hocevar
1c5cdd8c50
tutorial: fix the FBO demo on the Xbox360.
12 years ago
Cédric Lecacheur
82bb4cd6a3
EsayMesh : RadialJitter func & demo added
12 years ago