two textures on one model & 3ds-models intersection chec
Posted: Tue Nov 06, 2007 12:16 pm
Hello again. Thanks for all who help me yesterday, you are the best!
How can i check for collision with 2 3ds-models? And with 2 cubeSceneNode's ?
Be sure, i read tutorial about collision, but answers for my questions (in my opinion) in this tutorial was not explained well.
And second question: Can I use on one model two or more textures (bottom texture must be visible under top texture)? I want to use this for draw logo and bullet holes on cars in my "game". I try:
node->setMaterialTexture(0,frame0);
node->setMaterialTexture(1,frame1);
where frame0 has transparent zones (png) and frame1 is bmp-texture without transparency. But this code doesn't work =(
How can i check for collision with 2 3ds-models? And with 2 cubeSceneNode's ?
Be sure, i read tutorial about collision, but answers for my questions (in my opinion) in this tutorial was not explained well.
And second question: Can I use on one model two or more textures (bottom texture must be visible under top texture)? I want to use this for draw logo and bullet holes on cars in my "game". I try:
node->setMaterialTexture(0,frame0);
node->setMaterialTexture(1,frame1);
where frame0 has transparent zones (png) and frame1 is bmp-texture without transparency. But this code doesn't work =(