RE: [Flashcoders] textures
Cryzto, I think this gets you one step closer. Bump Mapping in Flash http://drawk.wordpress.com/2007/04/18/bump-mapping-in-flash/ found via: 3D Materials, Texturing and Mapping in AS3 and the Limits of Flash and Software Rendering http://drawk.wordpress.com/2007/07/07/3d-materials-texturing-and-mapping-in- as3-and-the-limits-of-flash-and-software-rendering/ - Flash 8 Example : 3d BumpMapping using Filters. (source included) http://www.unitzeroone.com/blog/flash_examples/flash_8_example_3d_bumpmappin g_using_filters_source_included.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cristo @ Cryzto Sent: Tuesday, July 17, 2007 6:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] textures If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] textures
no problem, been there:) On 7/18/07, Cristo @ cryzto.ch [EMAIL PROTECTED] wrote: I did check the manual, but apparently not good enough... :) I'm kind in a hurry (project 4 school), that's why I didn't really have the time for checking all manuals... Thanx for the answer JC Cristo [EMAIL PROTECTED] -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Hans Wichman Gesendet: Mittwoch, 18. Juli 2007 06:46 An: flashcoders@chattyfig.figleaf.com Betreff: Re: [Flashcoders] textures Hi, I have an interesting question too, did you check the manual? :) beginBitmapFill (MovieClip.beginBitmapFill method) public beginBitmapFill(bmp:BitmapData, [matrix:Matrix], [repeat:Boolean], [smoothing:Boolean]) : Void Fills a drawing area with a bitmap image. The bitmap can be repeated or tiled to fill the area. greetz JC On 7/18/07, Cristo @ Cryzto [EMAIL PROTECTED] wrote: Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 -- Ich verwende die kostenlose Version von SPAMfighter für private Anwender, die bei mir bis jetzt 1283 Spammails entfernt hat. Bezahlende Anwender haben diesen Hinweis nicht in ihren E-Mails. Laden Sie SPAMfighter kostenlos herunter: http://www.spamfighter.com/lde No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17.07.2007 18:30 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] textures
Hi, I have an interesting question too, did you check the manual? :) beginBitmapFill (MovieClip.beginBitmapFill method) public beginBitmapFill(bmp:BitmapData, [matrix:Matrix], [repeat:Boolean], [smoothing:Boolean]) : Void Fills a drawing area with a bitmap image. The bitmap can be repeated or tiled to fill the area. greetz JC On 7/18/07, Cristo @ Cryzto [EMAIL PROTECTED] wrote: Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] textures
Without practical knowledge, I would suggest either flash.filters.DisplacementMapFilter or mc.beginBitmapFill along with mc.blendMode. // // DisplacementMapFilter // Maybe something like these mixed with a tiled bitmaps? http://www.reflektions.com/miniml/template_permalink.asp?id=334 http://lab.andre-michelle.com/panorama http://lab.andre-michelle.com/gooify http://nodename.com/blog/2006/01/16/psyarks-displacementmapfilter-tutorial/ // // beginBitmapFill // The example below creates a tiled Bitmap image the size of an attached vector MovieClip, attaches a duplicate to use as the Bitmap's mask, and applies a blendMode from the Bitmap MovieClip over the base vector image. var bmp = flash.display.BitmapData.loadBitmap( 'bitmap_linkageID' ); /*actual jpg or png*/ var base = this.attachMovie ( 'vector_image_linkageID3', 'base', this.getNextHighestDepth() ); var mask = this.attachMovie ( 'vector_image_linkageID3', 'mask', this.getNextHighestDepth() ); var bmp_mc = this.createEmptyMovieClip ( 'bmp_mc', this.getNextHighestDepth() ); var useBitmapFill = true; var adjustScale = false; var blend_mode = 'difference'; if ( useBitmapFill ) { var matx = new flash.geom.Matrix(); if ( adjustScale ) { base._xscale = mask._xscale = bmp_mc._xscale = 200; /*test*/ // adjust for scale distortion matx.a = 1 / (bmp_mc._xscale/100); matx.d = 1 / (bmp_mc._yscale/100); } bmp_mc.clear(); bmp_mc.beginBitmapFill(bmp, matx, true, false); var W = base._width || mask._width; var H = base._height|| mask._height; with (bmp_mc) { moveTo(0, 0); lineTo(W, 0); lineTo(W, H); lineTo(0, H); lineTo(0, 0); endFill(); } } else { bmp_mc.attachBitmap ( bmp, bmp_mc.getNextHighestDepth() ); } bmp_mc.cacheAsBitmap = true; mask.cacheAsBitmap = true; bmp_mc.setMask ( mask ); bmp_mc.blendMode = blend_mode; _ Jesse Graupmann www.jessegraupmann.com www.justgooddesign.com/blog/ _ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cristo @ Cryzto Sent: Tuesday, July 17, 2007 6:58 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] textures Hi everybody! I've surely got a interesting question: If I've got a plain vector-rectangle (with radial-color) and want to give it a texture (-fill) per actionscript. how can I achieve that? Is it even possible? Thnx 4 answering. Cryzto _ Ich verwende die kostenlose Version von SPAMfighter, die bei mir bis jetzt 1341 Spammails entfernt hat. Fur private Anwender ist SPAMfighter vollig kostenlos! Jetzt gratis testen: hier klicken http://www.spamfighter.com/lde . ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com