Author Topic: Planets  (Read 4373 times)

0 Members and 1 Guest are viewing this topic.

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
I don't really mean making an illusion of the planet orbiting the star, merely ships orbiting planet would be highly sufficient. The change of time during a normal FS mission would not remarkably change the sun's position in relation to stars anyway, therefore we can safely ditch that option.  :D

Planetary orbit illusion could be done by just making two spheres: One as the planet and one as the background, and the ships orbiting the planet in between, more or less near to the planet model. When these rotate more or less synchronously, it would very effectively seem like the ships - all of them - orbit the planet.

Of course, if the battle is on geosynchronous orbit, the earth would not rotate but instead the background sphere would rotate around the earth and around the mission area. And actually this is probably the most difficult thing to make. I'd think of fixing a star onto that background sphere model, if that is even remotely possible, so that when te background model rotates it takes the star with it, effectively causing the planet have the light side and the dark side without them being a simple texture. The ambient_factor should be remarkably low, though, to avoid foolish-looking semi-dark side of earth.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline StratComm

  • The POFressor
  • 212
  • Cameron Crazy
    • http://www.geocities.com/cek_83/index.html
The problem is the lightsources.  They would need to rotate with the background, and that's just not possible.  In reality it's geosynchronous orbit that is feasible, because in the 15 minutes of a Freespace mission the lit portion of the planet, and thus the orientation of the background, really shouldn't change all that much.
who needs a signature? ;)
It's not much of an excuse for a website, but my stuff can be found here

"Holding the last thread on a page comes with an inherent danger, especially when you are edit-happy with your posts.  For you can easily continue editing in points without ever noticing that someone else could have refuted them." ~Me, on my posting behavior

Last edited by StratComm on 08-23-2027 at 08:34 PM

 
Quote
The ambient_factor should be remarkably low, though, to avoid foolish-looking semi-dark side of earth.

This is another of the problems that I was experiment while I was updating S:AH, if you set the ambient_factor 0, then Planet's look OK, however the ships look 100% dark from the opposide to the sun. While this is realistic, it is wrong, we don't have to forget that objects reflect light, the moon as an example. (there is a longer explanation to this, and it's rendering...)

------------------------------------------------------------------

Isn't a remote possibilty that light sources like Omni Lights could be added to the SCP. I mean, it's something common in games, right?

That way we could place the Source as a 3D object with an X,Y,Z postion, volume and intensity, even assing it to an object, almost like a sun. While it's not right to rotate a Sun around a Planet, it is easier to rotate the Sun than the whole universe around it, it would give just the same impression and we would be at speed 0 and there won't be any problems with geosynchronous orbit since it would be kind of emulated...
« Last Edit: March 28, 2006, 11:25:52 pm by Shadow0000 »

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
The problem is the lightsources.  They would need to rotate with the background, and that's just not possible.

That's what I feared. I suppose setting multiple light sources on ecliptica and activating them one by one is also not very feasible...  :rolleyes:

So, another option is to say that the battles are set in some of the Lagrange points around earth. From those points both Sun and Earth stay in same position. Then, though, the rotation of Earth will not be even noticeable during a mission, and the effect will be kinda in vain. The rotation would practically only be noticed in low orbit missions where the surface of Earth (or whichever planet) sweeps below.

One possibility would be to make the earth move around the battle area. Kinda like epicentrums when people tried to explain how planets and Sun orbit around Earth, but in order to get a different effect. In LEO missions it would be usable, since 15-20 minutes is already about one fifth of the whole orbit which takes about 90 minutes when you orbit near the Earth. So, just create a ball with radius of 6400 km and make it move a circular track with radius of 6600 km and ploace the mission area in the center of this track, and place a light source somewhere far. While this solution is nowhere near ideal and does not include the apparent rotation of stars, it would create an effect very near orbiting a planet - especially when you place the mission so that the sun rises a few minutes into the mission. I know this sounds like a real chewing gum solution but it might work.

Of course you could use a smaller planet  than 1:1... I don't know how FSOpen handles objects of that size. :rolleyes:
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 
Quote
Of course you could use a smaller planet  than 1:1... I don't know how FSOpen handles objects of that size.

This is old coming from me, but:






Sol: A History, Luna Station (GTI Arcadia) orbiting the Moon's distance is at about 2,750,000 meters from it, the Moon model has a diamater of 3,476,000 meters (Radius 1,738,000), Mass (I don't remember now).

As you see there are no real problems with Radius 1:1 and model sizes, even Jupiter works fine, the problem is the limit of 700,000 meters  of distance for Alpha 1, from it's initial point, which will make "Alpha 1 exploded for a collision with Alpha 1" (take care of not collide with yourself and die, it can happen).
 
What's needed to do in this case is to apply a faster limit of speed, after all is space, Inferno R1 haves the GVF Ennead which uses can match speeds of 300 m/s with the Afterburner, and there are supposed to be faster ships in R2. This is easy editing in the ships.tbl and can be done without problems...
« Last Edit: March 29, 2006, 12:43:19 am by Shadow0000 »

 

Offline Starman01

  • 213
  • Mechwarrior
    • Wing Commander Saga
How many polies has your moon, and how long did it take to run it through PCS ? My 30 Km planet take about 49 seconds to compile into a poffile (having 5000 K polygons and three LODS), and this time is quite high according to my experience. I have more complex models with more polygons and textures compiled in under 20 seconds, so I first thought the planet crashed PCS

P.S. Looks really great, that's the sort of realism that make things look even greater :)
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.

 
We are playing around with planetoids a bit too and got a ~11,000 face model (four LODs and 8000 faces on first) and the compile time is around 30 seconds.  Could be wrong but I don't think the actual diameter matters to much.  The pof was the same size on the disk when it was 160m and when 80km.  Other then the player just being so far away from the middle point of the mission.  I did just try and import a 16,000 face object and PCS couldn't handle it.   :(

 

Offline Flaser

  • 210
  • man/fish warsie
IMHO the best aproach for models this big would be to use Bobbau's detail box code.

What that differs from simple LODing is that LODs all change according to the distance from a central point, whereas detailboxes are being drawn when the ship enters them.

Moreover you can put further boxes inside eachother creating a seamless increase in detailing without too much stain on rendering.

Check out Omni's Death Star for reference.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan

 

Offline bfobar

  • 28
Honestly, you don't need a rotating background or lightsources to simulate an orbit. The sun does not change it's position relative to the stars for a space ship in a fast low orbit. All you need is for the planet to move around your scene at an appropriate speed for your orbit, and to have it counter rotate to always face the light source. I could do it with waypoints really. Remember, in space you're weightless. You'd feel no motion and it would seem that the planet is orbiting you. This could get obnoxous with space stations in the distance needing to be facing the right way and move too, but who sticks an arcadia in anything lower than geosynchronous orbit?

90 minutes is close to the bare minimum time for an orbit. If the average freespace mission lasts only 15, then a planet could follow a waypoint track for a quarter circle.

Also, this may be more feasable with a background projected on a modified subspace mission tube that spins really slow. But at any rate, you don't need moving light sources for a good illusion.

 
Have any of you guys played Independence War 2 or Klingon Academy to get some ideas from how they approach these problems?

I War 2 has fully modeled solar systems with full 3d planets/objects/stars etc.

Klingon Academy has modeled out our Solar System and even allows you to enter planets atmospheres.

It sounds like none of ya'll have played these games - might give you some more ideas.

Does FS 2 allow you to make a lightsource such as the sun be a 3d object?  If so, great - do this, and then set it far out into the system and then you can orbit the planet.

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Yaa, you can of course fly around the planets in I-War 2: EoC but gravitational interaction is not simulated, I think. In other words, you can hover on top of the planet as long as you wish, and the planets don't make ships' trajectories curves but they are in stead linear. So much of newtonian flight model...  :rolleyes:

The question here is about simply making things look like all the ships would orbit the planet on more or less same orbital parametres, and the easiest way to make things look like that would be to make the planet a 3D object and make it move around the mission area (and all the ships of course). Like bfobar said it.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 
Quote
How many polies has your moon, and how long did it take to run it through PCS ? My 30 Km planet take about 49 seconds to compile into a poffile (having 5000 K polygons and three LODS), and this time is quite high according to my experience. I have more complex models with more polygons and textures compiled in under 20 seconds, so I first thought the planet crashed PCS

It is has 5400 Polys (faces), a version rounder would be at 9600 Polys, however I set it to be always at LOD0, a Sphere is a Sphere and can is noticed from any distance thatn can be seen.

So, to implement other LODs, I would need to test and know, which is the distance where the planet start to be a thin point. Anyways a Sphere needs to be Anti-Aliased to be completely round, that's why I am using one with 5400 polys.

Plus other planets uses 2 or 3 sphere to make Clouds and atmospheres, so....the polycount can be a lot, even for a simple form as a sphere is....

Quote
P.S. Looks really great, that's the sort of realism that make things look even greater

That's the idea (and it looks great even without Bumpmapping for the shadows of the craters...)

Quote
Have any of you guys played Independence War 2 or Klingon Academy to get some ideas from how they approach these problems?

I War 2 has fully modeled solar systems with full 3d planets/objects/stars etc.

Klingon Academy has modeled out our Solar System and even allows you to enter planets atmospheres.

It sounds like none of ya'll have played these games - might give you some more ideas.

No, at least I don't have played those games, but I known them. The idea to of adding planets is just that, to add some matter to it, we already have the freespace so it's adding matter to give some kind of life to it...

Quote
Does FS 2 allow you to make a lightsource such as the sun be a 3d object?  If so, great - do this, and then set it far out into the system and then you can orbit the planet.

No, actually impossible. There is no way of set a 3D light source, only the ones that can be used on the background, kind of 2D light sources.

Quote
Yaa, you can of course fly around the planets in I-War 2: EoC but gravitational interaction is not simulated, I think. In other words, you can hover on top of the planet as long as you wish, and the planets don't make ships' trajectories curves but they are in stead linear. So much of newtonian flight model...

The question here is about simply making things look like all the ships would orbit the planet on more or less same orbital parametres, and the easiest way to make things look like that would be to make the planet a 3D object and make it move around the mission area (and all the ships of course). Like bfobar said it.

Well, the somethings can be probabily simulated, for example entering in the planet's atmosphere can be made with the actual damage that models named "planets" do, and add a Shudder effect like the engine wash cause, so it gives the impression the Ship is begin burn by gravity, speed, and friction. What we would need is if we could set something like what happens with Missiles:

When you add a Weapon either Primary (laser mostly) or Secondary (Missile mostly), with a Negative Mass:, ex: Mass: -7,000,000. The effect made to the ships affected is the opposite, in exchange of us being hit away by the force of the explosion, we are being sucked in to the center of the explosion, like a Dark Hole.

Maybe if someone can do something with a really big Range of explosion, and the exact negative Mass, we could set a FirePoint into the Center of the Planet, and make and Invisible explosion, and tell the planet to lauch that Missile with a Speed of 0, that means it generates and explodes in the center of it, and start attracting everything to it.

The problem is that I don't remember how really was the Range setting for Missiles, right now...I'll try this it works for weapons of gravity kind, so it should work like gravity for planet's, if we make an invisible missile with also invisible effects, the effect and explosion should be constant, probabiliy 1 second would be enough for our ship to be moving with no stopping...(an infinite chain of "Child" Missiles should work...)
« Last Edit: March 30, 2006, 08:34:25 pm by Shadow0000 »

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
[off]Singularity Bomb, anyone?[/off]
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 
What about the "Affected by Gravity" option in FRED? Never used it myself but.......
"You need to believe in things that aren't true. How else can they become?" -DEATH, Discworld

 
You know, I'm having a hard time buying that a 3d object can not be a lightsource for a system in FS 2.  I think the answer to your dilemma would still be to make a 3d Sun, have there be no sun in the 2d background emitting light (so it would essentially be darkness), and have the 3d sun object emitting light at a great intensity.

Your energy weapons fired by ships put off light - I'm sure there are values that adjust for range of visible effect, brightness and intensity.  I'm sure if you just modified these values, you could then have a light emitting 3d sun.

  
Quote
[off]Singularity Bomb, anyone?[/off]

I don't want to test this, actually the Bomb would be faking "positive" Gravity, with "Negative" inertia. That's maybe seen as the same in effect, however Mass calculation is wrong, so I won't really test this.

Quote
What about the "Affected by Gravity" option in FRED? Never used it myself but.......

I am not too sure and probabily wrong, but I think this was kind of directional Gravity for Planar Landscapes, was Blackwater Operations. The problem is that why can assing Gravity to any object, like a Planet, which is wrong...

All objects should have a Gravity field calculated, the POFs have a MASS factor which can be specified, so this an additional calculation which could be compatibility with the actual state of POFs.

Again, I should prefer to select which object has gravity (planets/moons) in order to not cause a stream of calculations for every simple Mass factor, and every single ship.

Quote
You know, I'm having a hard time buying that a 3d object can not be a lightsource for a system in FS 2.  I think the answer to your dilemma would still be to make a 3d Sun, have there be no sun in the 2d background emitting light (so it would essentially be darkness), and have the 3d sun object emitting light at a great intensity.

Yes, it should be a 3D lightsource, which almost no model, after all you can't really see it...

Quote
Your energy weapons fired by ships put off light - I'm sure there are values that adjust for range of visible effect, brightness and intensity.  I'm sure if you just modified these values, you could then have a light emitting 3d sun.

This could work, but it would increase the lightning factor for every single Weapon, and will end being a bad idea, there was no way of making a specfic choice...