UpdateNormals ????***
Blitz3D Forums/Blitz3D Programming/UpdateNormals ????***
| ||
I coded an UpdateNormals <mesh> at the end of the function who create the vertex for the mesh and it doesn't work, damn, i can't see any shadows... i can't understand why... |
| ||
shadows? What type of shadows are you exactly talking of? it is only a little vertex coloring btw Did you perhaps use the fullbright EntityFX flag? |
| ||
------------------------------------------------ I reviewed my code and in the old one, the shadows are working good... it's hehehehe |
| ||
Use the [code] [/code[ or the [codebox] [/codebox[ commands for displaying code. |
| ||
er i don't remember anything in html i only use code twice. sorry |
| ||
maybe your shadow mesh is faceing towards the ground? try EntityFX ground,2 or 16 to make it two-sided to check this out. |
| ||
nope it doesn't work... |
| ||
why did you use a flipmesh on the ground? chaning 2nd and 3rd vertex in the addtriangle command has the same effect and saves time :) You say the first code worked but not the 2nd, right? Is there any Lightsource in the whole source with part 2? Do you modify the vertexcolors outside this function? ( you used VertexColor FX so I think you are doing something with it ) because the shading is done over vertex colors so if you modify the vertex color the shading is gone. |
| ||
the first was an error, i din't notice 'bout the ...clocksmthing rotation...]] there s a light source in my second code and i don't modify the color of the vertex... |
| ||
if you don't modify vertex colors, comment out the EntityFX ground, 2 part and look if the "shadow" returns. I never tried if it actually has any effect as I never used any entity FX flags when I didn't need them. this FX is the only real difference between the 2 functions |
| ||
0k thanks anyway... |