UpdateNormals ????***

Blitz3D Forums/Blitz3D Programming/UpdateNormals ????***

Skurcey(Posted 2004) [#1]
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...


Dreamora(Posted 2004) [#2]
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?


Skurcey(Posted 2004) [#3]


------------------------------------------------
I reviewed my code and in the old one, the shadows are working good... it's

hehehehe


WolRon(Posted 2004) [#4]
Use the [code] [/code[ or the [codebox] [/codebox[ commands for displaying code.


Skurcey(Posted 2004) [#5]
er i don't remember anything in html i only use code twice. sorry


jfk EO-11110(Posted 2004) [#6]
maybe your shadow mesh is faceing towards the ground?
try
EntityFX ground,2 or 16

to make it two-sided to check this out.


Skurcey(Posted 2004) [#7]
nope it doesn't work...


Dreamora(Posted 2004) [#8]
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.


Skurcey(Posted 2004) [#9]
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...


Dreamora(Posted 2004) [#10]
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


Skurcey(Posted 2004) [#11]
0k thanks anyway...