never saw the sun shining so bright

Pioneer is an open-ended space adventure game. Explore the galaxy, make your fortune trading between systems, or work for the various factions fighting for power, freedom or self-determination.
Homepage: http://pioneerspacesim.net/
IRC: http://pioneerspacesim.net/irc
Downloads: https://pioneerspacesim.net/page/download/
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

never saw the sun shining so bright

Post by shadmar »

Playing with the aplha 28 source, looking for some uniform to extend shader usage. I'm mostly a shader writer for existing game engines with an API to uniforms.However I wanted to change the looks of the stars halo, I wasn't able to connect a shader to it, but I changed the TRINGLE_FAN size and inner bright in the source. (I think it's drawn using opengl with no shader or maybe the mulit shader is used, haven't figured that out yet).Here is my before and after :Before (on earth)After on EarthBefore Mars :After on Mars :In orbit above earth looking at the sun :
User avatar
Geraldine
Private
Posts: 3454
Joined: Fri Nov 25, 2016 9:12 pm

RE: never saw the sun shining so bright

Post by Geraldine »

"Never saw things going so right "<img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//girl_pinkglassesf.gif[/url] class='bbc_emoticon' alt=':girlglasses:' /> shadmar...that looks beautiful! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//girl_crazy.gif[/url] class='bbc_emoticon' alt=':girlcrazy:' />
Guest

RE: never saw the sun shining so bright

Post by Guest »

Woah! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//sun_bespectacled.gif[/url] class='bbc_emoticon' alt=':sungum:' /> I like how it look from the planets! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' />Is it correct to see all that halo outside the atmosphere? (Just asking <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//wink3.gif[/url] class='bbc_emoticon' alt=';)' /> )
Helioth
Private
Posts: 25
Joined: Fri Nov 16, 2012 1:32 pm

RE: never saw the sun shining so bright

Post by Helioth »

Looks wonderful, and so much more realistic <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//sun_bespectacled.gif[/url] class='bbc_emoticon' alt=':sungum:' />
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »


'Tichy' wrote:
Is it correct to see all that halo outside the atmosphere? (Just asking <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//wink3.gif[/url] class='bbc_emoticon' alt=';)' /> )
I think so, maybe abit less..Here is a real picture from earth orbit : [url]http://www.solarsyst...m/sun-space.jpg[/url]
Loki999
Private
Posts: 165
Joined: Wed Oct 31, 2012 7:27 am

RE: never saw the sun shining so bright

Post by Loki999 »

Argh! Bright light!Actually looks very nice. Always thought Sol looked too wussy from earth. Probably a bit too much though... i mean, even wearing glasses and having the sun glancing off your glasses doesn't produce so much flare. And I don't think we want this game looking like J.J. Abram's Star Trek (shudders).Perhaps somewhere around halfway between your version and the original might look right.
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

Blight light <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' /> Yes I think you're right so I did some adjustments.Here as a dual halo, one bright inner and one weaker outer, also 5 times tesselated.Just arrived at Toiliman Binary system 9 AU out.Earth and Mars again :
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

Brown Dwarf Phien close by :
robn
Private
Posts: 1035
Joined: Mon Jan 31, 2011 10:29 pm

RE: never saw the sun shining so bright

Post by robn »


'shadmar' wrote:
Playing with the aplha 28 source, looking for some uniform to extend shader usage. I'm mostly a shader writer for existing game engines with an API to uniforms.However I wanted to change the looks of the stars halo, I wasn't able to connect a shader to it, but I changed the TRINGLE_FAN size and inner bright in the source. (I think it's drawn using opengl with no shader or maybe the mulit shader is used, haven't figured that out yet).
Very interesting work. It'd be great if you could submit it for inclusion in the game proper.You're right, at this time there is no shader in use for the star halo. If you have an idea of what you want we can probably do something about that. Please open a feature request.
Potsmoke66
Private
Posts: 1815
Joined: Sun Nov 27, 2016 2:43 pm

RE: never saw the sun shining so bright

Post by Potsmoke66 »

i like how it appears in the atmosphere, but i see this like Tichy and that what the picture shows is clearly lens flare.now we could discuss if that wouldn't be seen anyway in this way, visor, windows, whatever will produce such a lens flare.on the other hand personally i'm not a big fan of such and usually lens flare is the first i switch off for my games if possible at all.while yeah, it could be additional hardness to fight, but unfortunately the AI won't get blinded by a lens flare and to battle the AI in pioneer is already a treat.not to imagine if the AI pilot would use this like a fighter pilot, you won't stand a tenth of a second.imagine one attacks you from direction of the light... phew, no chance to see him proper.can you take also care of our "glowing" buildings? this i would appreciate much.on a clear winters day i can't see no halo neither a lens flare (with glasses off).if you are high enough over 0m and it's winter so the air is dry, none of these is to see or far less, that's why observatories are placed in regions like "atacama", very high, very cold, super dry, less flickering and of course no smog.but really i like how it appears in the atmosphere, no question!s2odan and i discussed such very early as i remember, and even i think to, real spaceships monitors or visors of real space pilots would show a reprocessed view of the reality to show more infos as you can see by the eye (jetfighter pilots have something like that already if you guess), plus of course you would like to get rid of lens flare or halo effects.all this would hinder you only.just as a idea...and outside the atmosphere, hmm... i would prefere a hard shade, i know this counteracts a bit to what i stated above, let's say for a outside camera view. also i don't mind unlike others when the dark side of a moon is night black, to me this looks realistic, without a atmosphere there is no scattering, what should scatter the light then? neither that i have had problems when it was nightblack in earlier releases to land, you have the targeting quad, distance, rel. speed, what do i need more? i don't need sight to dock, not even to land rough.but i can speak of course only for myself, others might have a different view to this "problem".back to the reprocessed view, still the "moon" i have in front of me won't have scattered light, a enegy source that can "lit up" (in whatever range of the electromagnetic spectrum) a whole planet i really can't imagine. so what tools would we have?- radio waves- x-rayprobably- infrared and ultravioletto combine a reprocessed viewwhile if the object isn't a source of any of that, the shaded side would be also night black when reprocessed.i can't measure what didn't exists, even not in 1000 years, physics will be the same.i could probably measure what didn't exists by the leak of it, means it would be a "black circle" on the brighter "background noise".(he, he, FE2's blue background isn't so stupid seen from this point of view)but still black as a hole and for sure no scattered light or any else, nah, perhaps some extreme longwave radio which is able tobend around a objects surface, yes that could give me some sort of scattered electromagnetical waves i can measure and reprocess them.as far as a radio source (a star) is there which could "lit up" the object in this way.but any shortwave will be "shaded" 0 or 100% without a "medium".or you have to re-invent edisons ether?but the picture you will get from that, will be far different of what you see by the eye.but i also understand it's a game and not all has to be totally realistic, certainly not, so i can live well with the backlit "moons".
Marcel
Private
Posts: 1188
Joined: Tue Dec 06, 2016 6:45 pm

RE: never saw the sun shining so bright

Post by Marcel »

<img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//sun_bespectacled.gif[/url] class='bbc_emoticon' alt=':sungum:' /> Definite improvement! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//sun_bespectacled.gif[/url] class='bbc_emoticon' alt=':sungum:' />
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

Thanks for the comments. <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' />
'robn' wrote:
Very interesting work. It'd be great if you could submit it for inclusion in the game proper.
I will, I just need to setup git (I've used svn but never git, so I just need to catch up, thanks.
'robn' wrote:
You're right, at this time there is no shader in use for the star halo. If you have an idea of what you want we can probably do something about that. Please open a feature request.
Haven't really thought it through, but a simple material system maybe file (lua?) based (for modding) that specifies textures and shaders and also static unforms for models, halos.. etc everything rendered.Anyway that is alot of work to change since there so master render class (it looks abit scattered).Like if texture0 exist it's diffuse, texture1 for glow texture2 for specular, texture3 for normalmapping and so on.Here a sample ocean shader I did fir the Leadwerks Engine : based terrain splatting shader in Leadwerks Engine : [url]http://www.leadwerks.com/werkspace/blog/1/entry-990-terrain-test/[/url]
'potsmoke66' wrote:
can you take also care of our "glowing" buildings? this i would appreciate much.
How do you mean ?
'potsmoke66' wrote:
i like how it appears in the atmosphere, but i see this like Tichy and that what the picture shows is clearly lens flare.now we could discuss if that wouldn't be seen anyway in this way, visor, windows, whatever will produce such a lens flare.
Yeah it's probably just the lensflare, I'm not sure how it would look to stare at the sun in space, it would just hurt I guess.
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: never saw the sun shining so bright

Post by fluffyfreak »

There's some really cool stuff you've done in Leadwerks shadmar.I would really like to get proper liquids into Pioneer and it's on my todo list.Luomu is the guy to speak to about materials, shaders and rendering in general at the moment as he's done the majority of the work in bringing the the renderer up to date. He's currently a little busy getting the new model system into the game but is always helpful <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' />Any input/ideas/etc you can give would be really appreciated and we could really do with input from a decent shader writer!!! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_biggrin.gif[/url] class='bbc_emoticon' alt=':D' />
Loki999
Private
Posts: 165
Joined: Wed Oct 31, 2012 7:27 am

RE: never saw the sun shining so bright

Post by Loki999 »


'shadmar' wrote:
Here a sample ocean shader I did fir the Leadwerks Engine
Nice... very nice.
User avatar
Geraldine
Private
Posts: 3454
Joined: Fri Nov 25, 2016 9:12 pm

RE: never saw the sun shining so bright

Post by Geraldine »

I predict lots of amazing screen shots once this in established in the Alphas. Boy, oh boy, wait till ModDB gets a load of this! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//girl_crazy.gif[/url] class='bbc_emoticon' alt=':girlcrazy:' />Shadmar, great work there, the modded pics are even better. What a difference they make!
Guest

RE: never saw the sun shining so bright

Post by Guest »

Give me terrains, waters and suns like these, plus some clouds... and my social life will be gone forever! <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//shok.gif[/url] class='bbc_emoticon' alt=':O' /> <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//biggrin.gif[/url] class='bbc_emoticon' alt=':biggrin:' />
Loki999
Private
Posts: 165
Joined: Wed Oct 31, 2012 7:27 am

RE: never saw the sun shining so bright

Post by Loki999 »

Yes yes! We can pay! In karma and kudos! Better than gold and more long term value than the US dollar!
Guest

RE: never saw the sun shining so bright

Post by Guest »

...but not too realistic. I need some space to fill with imagination <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//prankster.gif[/url] class='bbc_emoticon' alt=':prankster:' />
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

Did a pull request on the star halo, took a while to get use to git (when you're never used it before) <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//hi.gif[/url] class='bbc_emoticon' alt=':hi:' />To write shaders in relys heavily on the rendering engine (which I don't know how to do), so I don't expect water like this for a while yet.
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: never saw the sun shining so bright

Post by fluffyfreak »

@shadmar,I tried to download your shaders over on the leadwerks site but it refuses to let me. Is there any other way of getting them?Water requires a few different stages to the rendering but they can be summarised as:
From space = Blue and shiny
From high-altitude = Blue, shiny, and BDRF to approximate waves
From low altitude = Blue, shiny, with BDRF, and animated vertices with foam and other high detail effects.
Underwater = Blue... not so shiny <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_biggrin.gif[/url] class='bbc_emoticon' alt=':D' />
Ok slightly making fun there <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_biggrin.gif[/url] class='bbc_emoticon' alt=':D' />I started doing the additional rendering sphere work but realised I was going to have to spend a lot of time on learning how to implement the water shaders and I simply haven't had much time. It looks like you've already done one of the harder stages to a high quality.
Post Reply

Return to “Pioneer”