Author Topic: Greetings, and "popping" stars fix  (Read 3568 times)

0 Members and 1 Guest are viewing this topic.

Offline Sticks

  • 29
Greetings, and "popping" stars fix
Hello there folks. Some of you may remember me from way back in the day when FS2 was at its prime. I actually was a staffer at FS Watch a long time ago before it was part of Volition Watch. (IceFire may remeber me)

In any case, I've decided to help out with the source code business, and I'm just starting to figure out the inner workings that are FS. I've been mucking about trying to devise a better starfield system, but so far I've not really had any success with any ideas.

I have, however, managed to calm the stars, as it were. Stars should no longer jitter so much when the view is moved in very small increments.

in starfield.cpp, function stars_draw():
Code: [Select]

/* if the two points are the same, fudge it, since some D3D cards (G200 and G400) are lame.
if( (fl2i(p1.sx) == fl2i(p2.sx)) && (fl2i(p1.sy) == fl2i(p2.sy)) ){
p1.sx += 1.0f;
}
*/

if( !(abs(fl2i(p1.sx) - fl2i(p2.sx)) > 3) && !(abs(fl2i(p1.sy) - fl2i(p2.sy)) > 3) ) {
p1.sx = p2.sx;
p1.sy = p2.sy;

p1.sx += 1.0f;
}


Basically it checks the distance between the two vertices p1 and p2, which are the position where that star was, and where that star is now, respectively. If the two positions are not a certain distance apart (currently 3), it sets position one equal to position two, thus making the motion blur line consist of only a singular pixel. If someone could independently back this up and/or commit it, that'd be great, as I don't have CVS commit access.
"Napalm is good as a quickfire solution, literally..." -- cngn

"Shh... [Kazan's] schizophrenia allows him to multitask." -- Goober5000

Why am I still coding at 12:35am?

SCP: Templum sanctus ingeniosus

 
Greetings, and "popping" stars fix
Hello Sticks,

Always nice when new people join the FSSCP team! :)
When will I learn?  The answer to life's problems aren't at the bottom of a bottle, they're on TV! -- Homer,  "There's No Disgrace Like Home''
I sometimes find myself here on this forum, late at night constantly pressing "Reload" over and over again

 
Greetings, and "popping" stars fix
someone fire the welcome beam... :p

 

Offline Gloriano

  • silver dracon
  • 210
  • Oh
Greetings, and "popping" stars fix



image is made Dragonclaw or some one else
You must have chaos within you to give birth to a dancing star.- Nietzsche

When in despair I remember that all through history the way of truth and love has always won; there have been tyrants and murderers, and for a time they can seem invincible, but in the end they always fall.- Mahatma Gandhi

 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Greetings, and "popping" stars fix
Which would explain why the green beam is there on this side, but the turrets are all pointing the other way. :doubt:
Freelance Modeler | Amateur Artist

 

Offline Inquisitor

Greetings, and "popping" stars fix
Hmmmmmmmm :)
No signature.

 

Offline Flipside

  • əp!sd!l£
  • 212
Greetings, and "popping" stars fix
Shouldn't it be The HLPBB?

Oh well, I nitpick ;)

Welcome aboard, and I'm pretty sure one of the SCP team will try it out soon enough, you might try Bobboau, though he's up to his ears in DX8 code (and probably STILL looking for the spring for his joystick). He's mucking around a bit with the backgrounds at the moment (animated backdrop files), he may well try your code out while he's at it?).

Flipside :D

 

Offline Inquisitor

Greetings, and "popping" stars fix
You plan on contributing regular like?

We could probably hook you up with access ;)
No signature.

 

Offline vyper

  • 210
  • The Sexy Scotsman
Greetings, and "popping" stars fix
Well this looks nice, and another good coder is a blessing I say. Except the bit about G400's being lame. :nervous:
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Sticks

  • 29
Greetings, and "popping" stars fix
Actually, the first bit I didn't write. I think Volition did, and as you can see, it is actually commented out. :-)

Also, yes, I do plan on starting regular contributions.
"Napalm is good as a quickfire solution, literally..." -- cngn

"Shh... [Kazan's] schizophrenia allows him to multitask." -- Goober5000

Why am I still coding at 12:35am?

SCP: Templum sanctus ingeniosus

 

Offline Inquisitor

Greetings, and "popping" stars fix
Email me then, mon amis, lets get you hooked in.
No signature.

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Greetings, and "popping" stars fix
Sticks...hey!  I do remember you...PlanetFS days I think...way way way back then :)

Welcome back to the community...some names and faces have changed but its still essentially the same as it used to be.
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline vyper

  • 210
  • The Sexy Scotsman
Greetings, and "popping" stars fix
Quote
Originally posted by Sticks
Actually, the first bit I didn't write. I think Volition did, and as you can see, it is actually commented out. :-)

Also, yes, I do plan on starting regular contributions.


*note to self: read code before commenting on it *
"But you live, you learn.  Unless you die.  Then you're ****ed." - aldo14

 

Offline Kazan

  • PCS2 Wizard
  • 212
  • Soul lives in the Mountains
    • http://alliance.sourceforge.net
Greetings, and "popping" stars fix
wow.. you've been lurking for a long time
PCS2 2.0.3 | POF CS2 wiki page | Important PCS2 Threads | PCS2 Mantis

"The Mountains are calling, and I must go" - John Muir

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Greetings, and "popping" stars fix
Quote
Originally posted by Flipside
Shouldn't it be The HLPBB?


Lemme check...

Yep ;)
-C

 

Offline DragonClaw

  • Romeo Kilo India Foxtrot
  • 210
Greetings, and "popping" stars fix
OK nitpick this ya nitpicking nitpicks!


 

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
Greetings, and "popping" stars fix
They're not all beam turrets.

I don't recall a blue beam like that.

It's just plain stupid...

Shall I continue?
« Last Edit: August 31, 2003, 09:02:29 am by 273 »
Freelance Modeler | Amateur Artist

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Greetings, and "popping" stars fix
DragonClaw...not enough beams yet...there's got to be another turret not firing in that scene yesno? :)
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline J.F.K.

  • 29
Greetings, and "popping" stars fix
Quote
Originally posted by Raa Tor'h
They're not all beam turrets.

I don't recall a blue beam like that.

It's just plane stupid...

Shall I continue?


Since when were planes a measure of stupidity? :p

Welcome to HLP, Sticks. Good to have you around mate! :)
.
[font="SerpentineDBol"]. . . . W H O . I S . T H E . M A N , . W H O . I S . T H E . M Y T H ?[/font]

 

Offline DragonClaw

  • Romeo Kilo India Foxtrot
  • 210
Greetings, and "popping" stars fix
Quote
Originally posted by IceFire
DragonClaw...not enough beams yet...there's got to be another turret not firing in that scene yesno? :)


Unfortunately there isn't... hmm... whats got a better weapons/space ratio :p