As i posted this already in the generel discussion section, i post this topic by advice
in this section:
Hello, i am new to JME and considering using it for some own projects.
First i took a look at the Ogre3d engine and Ogre4j.
Ogre has this nice material language where you can bind predefined
materials in a text file to an entity (guess entity is what spartial is in jme).
is/will there be something similiar in JME?
would love to see this :)
in ogre its looking something like this:
// base pass
// no lighting
// We use the grass texture as the base. other textures are blended over it
// Scale the texture so, that it looks nice
scale 0.1 0.1
// Only blend colour
//colour_op_ex source1 src_texture src_texture
// dirt pass
// no lighting
// blend with former pass
// only overwrite fragments with the same depth
// alpha map for the dirt
// use alpha from this texture
alpha_op_ex source1 src_texture src_texture
// and colour from last pass
colour_op_ex source2 src_texture src_texture
// detail texture
scale 0.15 0.15
// alpha blend colour with colour from last pass
colour_op_ex blend_diffuse_alpha src_texture src_current
// .... further detail passes like the former one
// lighting pass
ambient 0.5 0.5 0.5 1
diffuse 0.3 0.3 0.3
scene_blend zero src_colour
its better explained in this wiki:
maybe i should reference this thread in the forum.
its about some kind of xml def. language:
personally i like more the pure text, ogre style (similar to quake3 or doom3 shader/materials).
xml is too much overhead in my opinion.