Problem with normals in VertRen

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
RRuiz
Posts: 0
Joined: Wed Apr 20, 2005 4:08 am

Problem with normals in VertRen

Post 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

ejem.

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)

Thanks
Last edited by RRuiz on Mon Mar 06, 2006 6:36 pm, edited 1 time in total.

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip »

Is one possibly in global space and the other in local space?

LetterRip

RRuiz
Posts: 0
Joined: Wed Apr 20, 2005 4:08 am

Post 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. :( .

RRuiz
Posts: 0
Joined: Wed Apr 20, 2005 4:08 am

Post 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

Post Reply