Outer glow, stroke or outline effect.

Software: Away3D 4.x

Xin, Newbie
Posted: 09 August 2012 07:36 AM   Total Posts: 1   [ # 16 ]
Stephen Burgess - 26 July 2012 10:10 PM

Did anyone figure out how to add a simple glow like the planets have here: http://bruno-simon.com/src/normal/img/articles/solarSystem3D.html  ?

Anyone has idea of this ?

Thanks a lot in advance!

 

   

trickeyd, Newbie
Posted: 12 August 2012 03:59 PM   Total Posts: 2   [ # 17 ]

I am looking for this too!

 

   

Avatar
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?

 

   

Avatar
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 
int 0_loader.numChildren; ++i
   
{
    
var mesh:Mesh Mesh(_loader.getChildAt(i));
    
mesh.material.repeat true;
    (
mesh.material as TextureMaterial).addMethod(new OutlineMethod(0x88ee4410falsefalse));
   

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!

 

   

Avatar
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. wink

 

   

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 ]

Have a look at the Globe Demo.
https://github.com/away3d/away3d-examples-fp11/blob/master/src/Intermediate_Globe.as
Look at how the atmosphereMaterial is done.

 

   

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(0x6666661121233falsefalse)]

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?

 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X