[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21768] branches/blender2.5/blender: 2.5: Texture Filtering

jmsoler at free.fr jmsoler at free.fr
Tue Jul 21 18:56:45 CEST 2009


Selon jmsoler at free.fr:

> Selon Brecht Van Lommel <brecht at blender.org>:
>
> > Revision: 21768
> >
> ...
> <snip>
> ...
> >
>
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21768
> > Author:   blendix
> > Date:     2009-07-21 15:20:35 +0200 (Tue, 21 Jul 2009)
> >
> > Log Message:
> > -----------
> > 2.5: Texture Filtering
> >
> ...
> <snip>
> >
> branches/blender2.5/blender/source/blender/render/intern/source/imagetexture.c
> <snip>
> ...
>
>
> Hi, to build on msvc,
> you should add this : #include "BLI_arithb.h"
> somewhere at the beginning of the file imagetexture.c.
>
> And these lines at the beginning of the BLI_arithb.h file
>
> #ifndef M_E
> #define M_E		2.7182818284590452354
> #endif
> #ifndef M_LOG2E
> #define M_LOG2E		1.4426950408889634074
> #endif
> #ifndef M_LOG10E
> #define M_LOG10E	0.43429448190325182765
> #endif
> #ifndef M_LN2
> #define M_LN2		0.69314718055994530942
> #endif
> #ifndef M_LN10
> #define M_LN10		2.30258509299404568402
> #endif
>
>
>  ...
>

at the line 1346 : levf = logf(maxd)*(float)M_LOG2E;

this modif is also needed :
	#ifndef WIN32
		levf = logf(maxd)*(float)M_LOG2E;
	#else
		levf = log(maxd)*(float)M_LOG2E;
	#endif


More information about the Bf-committers mailing list