ok thx, i try it... martin
On Nov 26, 10:04 am, Fabrice3D <[email protected]> wrote: > this was pseudo code, > I assume here you do know how to generate/load/access a bitmapdata > object. > If not reffer to AS3 general documentation. > > > is this possible in away with the api, like this "var > > bitBump:BitmapData = bumpmapgenerator(source);" > > no. use the code provided in previous mail > just change these line with non-pseudo code > > > bm:BitmapData --> bumpmap > > var bm:BitmapData = someFunctionthatReturnMeTheSourceBitmapData or > BitmapDataObject. > > b & m stands for this example as Bump Map > n & m stands for this example as Normal Map > > Fabrice > > On Nov 25, 2009, at 10:42 PM, martin wrote: > > > this is clear > > + var nmg:NormalMapGenerator = new NormalMapGenerator(); > > + bm:BitmapData --> bumpmap > > + nm:BitmapData --> normalmap > > + nm = nmg.applyBump(bm, nm); > > but this line "+ bm:BitmapData --> bumpmap" - i want does't use a > > library source, i want to creat at runtime a bumpmap from my texture. > > is this possible in away with the api, like this "var > > bitBump:BitmapData = bumpmapgenerator(source);" > > thx
