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/
sapog662
Private
Posts: 140
Joined: Tue Aug 14, 2012 12:15 pm

RE: never saw the sun shining so bright

Post by sapog662 »

We also want the sun. Please, give us this modification.
fluffyfreak
Private
Posts: 1292
Joined: Sun Nov 27, 2016 12:55 pm

RE: never saw the sun shining so bright

Post by fluffyfreak »

@sapog662 & VuzzThere's already a pull request for it on GitHub, so no it won't be forgotten <img src="'[url]http://spacesimcentral.com/forum/public/style_emoticons//icon_e_smile.gif[/url] class='bbc_emoticon' alt=':)' />
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

Here is a kind of flare effect: (also notice background stars are more variated) I could make video too, kind of cool traveling out of the atmosphere looking at the sun changing brightness. Sirius and Toliman Binary system :
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

Some more : 
sapog662
Private
Posts: 140
Joined: Tue Aug 14, 2012 12:15 pm

RE: never saw the sun shining so bright

Post by sapog662 »

You can find out with what file are You using? Please, give its address.
walterar
Private
Posts: 978
Joined: Fri Nov 25, 2016 8:22 pm

RE: never saw the sun shining so bright

Post by walterar »

"You can find out with what file are You using? Please, give its address." see...--- /pioneer/src/Star.cpp.orig+++ /pioneer/src/Star.cpp@@ -25,7 +25,7 @@// if star is wolf-rayet it gets a very large halo effectconst float wf = (sbody->type < SystemBody::TYPE_STAR_S_BH && sbody->type > SystemBody::TYPE_STAR_O_HYPER_GIANT) ? 100.0f : 1.0f;- return sbody->GetRadius() * 8 * wf;+ return sbody->GetRadius() * 72 * wf;}void Star::Render(Graphics::Renderer *renderer, const Camera *camera, const vector3d &viewCoords, const matrix4x4d &viewTransform)@@ -60,19 +60,32 @@MTRand(rand);- renderer->SetBlendMode(BLEND_ALPHA);+ renderer->SetBlendMode(BLEND_ALPHA_ONE);- //render star halo- VertexArray va(ATTRIB_POSITION | ATTRIB_DIFFUSE);+ //render star halos+ VertexArray va(ATTRIB_POSITION | ATTRIB_DIFFUSE); //inner+ VertexArray vb(ATTRIB_POSITION | ATTRIB_DIFFUSE); //outerconst Color bright(col[0], col[1], col[2], 1.f);- const Color dark(0.f, 0.f, 0.f, 0.f);+ const Color dark(0.0f, 0.0f, 0.0f, 0.f);- va.Add(vector3f(0.f), bright);- for (float ang=0; ang<2*M_PI; ang+=0.26183+rand.Double(0,0.4)) {- va.Add(vector3f(rad*sin(ang), rad*cos(ang), 0), dark);+ va.Add(vector3f(0.f), bright*0.775);+ vb.Add(vector3f(0.f,0.f,0.01f), bright*0.5);++ float ang=0;+ const float size=4;+ for (ang=0; ang<2*M_PI; ang+=0.25+rand.Double(0,0.04)) {++ float xf = rad*sin(ang);+ float yf = rad*cos(ang);++ va.Add(vector3f(xf, yf, 0), dark);+ vb.Add(vector3f(xf*size, yf*size, 0.01f), dark);}- va.Add(vector3f(0.f, rad, 0.f), dark);+ float lf = rad*cos(2*M_PI-ang);+ va.Add(vector3f(0.f, lf, 0.f), dark);+ vb.Add(vector3f(0.f, lf*size, 0.01f), dark);+ renderer->DrawTriangles(&vb, Graphics::vtxColorMaterial, TRIANGLE_FAN);renderer->DrawTriangles(&va, Graphics::vtxColorMaterial, TRIANGLE_FAN);renderer->SetBlendMode(BLEND_SOLID);
sapog662
Private
Posts: 140
Joined: Tue Aug 14, 2012 12:15 pm

RE: never saw the sun shining so bright

Post by sapog662 »

I can't find it. It is inside of EXE?
shadmar
Private
Posts: 300
Joined: Thu Dec 08, 2016 4:54 pm

RE: never saw the sun shining so bright

Post by shadmar »

It's not downloadable as a mod or exe (yet). It's a test to the star halo done in the source.
Post Reply

Return to “Pioneer”