How do you put 2 textures on sphere
Blitz3D Forums/Blitz3D Beginners Area/How do you put 2 textures on sphere
| ||
I got some textures and a normal map but i cannot put them on together, one will be showing and the other will disappear![]() ![]() ![]() ![]() did i do anything wrong? are normal maps not supported on blitz? |
| ||
You have to use the textureblend command as shown in the code below - tex0=loadtexture("planet.jpg") tex1=loadtexture("normal.jpg") Planet=createsphere(32) ScaleEntity planet,5,5,5 Positionentity planet,0,5,0 Entitytexture planet,tex0,0,0 Entitytexture planet,tex1,0,1 Textureblend tex1,5 Check out the blitz3d command reference for textureblend command for more details. |
| ||
Note that normal mapping is not fully supported in B3D. You may have to do some hacks to be able to achieve this effect. I have a lot of older posts relating to this issue if you would like to find out. Just do a search. |
| ||
Do bump maps work? |
| ||
Bump maps has the same effect and it is not integrated in Blitz3d as well, meaning you have to update your lighting manually so your effect looks right. There are code examples here that you can use just do some search. You can use libraries like FastLibs or AShadow which I think has this function already. |