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.
il y a 13 ans
Sam Hocevar
8dd6d33a6d
base: implement String::Resize().
il y a 13 ans
Lolbot
7e4da3d634
fixed 27 files out of 2315:
- removed 0 CR characters
- removed 188 trailing whitespaces
- replaced 537 tabs with spaces
il y a 13 ans
Benjamin ‘Touky’ Huet
ad275175b8
Tweak to prevent tri_to_process.Last().m1 emptying.
il y a 13 ans
Sam Hocevar
3973f80a9d
base: fix a nasty double free issue in Array::Remove().
il y a 13 ans
Benjamin ‘Touky’ Huet
1038fa7fbe
Small MeshCsg return FIX
il y a 13 ans
Benjamin ‘Touky’ Huet
6db0694db4
Revert shiny.lolfx to previous, monogolo-commit.
il y a 13 ans
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.
il y a 13 ans
Benjamin ‘Touky’ Huet
3d56a23a55
Added geometry basic functions.
TODO : second pass on coding-style, and some tweak & usage modification.
il y a 13 ans
Sam Hocevar
f44e3e323b
core: you can now while(app.MustTick()) { Tick(); } instead of app.Run().
il y a 13 ans
Sam Hocevar
d3032e3e67
color: slightly better HSVToRGB routine.
il y a 13 ans
Sam Hocevar
47cf667a93
color: write the RGB to HSL routine and its associated unit tests.
il y a 13 ans
Sam Hocevar
5715742774
color: optimise RGB to HSV conversion routine using my latest findings,
and add a simple unit test function.
il y a 13 ans
Benjamin ‘Touky’ Huet
c7219ff1dd
New year copyright update.
il y a 13 ans
Sam Hocevar
d9bdb33bc0
color: a reasonably fast RGB to HSV conversion with only three tests.
il y a 13 ans
jeunathe
08e81c93d1
coding style my ass
il y a 13 ans
jeunathe
504f9a4ca2
Update EasyMesh.Convert() method.
Now takes an optional shader
il y a 13 ans
Sam Hocevar
99b0874652
color: simplify CIEDE2000 distance code.
il y a 13 ans
Sam Hocevar
b12c16448a
color: fix a mistake in the CIEDE2000 color-difference formula.
il y a 13 ans
Sam Hocevar
a5ba03b405
color: unit test data for the CIEDE2000 color-difference formula.
il y a 13 ans
Sam Hocevar
eae9dae863
color: fix typo in float table.
il y a 13 ans
Sam Hocevar
d8577e0ec7
color: move the CIEDE2000 distance code into the C++ file and
reorganise the CIE-1931 and CIE-1964 tables.
il y a 13 ans
Sam Hocevar
4e678e2cd0
color: linear interpolation for the wavelength to colour function.
il y a 13 ans
Sam Hocevar
44f324a354
color: add conversion from CIE-xyY to CIE-XYZ and start working on
a wavelength to saturated xyY function based on the standard observer
data.
il y a 13 ans
Sam Hocevar
46cc299f5e
base: fix more memory corruptions in the Array class.
il y a 13 ans
Sam Hocevar
02bea89c0e
color: ensure XYZ values use the [0 100] scale and add an optional
white value in case we want to convert XYZ to L*a*b* with something
else than D65.
il y a 13 ans
Sam Hocevar
1b9b5be4b7
color: add HSL/HSV conversions, fix XYZ/RGB conversions that I mixed up,
add XYZ to xyY conversion (which gives us a pretty accurate xy graph of
the sRGB gamut), and normalise XYZ using a D65 white point.
il y a 13 ans
Sam Hocevar
1fe4a5796e
math: mark unused arguments as used in fract().
il y a 13 ans
Sam Hocevar
1787ddbf19
color: implement HSV to RGB transformation and a CIEDE2000 distance
function for CIE L*a*b* values.
il y a 13 ans
Sam Hocevar
e00d987083
math: implement fract() for vectors and scalar types.
il y a 13 ans
Sam Hocevar
461b02a9b3
color: conversions from CIE XYZ to CIE L*a*b*.
il y a 13 ans
Sam Hocevar
ecfb33af45
math: define lol::pow to remove ambiguous calls.
il y a 13 ans
Sam Hocevar
10d5d30b85
image: a few colour conversion routines.
il y a 13 ans
Sam Hocevar
d49bb04d20
build: rename “core” directory to “base” because the former is used for core
files on some Unix systems.
il y a 13 ans
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
il y a 13 ans
Sam Hocevar
8c50a08147
doc: fix claims in the documentation introduction and disable vector.h
subtelties to avoid polluting Doxygen.
il y a 13 ans
Sam Hocevar
6c9c8e547e
build: renormalise a lot of files.
il y a 13 ans
Sam Hocevar
c2b075c7a9
core: fix a memory corruption in the Array class.
il y a 13 ans
Sam Hocevar
84a308af4e
gpu: warn when a vertex shader attribute isn’t found and do not crash
when a stream is not found in the vertex declaration at bind time.
il y a 13 ans
Sam Hocevar
7fa661a2fd
easymesh: motherfucking planetary gears demo.
il y a 13 ans
Sam Hocevar
662148406f
easymesh: allow central holes in gears as well as internal gears.
il y a 13 ans
Benjamin ‘Touky’ Huet
5e5c8c4e25
specular on cube light. Not the correct effect.
il y a 13 ans
Benjamin ‘Touky’ Huet
924a2afbbe
the stupidest idea of the day : the cube light, specular still missing.
il y a 13 ans
Benjamin ‘Touky’ Huet
7c0134ea12
shiny.lolfx now has a PointLight & a DirectionalLight.
Sorry for all the fine projects that use this shader !
il y a 13 ans
Sam Hocevar
573c5053d9
easymesh: fix point light handling.
il y a 13 ans
Benjamin ‘Touky’ Huet
828734c3f2
"Point light" Tweak
il y a 13 ans
Benjamin ‘Touky’ Huet
8cde92fd2e
first commit in a while, small test in ShinyLol
il y a 13 ans
Benjamin ‘Touky’ Huet
ea517c2926
Added tsw (ToggleScaleWinding) command in EasyMesh Parser to make old-school celShading contour.
il y a 13 ans
Sam Hocevar
bf16c555ab
build: minor vcxproj reorganisation.
il y a 13 ans
Sam Hocevar
bbc2edcc8e
core: we can now set Map elements using simply map[foo] = bar, no need for
a Set() method. Also, new HasKey() method.
il y a 13 ans