vrijdag 23 november 2007

another post



i can display textures in the viewport:) texcoords are automatically generated in the range 0..1 thats why some are still fucked up. the nicest part is it is scripted so i can change shaders/ textures by only editing the script files

boolean operations




i've got boolean operations working,
right now the supported operations are csg union, csg subtraction, and csg hollow, also i've written a material library, where material properties(mass, #textures, and surface properties. e.g. slime, lava ) go in a .shader file that will be parsed upon loading. Great benefit of this is that textures aren't hardcoded anymore.
Textures, materials and shader programs will only get loaded once if they are already in memory i will just return a reference( that was the hardest part);
Paul