Hi all,
Is there a way to get an outer glow or stroke effect around an object to highlight it as selected?
Outer glow, stroke or outline effect.Software: Away3D 4.x |
||
Hector, Sr. Member
Posted: 22 December 2011 08:00 PM Total Posts: 137 |
||
mstaebler, Newbie
Posted: 29 December 2011 04:54 PM Total Posts: 4 [ # 1 ] Hi Hector, you should be able to apply the GlowFilter to your 3d object.
function initEventListeners():void |
||
Hector, Sr. Member
Posted: 29 December 2011 05:59 PM Total Posts: 137 [ # 2 ] Thanks mstaebler, I have seen this in the Hell Knight demo: UPDATE: It creates a kind of drop shadow effect, only visible with the camera with a low angle, so not an outline, maybe a method for another effect. |
||
|
||
|
||
Hector, Sr. Member
Posted: 13 March 2012 09:44 AM Total Posts: 137 [ # 5 ] Hi view, I haven’t had time to check all the new v4 beta capabilities yet. I’m still using v3.6 for the final application until I can solve the different issues I have with v4, but I’m still interested in getting this effect if possible. In my case I need it for a plane (2D) extruded line added to a plane. What I did to get the highlight effect in v4 is create another extruded line a bit thicker (and different colour) and place it right under the main line. Then make it visible or invisible to simulate the ‘selected’ effect. This won’t work nice for 3D objects, though. Qbrain, is it possible to get an outline effect in a 3D object using Away v4 beta? |
||
view, Newbie
Posted: 13 March 2012 09:47 AM Total Posts: 12 [ # 6 ] hi Qbrain.
primitiveMaterial = new ColorMaterial(colours[i]); |
||
|
||
|
||
|
||
happy3d, Newbie
Posted: 21 March 2012 02:00 PM Total Posts: 6 [ # 10 ] This is my way..Maybe it’s stupied [Embed(source=”/../embeds/router.png”)] var routerBitmap:BitmapData = new RouterSkin().bitmapData; routerBitmap.applyFilter(routerBitmap,routerBitmap.rect,new Point(),new GlowFilter(........)); routerSkin = new BitmapMaterial(routerBitmap); |
||
Dr Schizo, Newbie
Posted: 21 March 2012 05:26 PM Total Posts: 11 [ # 11 ] Thanks a lot for the answer. I tried to apply this solution, but it throw an error (the filter is not correct) When I triy with a BlurFilter, it work, but not with a GlowFilter. Here is the code I use:
protected function applyTexture(data:BitmapData, mesh:Mesh):void { Anyway, even if it’s work, it is only going to change the bitmapData, isn’t it? It will change something if it is an inner glow and notthing for an outer glow (the effect is “outside” the bitmapdata). In any case, it will make my mesh to glow like Earth in this example (except if it is a plane): http://bruno-simon.com/src/normal/img/articles/solarSystem3D.html Am I right or wrong? |
||
Mr Margaret Scratcher, Sr. Member
Posted: 21 March 2012 11:38 PM Total Posts: 344 [ # 12 ] Replying so I get to hear of any solution to this… |
||
John Brookes, Moderator
Posted: 22 March 2012 12:48 AM Total Posts: 732 [ # 13 ] Well for planetry atmosphere type thing the easiest method is to use a plane facing the camera.
|
||
Dr Schizo, Newbie
Posted: 24 March 2012 02:22 AM Total Posts: 11 [ # 14 ] Thanks you a lot for you answer, that was really useful. It is quitte complicated to set up compared to the away 3D 4 filter, but I guess it’s the only way. I wanted to be able to modify dynamically the color of the atmosphere. I created a png image representing a red circle with a red outer glow and I appied a ColorMatrixFilter to change the color of the image (by replacing the red tint by another one).
var data:BitmapData = mybitmapdata; Then on everyframe, I made the plane to face the camera.
mesh.lookAt(camera.position); |
||
Stephen Burgess, Newbie
Posted: 26 July 2012 10:10 PM Total Posts: 1 [ # 15 ] 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 ? |