[Papervision3D] How to draw a border around a plane?
azupko at zupko.info
azupko at zupko.info
Tue Nov 6 07:31:30 PST 2007
I think i read someone suggested this already - but I never saw anything
else on it. WHy don't you just draw the border onto the material's
bitmap? Or for that matter just draw the border onto the loaded bitmap
before you use it in the material?
> I think i cant use moviescene3d. I can't just change the scene variable
> names to MovieScene3D. cuz now i have another errors. its now not
> working like it was before if i just change the scene to MovieScene3D.
> events.. and stuff... damnit..what a problem......
> i dont want to use a php script that draws a border around image cuz its
> very slowwwwwww
>
> John Dyer wrote:
>> To do this you need to use a MovieScene3D rather than a Scene3D. The
>> MovieScene3D draws every DisplayObject3D (such as a Plane) in its own
>> MovieClip (the .container property) to which you can apply filters.
>>
>> >>> On 11/6/2007 at 5:48 AM, in message <473054A4.6060402 at mail.ru>,
>> grapefruitlips <grapefruitlips at mail.ru> wrote:
>> it gives an error:
>> 1119: Access of possibly undefined property filters through a
>> reference with static type org.papervision3d.objects:Plane.
>> and this too:
>> p.container.filters=.....
>> (
>>
>> o renken wrote:
>>> and iam missing this line of code:
>>>
>>> var glow:GlowFilter = new GlowFilter(0xCC0000, 0.5, 10, 10, 2, 3);
>>> p.filters = [glow]; <---------- (!!)
>>>
>>> its AS2 but i guess its the same in AS3
>>>
>>> 2007/11/6, jlm at justinfront.net <mailto:jlm at justinfront..net>
>>> <jlm at justinfront.net <mailto:jlm at justinfront.net>>:
>>>
>>> >From AS2 experiance
>>>
>>> filters can be applied to plane.container
>>> lineTo's can be drawn and applied to the material.bitmap
>>>
>>> I am sure similar in AS3
>>>
>>>
>>> Justin
>>>
>>>
>>> Quoting o renken <renkster at gmail.com <mailto:renkster at gmail.com>>:
>>>
>>> > I thought about the same some days before. my idea was to use the
>>> > glow-filter with full-alpha... but i havent tried it. maybe it
>>> worth it to
>>> > have a try?
>>> > olee
>>> >
>>> > 2007/11/6, grapefruitlips <grapefruitlips at mail.ru
>>> <mailto:grapefruitlips at mail.ru>>:
>>> >>
>>> >> Hi!
>>> >> Does anybody know how to draw a white border (20px) around a
>>> plane with
>>> >> precise bitmap material?
>>> >>
>>> >> var material:PreciseBitmapMaterial = new PreciseBitmapMaterial(
>>> >> LoadedImage.bitmapData);
>>> >> material.interactive = true;
>>> >> material.oneSide = true;
>>> >> material.smooth = true;
>>> >> p = new Plane( material, 500, 350);
>>> >> _rootNode.addChild(p);
>>> >>
>>> >> Thanks
>>> >>
>>> >> _______________________________________________
>>> >> Papervision3D mailing list
>>> >> Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
>>> >> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > http://www.renkster.de/#/about/
>>> >
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org <mailto:Papervision3D at osflash.org>
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>>
>>>
>>>
>>> --
>>> http://www.renkster.de/#/about/
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Papervision3D mailing list
>> Papervision3D at osflash.org
>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
More information about the Papervision3D
mailing list