Page 1 of 1

goto for absolute not relative distances?

Posted: 28.06.2002, 00:47
by steve.wray
As far as I can tell, the celestia scripting language only allows one to travel to an object and stop at a distance from that object measured in terms of the radius of that object.

I've looked at hacking the source to introduce an alternative, but can't figure out how to compile on windows.

a) is there an existing way to goto a distance eg in AU from an object that I'm just missing?

b) should I come up with a patch for this, get it working on Linux then send the patch to someone who can compile it into a windows exe for me?

c) or what? Is there a Very Good Reason why goto *should* express distance terms of object radius?

Thanks!

Posted: 28.06.2002, 09:12
by Buzz
I've been playing with scripting too. The reason to express distances in radii (is that Latin?) is that the size of each object will be the same on screen if you set the distance to the same amount of radii. I made a script to look at the planets from the same distance so you can compare their sizes; this does require some calculation to express this distance in radii. If anyone is interested I will post the script.

Posted: 28.06.2002, 09:33
by steve.wray
The script would be a good start! Thanks!

However, from the source code it should be dead easy to
add the functionality we need.

All I have to do is find out how to compile celestia on windows.
My Linux box is a bit underpowered and has other important
things to do...

Posted: 28.06.2002, 09:52
by Buzz
Here is my very simple script:

******************************************************
{

# View the planets from a fixed distance from their centre of 2.5 Jupiter radii
# Calculated using radii in solarsys.ssc

select { object "Sol" }
goto { time 0 }
wait { duration 7 }

select { object "Mercury" }
goto { time 0 distance 73.15 }
wait { duration 7 }

select { object "Venus" }
goto { time 0 distance 29.49 }
wait { duration 7 }

select { object "Earth" }
goto { time 0 distance 27.99 }
wait { duration 7 }

select { object "Mars" }
goto { time 0 distance 52.59 }
wait { duration 7 }

select { object "Jupiter" }
goto { time 0 distance 2.5 }
wait { duration 7 }

select { object "Saturn" }
goto { time 0 distance 2.96 }
wait { duration 7 }

select { object "Uranus" }
goto { time 0 distance 6.81 }
wait { duration 7 }

select { object "Neptune" }
goto { time 0 distance 7.08 }
wait { duration 7 }

select { object "Pluto" }
goto { time 0 distance 156.99 }
wait { duration 7 }

}
***********************************************
Most planets become very small, because I chose Jupiter to just fill the screen. Another distance would require calculating everything again, so I like your idea to add the possibility to set a distance in AU or whatever! Can't help you with compiling on windows though :(

Posted: 28.06.2002, 16:51
by chris
There's not a better way to do this right now, unfortunately. The scripting language in 1.2.5 will be much more flexible.

--Chris

Posted: 28.06.2002, 22:15
by steve.wray
chris wrote:There's not a better way to do this right now, unfortunately. The scripting language in 1.2.5 will be much more flexible.

--Chris


Excellent! Can I beta?

Posted: 03.07.2002, 12:59
by slashi
Isn't it a secret when we can expect next verion release?