To all SSC Station occupants
Thank you for the donations over the past year (2024), it is much appreciated. I am still trying to figure out how to migrate the forums to another community software (probably phpbb) but in the meantime I have updated the forum software to the latest version. SSC has been around a while so their is some very long time members here still using the site, thanks for making SSC home and sorry I haven't been as vocal as I should be in the forums I will try to improve my posting frequency.
Thank you again to all of the members that do take the time to donate a little, it helps keep this station functioning on the outer reaches of space.
-D1-
"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 effect
const 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); //outer
const 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);
I can't find it. It is inside of EXE?
It's not downloadable as a mod or exe (yet). It's a test to the star halo done in the source.