Data Realms Fan Forums
http://45.55.195.193/

Forcing an object to appear in front of terrain.
http://45.55.195.193/viewtopic.php?f=1&t=19531
Page 1 of 1

Author:  Petethegoat [ Tue Aug 17, 2010 5:37 pm ]
Post subject:  Forcing an object to appear in front of terrain.

Hey all, I'm looking into some experimentation with line-of-sight.
I'm fully aware that (in theory) it'll be in the next build, which is why I'm taking a very simple approach.

Basically, I figure that I'll just have a MOSRotating, MOSParticle or whatever, that is just a big black box to obscure one corridor/area.
When the player character touches that box, it sets it's frame to a transparent one, and spawns in any enemies that would be in the corridor.

The only requirement is that the box, whatever it is, needs to appear above terrain.
Is this possible?

Author:  Areku [ Tue Aug 17, 2010 7:36 pm ]
Post subject:  Re: Forcing an object to appear in front of terrain.

To put it simply, no. Terrain data is currently hardcoded to appear over anything else, so I can't think of any way to make it work. You could use a hmungous amount of glows, but that'd hardly be efficient at all.

Author:  Petethegoat [ Tue Aug 17, 2010 8:25 pm ]
Post subject:  Re: Forcing an object to appear in front of terrain.

Oh dear.
I've thought of a somewhat horrifying (but potentially better) solution.

Essentially, it relies on everything involving field of view being underground.
You'd have a top tunnel entrance piece already visible, which an MOPixel that, on line-of-sight with the player actor, spawns in two MOSRotatings, one of which clears the centre of the next piece of the tunnel, and the other one settles as the tunnel walls.
Overly complicated, but it might be the only option.

If you can see any flaws or problems with this method, feel free to point them out.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/