|
|
trickeyd, Newbie
Posted: 12 August 2012 03:59 PM Total Posts: 2
[ # 17 ]
I am looking for this too!
|
loth, Sr. Member
Posted: 12 August 2012 05:35 PM Total Posts: 236
[ # 18 ]
hum maybe create new view (proxy)
make same scene but with only sphere and color you wan’t
add blur effect on this view
and finaly add the second view with blending on top of your base view
i didn’t try and is not the best solution juste a idea
|
Bram, Newbie
Posted: 12 August 2012 06:14 PM Total Posts: 2
[ # 19 ]
can somebody please explain how i can add a outline to an object loaded via Loader3D?
|
loth, Sr. Member
Posted: 12 August 2012 06:25 PM Total Posts: 236
[ # 20 ]
look in
away3d-core-fp11\src\away3d\materials\methods\OutlineMethod.as
just add this methode to material
|
Bram, Newbie
Posted: 12 August 2012 07:03 PM Total Posts: 2
[ # 21 ]
loth - 12 August 2012 06:25 PM look in
away3d-core-fp11\src\away3d\materials\methods\OutlineMethod.as
just add this methode to material
i now use
_scene.addChild(_loader); for (var i : int = 0; i < _loader.numChildren; ++i) { var mesh:Mesh = Mesh(_loader.getChildAt(i)); mesh.material.repeat = true; (mesh.material as TextureMaterial).addMethod(new OutlineMethod(0x88ee44, 10, false, false)); }
but i seem to get this result (see attachement)
it’s also very laggy
|
trickeyd, Newbie
Posted: 12 August 2012 08:03 PM Total Posts: 2
[ # 22 ]
loth - 12 August 2012 05:35 PM hum maybe create new view (proxy)
make same scene but with only sphere and color you wan’t
add blur effect on this view
and finaly add the second view with blending on top of your base view
i didn’t try and is not the best solution juste a idea
Thanks for you reply.
Just giving this a go but can’t seem to get any blend types working between the two views. I’ve read that they don’t work in conjunction with stage3d. Not in the regular way anyway (ie, _effectsView.blendMode = BlendMode.MULTIPLY).
Any ideas?
Cheers!
|
owntheweb, Jr. Member
Posted: 13 February 2013 02:04 PM Total Posts: 32
[ # 23 ]
+1 for simple glow effects... even though glows are one of the most overused cheesy effects in existence, right up there with drop shadows and bevels. :o
I can put it to good use though for sure.
|
Shaedo, Newbie
Posted: 20 January 2014 01:37 PM Total Posts: 9
[ # 24 ]
This is a VERY 3rd RATE example solution for a sphere:
(with tweaking it can look as effective as the famous bruno-simon’s planets linked previously)
public class PoorGlowExample extends MovieClip { private var view:View3D; private var lightPicker:StaticLightPicker; private var directionalLight:DirectionalLight; public function Main() { private var view:View3D; private var lightPicker:StaticLightPicker; private var directionalLight:DirectionalLight; public function DeletemeMain() { view=new View3D(); view.camera.z=-1000; addChild(view);
directionalLight=new DirectionalLight(); directionalLight.ambient=0.4; lightPicker=new StaticLightPicker([directionalLight]); view.scene.addChild(directionalLight); var sphereMesh:Mesh; var sphereGeometry:SphereGeometry=new SphereGeometry(150); var sphereMaterial:ColorMaterial=new ColorMaterial(0x00FF00,1); sphereMaterial.lightPicker=lightPicker; sphereMesh=new Mesh(sphereGeometry,sphereMaterial); view.scene.addChild(sphereMesh);// constructor code
var glowSphereMesh:Mesh; var glowSphereGeometry:SphereGeometry=new SphereGeometry(165); var glowSphereMaterial:ColorMaterial=new ColorMaterial(0x00FF00,.1);
glowSphereMaterial.lightPicker=lightPicker; glowSphereMesh=new Mesh(glowSphereGeometry,glowSphereMaterial); view.scene.addChild(glowSphereMesh); glowSphereMaterial.addMethod(new RimLightMethod(0xaaaaFF,3,2)); addEventListener(Event.ENTER_FRAME,viewRender,false,0,true); } function viewRender(e:Event):void { view.render(); } } }
|
John Brookes, Moderator
Posted: 20 January 2014 03:04 PM Total Posts: 732
[ # 25 ]
|
veggieman25, Newbie
Posted: 05 February 2016 02:41 AM Total Posts: 12
[ # 26 ]
Hi all, i am trying to create a selection glow on a mesh object.
mymesh.filters = [new GlowFilter(0x666666, 1, 12, 12, 3, 3, false, false)];
returns error
ScenAccess of possibly undefined property filters through a reference with static type away3d.entities:Mesh
How do you apply a glow to a mesh object?
|