updated again, now works properly with soya shapes multitexturing is, as yet, untested
http://30bentham.homelinux.org/~dunk/python/soya_new_material.diff On Fri, Jun 24, 2005 at 11:20:40AM +0100, dunk wrote: > Ive updated this patch with better integration with soya materials. > > http://30bentham.homelinux.org/~dunk/python/soya_new_material.diff > > Ive made a _BaseMaterial class that defines the bare minimum for a soya > material. Controlling shader attributes from a pudding python console is > fun :D > > > On Tue, Jun 21, 2005 at 09:26:28PM +0100, dunk wrote: > > hi, > > > > ive been working on trying to get glsl shaders and multitexturing > > to work with soya. > > > > you can see/use the code with this patch: > > http://30bentham.homelinux.org/~dunk/python/soya_new_material.diff > > > > A new shape class is also included because i didnt want to hack around > > in the SimpleShape class. This shape class uses vertex arrays instead of > > display lists. > > > > Here are two example scripts ( not very clean sorry ): > > http://30bentham.homelinux.org/~dunk/python/modeling-material-env.py > > http://30bentham.homelinux.org/~dunk/python/modeling-material-shader.py > > > > And some screenshots: > > uv texture and env map - > > http://30bentham.homelinux.org/~dunk/python/soya-pywracer.png > > glsl toon shader - > > http://30bentham.homelinux.org/~dunk/python/soya-toon-aa.png > > glsl brick shader - > > http://30bentham.homelinux.org/~dunk/python/soya-shader.png > > > > I also have a very simple blender exporter to work with my shape class > > if anyone wants it and some example shader source. > > > > Only small tests have been done so far but it seems to work fine for me. > > If you have any comments or questions please speak up :) > > > > have fun > > dunk > > > > _______________________________________________ > > Soya-user mailing list > > [email protected] > > https://mail.gna.org/listinfo/soya-user > > > > > > _______________________________________________ > Soya-user mailing list > [email protected] > https://mail.gna.org/listinfo/soya-user > >
