ActionScript 2.0 :: Line Of Site, Raycasting And Realistic Visability?

Apr 5, 2006

Ever notice how if your sitting in a room, and theres a wall in front of you, you cant see whats on the other side of that wall (and if you can, you should be here...) I'm working on a version of icio's "Point-to-Point Line-of-Site" Thingy.

Think: Top down guy walking around in a building, with multiple rooms. He cant see whats in the room (since like I said, the walls are in the way), though, he can see into the room through the open dooor, but only a small part of it (since the door is only a thin opening in what is an otherwise large room.)

What I want to do is make realistic, dynamic lighting, based on (I would assume) raycasting or lone of sight or some similar godlike power.

I edited Icio's demo with MSPaint showing what I am talking about. I've been thinking about ways to do it and have thought of a few different ways that would be, for the most part, processor intensive by searching around for visable points based on our hero's position and what he can "see" Any one have any ideas for an easy(for the processing computers atleast) way to do this?

View 14 Replies


Similar Posts:


ActionScript 3.0 :: Make A Mouse Trace Line (type) To Move Forward In A Flash Site?

Feb 4, 2011

I'm wondering how I would go about making a Mouse Trace, on a line that's preset but my choosing to let people enter into my Flash and/or progress throughout it. Basically, I have a picture of say, the number 5, I want to be able to have people use the mouse cursor to trace the 5 from one end to the next, and once completed the sites move forward. Though, I will be using my company logo which is a bit more advanced than a single number or letter form. If no one is sure what I'm talking about I've added a picture to demonstrate what I'm trying to do. Another idea I have if this one can't be accomplished, is a slide bar.Basically, it would look like a timeline control in say, VLC, and I would have the user drag a button from one side to the next to unlock and move forward. Though that may seem a bit more simple that my main idea, I would also like to be able to get really advanced with this second function and make a series of slide bars, say, 3, and they have to be slid in a certain manner, like slide bar 1,3,2 then it unlocks and moves forward.

View 1 Replies

ActionScript 2.0 :: Code In Flash To Read It Line By Line But Its Only Showing The First Line Out Of 5 Lines?

Dec 17, 2009

i have an xml file and i want my code in flash to read it line by line but its only showing the first line out of 5 lines.Below is the code:

var NigeriaNumber:Number;
var stateName:String;
var year:String;

[code].....

View 0 Replies

Realistic Clouds In Header?

May 5, 2010

can u tell me how to do realistic clouds in this header ? i will be very greatfull for any tip (sorry for my english ) my header (i love dogs and i projecting a site about them )

View 3 Replies

ActionScript 2.0 :: [CS3] Realistic Lightbulb Swing?

Feb 7, 2009

im working on a project tats in a dark rook ive ot the lightbuld to flicker and glow but i want it to swing realsitcly across the screenas if it

View 1 Replies

Flash :: Make A Realistic Fire Using Pro?

Nov 11, 2011

when i saw this website. I learn some techniques but i really love that fire effect. how to do that?Or any other program. The site:[URL]..

View 1 Replies

Physics SDK For Flash With Realistic Model

Feb 1, 2010

There are some open SDK for Flash, that could be done. Rotating photos with physics? Examples of such programs BumTop, ePic, Coloris (no physics). The photo on the plane, it can be moved to the real physics?

View 1 Replies

Actionscript 3.0 :: Create The Realistic Smoke / Fog?

Feb 11, 2011

how to make realistic smoke / fog. All the tutorials I have seen are ok, but not exactly what I am looking for. I want to know how to make the smoke look like its reacting to the resistance of air thus changing the shape of the smoke as it moves and what not. [URL]Notice how the smoke is going down and also to the right. The smoke moving downward even reacts to the flow stream of the one going to the right and slightly alters its movement ( as if it was hitting a current in water ).

View 1 Replies

ActionScript 2.0 :: Realistic Car Driving Physics?

May 23, 2005

i was just wondering, how could you make realistic car driving, with regard to turning, braking, backing up etc.....

View 4 Replies

ActionScript 2.0 :: How To Get Realistic Ball Bounce

Jul 27, 2005

I'm making a ball that are going to bounce realistic..But it doesn't!

View 4 Replies

IDE :: Realistic Door Opening Effect?

May 22, 2008

The look I am going for is a set of doors that will open to reveal the website, the animation part will give it the look like the doors are opening and then it will go to the site. So two questions.

1) What is the best way to give a realistic door opening effect?

2) How can I make it go to the website once the door opening effect is complete?

View 6 Replies

ActionScript 3.0 :: Realistic Movement Along Path?

Jun 6, 2009

I'm making a game that involves spaceships following waypoints. Rather than making them move straight to a waypoint,turning, and then moving straight to the next one, it'd be nice to have them follow some sort of bezier curve/path along all of the waypoints.

View 4 Replies

ActionScript 3.0 :: Realistic Car/Vehicle Movement?

Mar 13, 2010

I'm attempting to recreate the old game Asteroids, just as a little project for myself (no angry clients waiting ). I'm controlling the triangle by using KeyboardEvents but while holding down the shoot button (Space Bar) I am unable to go forward and turn left, however I have no problems going forward and turning right at the same time It feels as though the keys are becoming "sticky".

View 5 Replies

Actionscript 3 :: Get Some Realistic Photo Filters In Flash?

Apr 27, 2011

how to reproduce the Photoshop Image/Adjustments/Photo filters... in Flash with AS3. Is the same result that you get when you put a filter over the lenses of a camera. I exclude using tint and hue from the start because I think could get this from code by using color matrix class or convolution filter

View 1 Replies

IDE :: Realistic Rope (Tied Between Two Points) Simulation?

Feb 1, 2006

Where do I can find an example or a tutorial of a realistic simulation of a rope tied between two points? I need to make something similar to the interface of Reason, the music app.

View 6 Replies

ActionScript 2.0 :: Realistic Drag + Rotate MC Around The Stage?

Jun 29, 2007

Been working on this for days and can't quite get it. Place a standard playing card or something similar on your desk in front of you. Lightly press your finger onto a random point on that card and drag it around your desk. See how it rotates towards the direction you are moving and such? I want to simulate that behavior.

View 8 Replies

ActionScript 2.0 :: Realistic Ball Bounce & Spin?

Jul 27, 2009

Just getting it to spin off and react realisticly with the wall would add a whole new dimention, but its a bit beyond me (*noob!*). It calls for some collision recognition I think, but the forums I've read so far on the topic are just too complex. My aim is also to also bounce the ball off the cursor.

View 3 Replies

ActionScript 2.0 :: A Realistic Rising Air Bubbles Animation With (f5)?

Sep 3, 2003

I want to make a light animation where air bubbles come out of a bucket (which slowly moves from left to right) and they float till a certain height untill they dissolve (fade to 0%). I want to have 3 different kind of bubble MC's which I want to generate (duplicate MC???) at random. Further I don't want them to clog eachothers, so they should not be able to move on top of eachothers.For filesize reasons I want to do this as much as possible with an actionscript...

View 14 Replies

ActionScript 3.0 :: Way To Get Some Realistic Photo Filters In Flash?

Apr 27, 2011

how to reproduce the Photoshop Image/Adjustments/Photo filters... in Flash with AS3. Is the same result that you get when you put a filter over the lenses of a camera. I exclude using tint and hue from the start because it doesn't

View 2 Replies

ActionScript 2.0 :: Creating Realistic Flight Of An Arrow?

Sep 10, 2004

I'm trying to put together some code that will approximate the arced flight of an arrow.Currently, I've got the code so that the angle of the bow movieclip will move depending upon the position of the mouse.pressing the mousebutton will then fire an arrow at this angle (albeit at a constant speed). I've played around with xmov and ymov in an attempt to introduce inertia and gravity (respectively) and therefore create a more natural flight of the arrow but aren't really getting what I'm after. Added to this, I also need to alter the angle of the arrow clip over the course of it's flight to imitate the charge in orientation (i.e. tarts to point towards the ground in the downward 1/2 of the arc). Code so far is below.

Does anyone have any suggestions? Or even alternatives (such as draw a curve with the curveTo method and then animate the arrow clip along this path?

[Code]...

View 2 Replies

ActionScript 2.0 :: Go To The Opposite Of The _ymouse So That It Appears More Realistic?

Nov 14, 2002

i have this code, generously taught to me by lostinbeta

Code:
onClipEvent (load) {
_x = 0;
_y = 0;[code]....

and i would like it to do exactly the opposite of what it's doing.currently it is set to follow the mouse without using startDrag() and i would like to apply this to a panoramic view that has several pictures sliding past one another .... a lot like lostinbeta's footer. but rather than sliding to the _ymouse i would like it to go to the opposite of the _ymouse so that it appears more realistic.

View 14 Replies

ActionScript 1/2 :: Realistic Random Movement Of Multiple MovieClips?

Feb 21, 2011

here is some of my code:

// 30 fps
var humans = 30;
var hSpeed = 4;

[code].....

View 5 Replies

Actionscript 3 :: Improve The Realistic Movement Of The Pool Game?

Dec 15, 2010

Here is my pool game engine done in Box2dFlash.I would like to make this simulation more realistic as I received mixed opinion from pool experts.Here is my standard wall setting:

var leftWall = _sim.addBox({x:0.9, y:8.15, width: 0.6, height: 11.5, density: 0, fillAlpha: wallAlpha, lineAlpha: wallAlpha});

And of the ball:

_solidBall_7 = _sim.addCircle({x:ballPosX - (ballRadius * 5) - 0.8, y:ballPosY, radius:ballRadius, density: 0.1, linearDamping: 1, isBullet: true, restitution: 0.7, angularDamping: 5, skin: Solid_Bordo});

What other params I might try to improve the realistic movement of the pool game?

View 1 Replies

ActionScript 2.0 :: Continues The LineTo Making A Realistic Skid?

Jun 12, 2005

i have seen it done before in a tutorial which i cant find anymore.what they did is that;

1. when space is pressed it begins a lineTo from the point of an object resembling the back left wheel.

2. from there it continues the lineTo making a realistic skid.

3. after a small amount of time the skids deletes.

View 13 Replies

ActionScript 3.0 :: Flash Rendering A Realistic Psuedo-3d Planet?

Apr 14, 2011

I'm working on generating some planets and moons for a 2d project im working on, these will generate planets procedurally that look somewhat realistic.

Anybody got any tips on improving this or optimising this?, it looks very flat i feel.

[Code]...

View 10 Replies

Flash - Realistic Dice Throwing Animation With Predefined Outcome

Jan 23, 2011

I need to create a small dice game in Flash. The random number generator is external and I have to create a 3D realistic dice animation with that outcome. I'm using Away3D engine and JigLib for physics. So far the best idea I've had is to do many simulations and create a list of outcomes and their corresponding input parameters (initial position, initial orientation and the forces added to the RigidBody). This is not working so well. Sometimes for the same parameters the outcome is different. What is the best way to do this?

View 1 Replies

ActionScript 2.0 :: Realistic FLASH Spotlight Beam Not Using A Circular Mask

Jun 26, 2004

Realistic FLASH spotlight beam, not using a circular mask. I am in desperate need of some information, about realistic spotlights designed with flash. I need the kind that shoot a beam with a round circle on the floor. I have found a great example, at http://www.grisu.com and the owner even shared the fla code with me, but I still don't quite understand how to modify it to work for me. He offered to help, but he only speaks spanish and I only speak English, so we can't communicate.

If you go to his web and view the stage, the beam sweeps the stage and changes the angle and size of the beam. I need a longer and narrower beam. The length of the beam is too short for me, but the idea is just what I need. Does anyone know of any tutorials on this subject? Or possibly other samples so that I may study them in detail.

1. Is a mask necessary to keep all the beams the same length as they scan? As the angle changes, the beam length would change unless a mask or something cuts them off at the floor level always.

2. Motion tween could probably be used to move the beam?

3. Would it be necessary to skew the beam as it sweeps as when it is slanted like that, the width of the beam gets wider as it sweeps away from you and more narrow as it sweeps closer to you.

4. Did you need to use alpha anywhere possobly when the beams cross each other or maybe when it is first turned on?

I would greatly appreciate any advice anyone can give, or steer me in the correct direction for some tutorial information.

View 12 Replies

ActionScript 3.0 :: Flash Fire/Flame Effect With Realistic Movement?

Feb 24, 2011

Im creating a game, and I need to create a realistic flame or fire, like a torch, with fluid movement of thge flame and that moves in a natural way.

View 3 Replies

ActionScript 2.0 :: Realistic FLASH Spotlight Beam, Not Using A Circular Mask?

Jun 26, 2004

Realistic FLASH spotlight beam, not using a circular mask.I am in desperate need of some information, about realistic spotlights designed with flash. I need the kind that shoot a beam with a round circle on the floor. I have found a great example, at r even shared the fla code with me, but I still don't quite understand how to modify it to work for me. He offered to but he only speaks spanish and I only speak English, so we can't communicate. If you go to his web and view the stage, the beam sweeps the stage and changes the angle and size of the beam. I need a longer and narrower beam. The length of the beam is too short for me, but the idea is just what I need.

Does anyone know of any tutorials on this subject? Or possibly other samples so that I may study them in detail. 1. Is a mask necessary to keep all the beams the same length as they scan? As the angle changes, the beam length would change unless a mask or something cuts them off at the floor level always. 2. Motion tween could probably be used to move the beam? 3. Would it be necessary to skew the beam as it sweeps as when it is slanted like that, the width of the beam gets wider as it sweeps away from you and more narrow as it sweeps closer to you. 4. Did you need to use alpha anywhere possobly when the beams cross each other or maybe when it is first turned on?

View 12 Replies

ActionScript 3.0 :: Create Realistic Smoke Coming Out From Back Of A Missile Flying On Stage?

Aug 10, 2009

How to create realistic smoke coming out from the back of a missile flying on stage?

it's for a top-view arcade-type game, where the player shoots a missile from a plane...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved