AtVector T; AiV3Normalize(T, sg->dPdv); AtVector c; AiV3Cross(c, a, b); AtColor color; AiColorLerp(color, sg->v, root_color, tip_color); AtColor t; AiColorClamp(t, transmittance, 0, 1);Into this:
AtVector T = AiV3Normalize(sg->dPdv); AtVector c = AiV3Cross(a, b); AtColor color = AiColorLerp(sg->v, root_color, tip_color); AtColor t = AiColorClamp(transmittance, 0, 1);Note that we haven't removed anything from the API, we have only added new symbols. Existing code using the older C-style macros should compile without changes. However, the older macros are now deprecated and will eventually be removed in a major release. The arithmetic macrosAiV3Add(), AiColorScale(), etc have also been deprecated in favor of the overloaded operators +, *, etc which are much easier to use and result in much more readable code. (trac#2160)
AtColor c; c[0] = 1.f; // equivalent to: c.r = 1.f; float b = c[2]; // equivalent to: b = c.b; AtPoint point; p[0] = 1.f; // equivalent to: p.x = 1.f; float y = p[1]; // equivalent to: y = p.y;
Ticket | Summary | Owner | Priority | Version | Created | Modified |
---|---|---|---|---|---|---|
#2136 | Ignore 'abort_on_license_fail' when 'skip_license_check' is enabled | angel | major | 3.3 | 8 weeks | 8 weeks |
#2141 | NaNs/Infs at low roughness settings in the standard shader | alan | major | 3.3 | 7 weeks | 4 weeks |
#2146 | Python binding for AiArray{Set|Get}Mtx() crashes | oscar | major | 3.3 | 6 weeks | 3 days |
#2149 | framebuffer memory not accounted for in the statistics | marcos | major | 3.3 | 5 weeks | 5 weeks |
#2161 | NaNs in transmittance effects of the standard shader | alan | major | 3.3 | 3 weeks | 3 weeks |
#2166 | specular_anisotropy affecting roughness of isotropic BRDFs in the standard shader | alan | major | 3.3 | 3 weeks | 12 days |
#2170 | Crash when the color parameter of a quad light is mapped with MIS on and a volume_scattering atmosphere shader | alan | major | 3.3 | 2 weeks | 6 days |
#2181 | fully transparent surfaces at max auto transparency depth causing artifacts | alan | major | 3.3 | 6 days | 4 days |
#2182 | AiParseParameterString() not thread safe | alan | major | 3.3 | 4 days | 4 days |