Author Topic: problem with suns  (Read 3043 times)

0 Members and 1 Guest are viewing this topic.

Offline Nighteyes

  • 211
for some reason suns arn't rendered last, making ships display ontop of lens flares and sun glows... is this easily fixable?

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Errm. Don't you mean that you want suns rendered first?

Anyway, I think the effect we have now is intentional, as you get a somewhat realistic "overshine"-effect.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
I think he means that when an Orion is next to, but not blocking, a sun, it still blocks the lens flare effect that should be over the ship.  Sound about right?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Screenshots would help immensely.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Nighteyes

  • 211
I think he means that when an Orion is next to, but not blocking, a sun, it still blocks the lens flare effect that should be over the ship.  Sound about right?

that, and also the flares themselves are obscured by the ships, looks really bad and unrealistic... this screenshot shows it best:

By gbtf67 at 2010-02-14

**I mean rendered last, as in renders after all the other ships and nebula and skyboxs are rendered, so the sun+flares render ontop of everything else, as it should be
« Last Edit: February 14, 2010, 05:19:03 pm by Nighteyes »

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Actually rendering last isn't good either.  You wouldn't want flares from a sun behind a planet.  It was quite common to put suns behind a planet in retail since there was no remove-sun-bitmap.  Now the ships part yea that doesn't look right.  But then if you were close enough to the basestar for it to block the sun entirely you wouldn't want flares either. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline Nighteyes

  • 211
the code already know not to render flares when obscured by a ship, but when not obscured it should be ontop of everything... and regarding planets, why bother placing a sun if it will be behind a planet? and if you really want to, you can create a sun with a transparent texture and no flares...

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
You missed the line about retail.  You couldn't do mods for multiplayer and there was no way not to have a sun so you put a sun in and stuck a planet on top of it.  So yes you can do what you say now but it would break compatibility. 
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 
Best way would be doing flares as a post process, this would allow a lot better looking flares without any problems of ordering as all bright surfaces would cast flares. (as they should.)
For reference of what it would look like check 3dmark vantage or a killzone2.

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Seriously, it's not complicated.  Whether or not a sun itself renders is already correct, the only problem is that when the sun is there, the flares should be on top of _everything_.  That's not a PP effect, and I think it did work before but I can't really remember.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
The lens flare is rendered with the sun glow, which is behind all ships, so it is actually working just the way that it was implemented.  With a few minor changes it could be made to work properly though.

 

Offline Nighteyes

  • 211
so, is someone willing to work on these  "few minor changes"? :D

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
I'm more than willing to take some direction on the issue.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Nighteyes

  • 211
any luck with this?

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Actually, the sun should still be part of the background, but the flare should be on top of everything else unless the sun is completely covered by something in front of it (including animated parts of the skybox).


From the SCP internal:


[...]

Light coronas

An older feature, which seems to be "in" again. I remember seeing this a quite often in older games.
I think it's just a sprite blending/bleeding over the edges of objects in front of it, unless it's center is covered.

I'm not quite sure how it works, but I found some stuff related to this topic:

http://www.gamedev.net/community/forums/topic.asp?topic_id=133234
http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showflat&Number=230605

Also to illustrate the effect I mean:

http://www.youtube.com/watch?v=LE_z3-YgQsE


Current look:


Light corona/Lens flare:



[...]
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 
 

Offline Angelus

  • 210
  • The Angriest Angel
Is that BTRL with normal maps?


Looks like it is, and i think the Asteroid on the left is not one of the Scaroids.
Me wants, the flares and the roid. :D

 

Offline Nighteyes

  • 211
and, taking this flare stuff further, we can have a "glow" effect, also bleeding color on everything when a capship explodes... personally I think this will really boost the graphical quality of the SCP...

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
i kinda like that effect ant it seems like it would be just a matter of rending a big sprite over all the geometry
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
I think in the case of Nexus (the youtube video), they used a smart rendering order system for the flares, because sometimes it still looks like the flare gets cut-off by other ships.

I don't know if rendering all flares after everything else is an option.
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------