Wow! You guys are truly awesome! Thanks tarwin, savagelook, Peter, and Justin!!! I've never been in a more helpful, quick responding, or collaborative forum than this one. I usually hate trying to ask questions in forums cause I know I'll never get a response, but this is a great forum; keep it up! :-D
I'm going to try with just the ColorMaterial method + ownCanvas=true & lowering alpha + INTERSECTING_OBJECTS. It seems to be working pretty well and I am afraid it'll get too slow if i add Bitmap or Movie materials because I plan to create multiple "lights" this way on the stage. I am also playing with the movePivot property so I can use rotationX/Y/ Z properties to move the "light". I'm still figiting with it; trying to work in 3D space is tricky to place objects and move them the way you picture it in your head. :-P Again thank you! On Mar 31, 6:34 am, Peter Kapelyan <[email protected]> wrote: > Hey savageloook, > > You are in fact correct, you can also change the alpha by creating your > cone, and using a PNG or graphic with an alpha already in it. > > Cwpeter, > > As well another way around is to create the bitmapdata runtime, and just > swap out the material every frame (or when needed). > > Last thing to keep in mind is the cone might look pretty flat, to avoid that > you might need to set bothsides=true to the material, and or use a different > "back" material, since other wise you won't see the depth of the cone. > > Also, you might need to use INTERSECTING_OBJECTS renderer to see the cone > get cut by the floor plane, but you are now talking about slowing the scene > (FPS) down a lot. > > Last but not least, you would need to create the shiny part on the floor, > and you got me there, I am all out of ideas . Maybe with some tricky > calculation, or something someone else comes up with that is super simpel > that I am overlooking too :) > > -Peter > > On Wed, Mar 31, 2010 at 9:26 AM, savagelook > <[email protected]>wrote: > > > > > Let me rephrase my original statement... > > > "Chances are someone smarter than me can tell you how to do this > > using > > just an away3d cone and some away3d material... in embarrassingly > > simple fashion." > > > On Mar 31, 9:19 am, Peter Kapelyan <[email protected]> wrote: > > > Try one of these two: > > > > myCone.ownCanvas=true; > > > myCone.alpha=.5; > > > > or use a bitmapmaterial for the cone then say > > > > myCone.material.alpha=.5; > > > > These should work, let me know > > > -Peter > > > > On Wed, Mar 31, 2010 at 4:51 AM, cwpeter <[email protected] > > >wrote: > > > > > Question, how can I get the cone to render the alpha property > > > > correctly? > > > > > I tried using a cone, but when I lower the alpha property, I don't see > > > > any change in opacity of the cone. I have tried PhongColorMaterial, > > > > ColorMaterial, and ShadingColorMaterial, but all have same issue. > > > > > Any help would be greatly appreciated. And, sorry for what seems like > > > > such a noob question. :-) > > > > > On Mar 30, 9:42 pm, cwpeter <[email protected]> wrote: > > > > > Thanks! I'll try theconeidea; didn't think of that. :) > > > > > > On Mar 30, 6:12 am, savagelook <[email protected]> wrote: > > > > > > > It might be best to just try and create acone(or whatever shape you > > > > > > want your light to be) and play with transparency gradient > > materials > > > > > > in a modeling program to get the desired effect. > > > > > > > On Mar 30, 8:13 am, tarwin <[email protected]> wrote: > > > > > > > > This is not something you could easily do, and is probably best > > done > > > > > > > with some sprites rather than a light itself. This kind of thing > > is > > > > > > > normally done in a non-real-time 3D program, or with some > > technical > > > > > > > trickery in modern game engines. > > > > > > > > On Mar 30, 6:24 pm, cwpeter <[email protected]> > > wrote: > > > > > > > > > Hello, I am new to Away3D and I am trying to make a spot light > > type > > > > of > > > > > > > > light on the stage where you can see the light beam as it > > crosses > > > > the > > > > > > > > room (dust/particles in the light path reflecting light type of > > > > > > > > affect) and be able to move/rotate the light so that it hits > > > > different > > > > > > > > angles of the stage. > > > > > > > > > Here is an example of what I would like to create: > > > >http://www.youtube.com/watch?v=43G6AT3pL1g&feature=related > > > > > > > > > I have been playing with PointLight3D, it's radius, x, y, z, > > and > > > > > > > > rotationY properties to achieve the affect, but i only ever see > > one > > > > or > > > > > > > > two triangles with the color, and never a circular beam like I > > > > would > > > > > > > > imagine a PointLight with a particular radius might have. Any > > help > > > > > > > > would be greatly appreciated. Here is a code snippet of what I > > have > > > > > > > > been trying: > > > > > > > > > private function init3d():void { > > > > > > > > ... > > > > > > > > // PointLight Front 1 & 2 > > > > > > > > _lightFront = new PointLight3D(); > > > > > > > > _lightFront.color = 0x800080; > > > > > > > > //_lightFront.ambient = 0.2; > > > > > > > > //_lightFront.diffuse = 0.75; > > > > > > > > //_lightFront.specular = 0.1; > > > > > > > > _lightFront.x = -(_roomWidth / 8); > > > > > > > > _lightFront.y = _roomHeight * 0.8; > > > > > > > > _lightFront.z = _roomWidth / 4; > > > > > > > > _lightFront.radius = _roomWidth / 100; > > > > > > > > _lightFront.lookAt(new Number3D(0, 0, _roomWidth / 2)); > > > > > > > > > _lightFront2 = new PointLight3D(); > > > > > > > > _lightFront2.color = 0x0080FF; > > > > > > > > //_lightFront2.ambient = 0.2; > > > > > > > > //_lightFront2.diffuse = 0.75; > > > > > > > > //_lightFront2.specular = 0.1; > > > > > > > > _lightFront2.x = _roomWidth / 8; > > > > > > > > _lightFront2.y = _roomHeight * 0.8; > > > > > > > > _lightFront2.z = _roomWidth / 4; > > > > > > > > _lightFront2.radius = _roomWidth / 100; > > > > > > > > _lightFront2.lookAt(new Number3D(0, 0, _roomWidth / 4)); > > > > > > > > ... > > > > > > > > > } > > > > > > > > > ... > > > > > > > > > private function onEnterFrame(e:Event):void { > > > > > > > > ... > > > > > > > > > _lightFront.rotationY += 5; > > > > > > > > _lightFront2.rotationY += 5; > > > > > > > > > ... > > > > > > > > > } > > > > -- > > > ___________________ > > > > Actionscript 3.0 Flash 3D Graphics Engine > > > > HTTP://AWAY3D.COM > > > -- > > To unsubscribe, reply using "remove me" as the subject. > > -- > ___________________ > > Actionscript 3.0 Flash 3D Graphics Engine > > HTTP://AWAY3D.COM
