Page 2 of 2
RE: never saw the sun shining so bright
Posted: Fri Nov 23, 2012 12:12 pm
by sapog662
We also want the sun. Please, give us this modification.
RE: never saw the sun shining so bright
Posted: Sat Nov 24, 2012 8:15 am
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=':)' />
RE: never saw the sun shining so bright
Posted: Fri Nov 30, 2012 2:05 pm
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 :
RE: never saw the sun shining so bright
Posted: Fri Nov 30, 2012 2:37 pm
by shadmar
Some more :
RE: never saw the sun shining so bright
Posted: Sat Dec 01, 2012 10:40 am
by sapog662
You can find out with what file are You using? Please, give its address.
RE: never saw the sun shining so bright
Posted: Sat Dec 01, 2012 6:06 pm
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);
RE: never saw the sun shining so bright
Posted: Sun Dec 02, 2012 3:45 am
by sapog662
I can't find it. It is inside of EXE?
RE: never saw the sun shining so bright
Posted: Sun Dec 02, 2012 4:04 am
by shadmar
It's not downloadable as a mod or exe (yet). It's a test to the star halo done in the source.