Anti-aliased beams ONLY?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Poro
Deadly
Deadly
Posts: 249
Joined: Sun Jan 03, 2010 1:51 am
Location: Don't look in your aft view...
Contact:

Anti-aliased beams ONLY?

Post by Poro »

So another trading jump, and another fire-fight. Again I saw those enticing streaks of red cutting through the space ahead of me, and just had to join the battle.

That got me thinking, for those of us whose GPU can't run shaders, the beams of distant weaponry appear as ugly dotted lines due to their aliased thiness. I know this would require code rather than an OXP, but couldn't some mild AA be applied only to laser beams viewed at a distance - so as not to bog down performance too much?

It would make them appear so much nicer without, hopefully, slowing down FPS for those of us on less specced hardware. Or am I being too picky over this one thing?
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

I agree, however antialiasing doesn't really work for single pixel width lines, as far as I know.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Poro
Deadly
Deadly
Posts: 249
Joined: Sun Jan 03, 2010 1:51 am
Location: Don't look in your aft view...
Contact:

Post by Poro »

Yes, that's certainly true for most graphics chips (I've even seen it worsen the appearence on some single pixel lines), but it would be easy to check for the distance to the player, and make a gernerous guesstimate as to when the line should be bumped up in thickness purely for the AA pass. No?

(This would of course not increase the thickness of the collision boundaries of the beam)
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

Actually I think keeping it as it is would be best. We could say that space dust is causing the apparent gaps in the beams, blocking the light.

There must be debris and smoke floating around most systems with all the fighting thats happening.
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

I would let it as it is. The visibility of the laser beams in itself is a good indicator of the distance to the fight. The thicker and better visible they are, the closer is the action. So it helps you to judge whether it makes sense to rush in, or the action will be over anyway until you arrive. If all beams looked the same, regardless of their distance, you couldn't tell anymore how far the fight was ahead of you.

So I think it is actually best the way it is.
User avatar
JeffBTX
---- E L I T E ----
---- E L I T E ----
Posts: 366
Joined: Sun Dec 27, 2009 2:23 pm
Location: Abilene Texas

Post by JeffBTX »

I second that ... that is a technique I have been using, sneaking up on firefights so that I wouldn't be noticed. "Gappy" laser beams ARE a good indicator of how close you are.

(or as Gollum would say; "sneekin")
Sword, thy name is Cobra. And Cobra has fangs!
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

This will be fixed at some point, but there is no magic AA flag that will handle this case elegantly. It needs to be done using textures, which need to be projected in slightly fiddly ways that are made harder by certain oddities in the way Oolite’s graphics work.
User avatar
Poro
Deadly
Deadly
Posts: 249
Joined: Sun Jan 03, 2010 1:51 am
Location: Don't look in your aft view...
Contact:

Post by Poro »

Ahruman wrote:
This will be fixed at some point, but there is no magic AA flag that will handle this case elegantly
I did actually wonder about that. My one and only time implementing AA in OpenGL allowed only ALL polygons to be AA'ed, or ALL lines. That didn't bother me at the time, but I was curious if one screen element could be singled out for a pass like that.
Post Reply