View unanswered posts | View active topics It is currently Wed May 15, 2024 9:51 pm



Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
 Lagless continuous laser 
Author Message
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Lagless continuous laser
Because that lags like hell?


Wed Jun 13, 2012 8:08 pm
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: Lagless continuous laser
I'm not being clear, my apologies.

Every 100 pixels, create new sprite object at the offset.

I'll look at the script and see what's up. That seems needless.

[EDIT]

OK, so glows.ini makes reference to 999 BMP files. Why not just keep referring to the first?

I'll fix that and see what's up with CastObstacleRay; wanted to test that.

[/EDIT]


Wed Jun 13, 2012 8:19 pm
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: Lagless continuous laser
Got most of it working already, and the extra bitmaps aren't necessary, but haven't fixed the angle for the beam segments yet, I'm still trying to figure out what's connected to what. Here's a working B27 script:



Wed Jun 13, 2012 8:50 pm
Profile

Joined: Fri Dec 30, 2011 3:33 am
Posts: 276
Reply with quote
Post Re: Lagless continuous laser
OK, here's a working lagless laser that can be used continuously if you want.

The version I've coded up here is not a continuous beam, but uses discrete shots.

Why? Because a truly continuous laser would be pretty game-breaking in terms of balance, imho, and I really don't see how you can make it lagless and still have a decent visual effect, if you're going to allow it to fade over a few gameframes, due to alpha testing.

But you can make it that way without serious problems.

File size is down to 4K, code's simpler and probably can get even simpler than this did; I added a few visual bells and whistles for the heck of it. The laser, like Mehman's original design, will not tear up terrain. Credit to Azukki and Mehman for being pioneers in this area and providing source :grin:


Attachments:
Laser.rte.zip [3.21 KiB]
Downloaded 208 times
Thu Jun 14, 2012 5:20 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.099s | 16 Queries | GZIP : Off ]