Re: [osg-users] Blending Multiple Texture on one triangle mesh with coordinate control

2010-09-27 Thread Brian Tse
thank you very much for your reply Robert. Sorry to reply late. I finally got it working. At the end i used texture3D instead of texture2D. One problem i had with texture was shadowing. Originally, i used ShadowMap, but some reason, the second texture never show up. the shadowmap doesn't seems

Re: [osg-users] Blending Multiple Texture on one triangle mesh with coordinate control

2010-09-19 Thread Robert Osfield
Hi Brian, To do multi-texturing you simple need to assign a texture coordinate array per texture unit you want to address, with a texture coord per vertex. So if you want two texture's you'll need to assign two texture arrays. The method to use is osg::Geometry::setTextureCoordArray(unit,

Re: [osg-users] Blending Multiple Texture on one triangle mesh with coordinate control

2010-09-18 Thread Brian Tse
Hi Alberto Thank you very much for your quick response. One of the reason our team has to do it via open scene graph is because our program has to modified the triangle mesh in real time, this include additional or removal or triangles. Therefore, (I may be wrong, because i m very new to 3D

Re: [osg-users] Blending Multiple Texture on one triangle mesh with coordinate control

2010-09-17 Thread Alberto Luaces
Brian Tse writes: Currently, I build a triangle mesh in osg (eg. triangle mesh is a teddy bear model) I want to implement 2 texture (eg. hair.jpg and skin.jpg) Is there a way i can blend 2 texture together on one single triangle mesh? (eg. hair.jpg showing on one side of the teddy bear

[osg-users] Blending Multiple Texture on one triangle mesh with coordinate control

2010-09-16 Thread Brian Tse
Hi All I am very new to Open Scene Graph and please accept my apology if this is a very obvious question. Your answer is grateful appreciated. Currently, I build a triangle mesh in osg (eg. triangle mesh is a teddy bear model) I want to implement 2 texture (eg. hair.jpg and skin.jpg) Is there