[Bf-committers] GameEngine material patch.
snailrose at bresnan.net
Mon Dec 19 19:02:42 CET 2005
this patch is probably too late to get reviewed for this up coming release,
but i'll go ahead and post it.
It allows for basic material panel properties to be copied over to the game engine
There are four multitexturing units available for use, which are accessed via the MTex panel.
Multi-texturing will default to the minimum available units that any user's card will handle.
Cubemap extensions are also accessed via the EnvMap 'Load' menu.
Multiple materials per mesh are available, so each mesh can handle four textures
per material and sixteen materials per mesh.
To pick up some slack with fixed functionality, GLSL shaders are accessible with python, so the user
has the option to implement normal mapping and all the really cool shader effects.
There is a python bug some where that will crash blender in MSVC7, 'PyFatal_Error UNREF invalid object'.
which I'm trying find the root of, so there is a chance that shaders will crash the engine.
This will mostly happen if the material loop is called globally inside a script.
For comparison, skate_girl and mech_interactive will do this as well even with out
any of these new options set. So there is a nasty little bug lurking somewhere, inside
In the file included are some demos showing some of the stuff mentioned above.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Bf-committers