Forum: Carrara


Subject: someone want a headache? math genius needed maybe =P

anxcon opened this issue on Mar 10, 2006 ยท 3 posts


anxcon posted Fri, 10 March 2006 at 10:45 AM

pax=100; pay=100; paz=100; lab=sqrt(((pax-X)^2)+((pay-Y)^2)+((paz-Z)^2)); pcz=Z+(labsin(NZ90)); b=labcos(NZ90); pcx=X+(bsin(NX90)); pcy=Y+(bsin(NY90)); lac=sqrt(((pax-pcx)^2)+((pay-pcy)^2)+((paz-pcz)^2)); red=asin((lac/2)/lab)*2; ok so i tried to make a formula, math looks right, yet the shader is black, if i put green=1 above all this, then it still shows black, even though it never accually changes green that makes me think its not the math used causing it? all updates installed


julien_chaplier posted Sun, 12 March 2006 at 5:36 AM

I think the ^ operator is not reconize by the parser, you should try with a multiplication instead.

Message edited on: 03/12/2006 05:36


anxcon posted Sun, 12 March 2006 at 10:32 AM

i replaced that with pow(variable,2) dosnt change it, its a bug having to do with long formulas