Page 1 of 1

Problem with normals in VertRen

Posted: Wed Feb 15, 2006 4:09 am
by RRuiz
I doing an exporter for pov-ray and I have a little problem. I need the vertex normal from VertRen but it give me a wird result


n[3] result = <-0.81634,-0.501914,-0.285782> and from python api .no = [-0.577349,-0.577349,0.577349]

I have the same problem with the face normal

How can I get this normal from VlakRen structure or VertRen structure?

(I could calculate but I want to use the precalculated ones)


Posted: Wed Feb 15, 2006 9:03 am
by LetterRip
Is one possibly in global space and the other in local space?


Posted: Wed Feb 15, 2006 1:39 pm
by RRuiz
Thanks for the reply LetterRip, I do not thing so, I just saw that from a cube the first 4 n[3] are equal, so there must be an other porpouse for the n floats, I do not want to get that from the object because I do not realy know how to get the mesh info when a modifier is apply to the objecto like SB o FS. :( .

Posted: Wed Feb 15, 2006 6:08 pm
by RRuiz
mm I recalculate the normals . . it is not a big diferent on the output time . this will be an ugly solution to the problem but is a solution after all 8)

un Saludo