Posts by su27
- 27.09.2010, 07:50
- Forum: Help Central
- Topic: How to change the camera's offset in C++
- Replies: 4
- Views: 4606
Re: How to change the camera's offset in C++
Thank you very much Chris, I've read your reply and post. My image may not be very large,just 2 times of the screen,such as the resolution of 2560x1024. My idea is first to use the function void Frustum::transform(const Mat4f& m) use a 4x4 matrix to cut the current frustum. Thus, with certain ma...
- 25.09.2010, 15:34
- Forum: Development
- Topic: LAN Time synchonize function
- Replies: 2
- Views: 5250
Re: LAN Time synchonize function
I think the time sychonize function must be called by key pressed,
if called from Menu, there will be lag of time, merely a few seconds.
if called from Menu, there will be lag of time, merely a few seconds.
- 25.09.2010, 15:28
- Forum: Development
- Topic: LAN Time synchonize function
- Replies: 2
- Views: 5250
LAN Time synchonize function
The attachment is the LAN time synchonize function I've wrote. You can copy it to the source code of Celestia 1.6.0 You can set the server or client state (whether it's a client or a server, what's the port and IP address) of a Celestia instance in clientlist.txt, or in the Time menu (should disable...
- 25.09.2010, 02:19
- Forum: Help Central
- Topic: How to change the camera's offset in C++
- Replies: 4
- Views: 4606
Re: How to change the camera's offset in C++
I've examined it selden
maybe it does not need to be done by render to a large buffer.
It can be done by rotate the camera, and change the "Frustum" parameter.
But it's hard to examine where to change the code.
maybe it does not need to be done by render to a large buffer.
It can be done by rotate the camera, and change the "Frustum" parameter.
But it's hard to examine where to change the code.
- 24.09.2010, 11:44
- Forum: Help Central
- Topic: How to change the camera's offset in C++
- Replies: 4
- Views: 4606
How to change the camera's offset in C++
Imagine now the resolution of the screen is 1024x768, and the display content is from (0,0) to (1024,768) I want to display the content of (-1024,0) to (0,768) thus I can merge 3 screens together horizontally (simply rotate the camera horizontally is not right) How to do this? thx :mrgreen: or where...
- 20.09.2010, 16:52
- Forum: Help Central
- Topic: How to set Celestia's time in C++
- Replies: 5
- Views: 3709
Re: How to set Celestia's time in C++
Su27, I know that other people have synchronized Celestia's time using data read from a network connection, so it's possible. Setting the time shouldn't cause a crash, even if it's done in a separate thread (though as Selden mentioned, you may see strange results if you update the time mid-frame.) ...
- 20.09.2010, 14:59
- Forum: Help Central
- Topic: How to set Celestia's time in C++
- Replies: 5
- Views: 3709
Re: How to set Celestia's time in C++
SU27, Your comments are ambiguous. Do you mean that your C++ code is calculating a velocity? (it should not) sorry, selden,my English is not so good. I mean that I'm writing a time synchonizing function for Celestia, which is listening to the time data sent from a server via UDP protocol. what I wa...
- 20.09.2010, 13:51
- Forum: Help Central
- Topic: How to set Celestia's time in C++
- Replies: 5
- Views: 3709
How to set Celestia's time in C++
I've modified Celestia to a network time synchonizing program the function to set time is appCore->getSimulation()->setTime(curTime); the time data(curTime) is sent from the network server,so it can share the same time with the server. but sometimes the Celestia program crash,when it synchonize time...
- 11.09.2010, 06:49
- Forum: Help Central
- Topic: How to change observer to look from one satellite to another
- Replies: 2
- Views: 2450
Re: How to change observer to look from one satellite to ano
Thank you very much!
- 01.09.2010, 13:52
- Forum: Help Central
- Topic: How to change observer to look from one satellite to another
- Replies: 2
- Views: 2450
How to change observer to look from one satellite to another
I've created two satellites,whose orbits are dynamicly changing.
How to write the observer's script,
so that it can dynamicly look from one satellite to another.
I've tried observer:lookat,but it does not work properly.
How to write the observer's script,
so that it can dynamicly look from one satellite to another.
I've tried observer:lookat,but it does not work properly.