Page 1 of 1
Multitexturing & Materials
Posted: Fri May 30, 2014 3:10 pm
by AltSoftLab
Hi Irrlicht community!
I'm developer of AltSoftLab Team
http://www.AltSoftLab.com
We presented Irrlicht HW Render Backend of our AltSketch .NET Vector Graphics Library here on forum thread
http://irrlicht.sourceforge.net/forum/v ... =6&t=49917
After the work on Irrlicht integration we have some troubles and need your help.
1. First of all we need multitexturing with different texture coords for each texture. Our render operation can has 3 textures with 3 TextCoords. Is it possible to create Material without shaders to process this?
2. We need texture alpha multiply with vertices color alpha. When we use MaterialType.TransparentAlphaChannel the only texture alpha used without multiplication with vertices alpha – only RGB color of vertices processed. Is it possible to multiply texture alpha with vertices alpha without shaders?
Thanks forward!
Evgeny,
AltSoftLab Team
Re: Multitexturing & Materials
Posted: Sat May 31, 2014 6:34 pm
by hybrid
Please do not cross post if you get no answers. Instead, try to improve your questions.
Basically, both approaches are valid. FixedFunction also supports multi texcoords. Question is if you really want to say with the limited operations which would be possible there, esp. for multi-texturing.
Second is probably possible with OneTextureBlend material. But I'm not exactly sure if I got you fully correct.
Re: Multitexturing & Materials
Posted: Sat May 31, 2014 9:12 pm
by AltSoftLab
hybrid wrote:Please do not cross post if you get no answers. Instead, try to improve your questions.
Basically, both approaches are valid. FixedFunction also supports multi texcoords. Question is if you really want to say with the limited operations which would be possible there, esp. for multi-texturing.
Second is probably possible with OneTextureBlend material. But I'm not exactly sure if I got you fully correct.
I'm also din't understand all what you said also I think you din't understand all what I said
Ok:
1. I have 2 or 3 textures with different Texture Coords. But only 2 structures to set vertex data is S3DVertex and S3DVertex2TCoords. For the fist I can set only 1 texture coords, for the second - 2, but S3DVertex2TCoords didn't work in my app (I don't know why).
We working on OGRE integration also. There I can set any Texture Coords and set FPP blending params. Without working with shaders. HOW I can do such things in Irrlicht? How to set vertex data with multiple texture coords (2-3) and push it to render queue? And how to set Material properties to process this data?
2. OneTextureBlend didn't work in my app. The result is black polygons

TransparentAlphaChannel working good, but it blend only texture ColorAlpha and vertex Color (without vertex Alpha)
Re: Multitexturing & Materials
Posted: Sun Jun 01, 2014 6:13 am
by Foaly
2. As far as I know, for OneTextureBlend you need to set the MaterialTypeParam to a value from Material.PackTextureBlendFunc(...).
It is not yet in the IrrlichtLime release so you'll have to download the sourcecode here:
http://sourceforge.net/p/irrlichtlime/code/HEAD/tree/.
Re: Multitexturing & Materials
Posted: Sun Jun 01, 2014 2:51 pm
by hybrid
For using fixed function pipeline materials with more texture coords (2 are often supported, but not more) you have to implement the materials on your own. Meaning programming the modes in OpenGL and/or D3D on your own.
Re: Multitexturing & Materials
Posted: Tue Jun 24, 2014 8:28 pm
by AltSoftLab
hybrid wrote:For using fixed function pipeline materials with more texture coords (2 are often supported, but not more) you have to implement the materials on your own. Meaning programming the modes in OpenGL and/or D3D on your own.
Can you give me a little code example of using 2 texture coords?
Re: Multitexturing & Materials
Posted: Tue Jun 24, 2014 8:30 pm
by AltSoftLab
Foaly wrote:2. As far as I know, for OneTextureBlend you need to set the MaterialTypeParam to a value from Material.PackTextureBlendFunc(...).
It is not yet in the IrrlichtLime release so you'll have to download the sourcecode here:
http://sourceforge.net/p/irrlichtlime/code/HEAD/tree/.
Hi, Thanks! What parameter? Can you give me some example?