[Bf-committers] For render exporters
Ramon Carlos Ruiz
ramoncarlosruiz at gmail.com
Fri Jun 16 14:56:50 CEST 2006
Hi all , This may not be very useful but I was doing some clean up to my
povray exporter and I realize that for use normals from VLR_list I have to
do a mult. operation with matrix (the same as the coordinates co) and then
normalize so what if I do not need to do any matrix operation not even in
the co, that will be better so I track the source of my problems to the
convertblender.c in the init_render_mesh and I put a small condition after
the matrix assignation in the mat and imat variable and put something like
if (re->r.renderer==R_POVRAY){
Mat4One(mat);
MTC_Mat4Invert(imat, mat);
}
same thing in render_static_particle_system and init_render_mball functions
so no more matrix operation on the exporter side in the mesh area. The same
thing could be done for yafray. I know that the multiplication of the matrix
and the re-normalize of the n is not very time consuming but why doit if we
can skip it ;).
Un Saludo
RCRuiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.blender.org/pipermail/bf-committers/attachments/20060616/4354c81c/attachment.html
More information about the Bf-committers
mailing list