Camera questions...
by Gonzo T. Clown · in Torque Game Engine · 02/29/2004 (2:23 pm) · 10 replies
Can I focus all the clients on a server onto ONE camera, or will I have to focus all client cameras onto the same spot?
Second, if I have to focus each clients camera because one camera for all is not possible, can I NOT ghost each clients camera to the other clients since they really do not need to be aware of the other clients cameras?
I'm trying to save network bandwidth as much as possible to optimize players per server.
Thanks for any help.
Second, if I have to focus each clients camera because one camera for all is not possible, can I NOT ghost each clients camera to the other clients since they really do not need to be aware of the other clients cameras?
I'm trying to save network bandwidth as much as possible to optimize players per server.
Thanks for any help.
About the author
#2
02/29/2004 (7:57 pm)
EDIT: Double post, sorry.
#3
Client's cameras are not ghosted to other clients.
02/29/2004 (10:18 pm)
You can have all the clients share the same camera. Of course, they might all end up fighting over control of it. ;)Client's cameras are not ghosted to other clients.
#4
That way if I transfered them to another view, I could just update their camera change instead of repositioning possibly dozens of cameras.
02/29/2004 (11:40 pm)
Thanks a lot Ben, I was a little confused about this possibility. If you could, could you possibly shed some light as to how I would intercept their normal camera to hook them into the "Main Camera" What I'm basicaly trying to do is put all observers onto an observer camera, insead of having their cameras transformed to an observer marker which would be the normal way of doing it.That way if I transfered them to another view, I could just update their camera change instead of repositioning possibly dozens of cameras.
#5
Then say... %conn.setControlObject(%blah);
%conn being the connection and %blah being the camera you want to use.
Might want to set up the camera so it doesn't accept player moves though, if it's animated.
02/29/2004 (11:58 pm)
Get a handle to their connection.Then say... %conn.setControlObject(%blah);
%conn being the connection and %blah being the camera you want to use.
Might want to set up the camera so it doesn't accept player moves though, if it's animated.
#6
Thanks again Ben. Much appreciated.
03/01/2004 (12:55 am)
Ahhh, so I can set multiple clients to control the same camera, and then control the camera with the server while ignoring their inputs. Cool, I was hoping that could be done. I wasn't aware that multiple clients could be assigned the same object. Now I know.Thanks again Ben. Much appreciated.
#7
for(Loop through clients)
{
%conn.setControlObject($CurrentCamera);
}
The last client ends up with the camera, and the rest end up screwed. As if they had exited the GUI editor without a GUI. Any idea what i might be doing wrong? As best I can tell, only one client can control a camera at any given time.
04/10/2004 (11:58 am)
Ben, or anyone, I have been trying to accomplish this task, but I cant seem to get it to work. When I use..for(Loop through clients)
{
%conn.setControlObject($CurrentCamera);
}
The last client ends up with the camera, and the rest end up screwed. As if they had exited the GUI editor without a GUI. Any idea what i might be doing wrong? As best I can tell, only one client can control a camera at any given time.
#8
Just a wild guess.
04/10/2004 (12:00 pm)
If the Canvas is not rendered (like you described with the no-gui when exiting the editor) there is probably an error with playgui or the camera object, maybe?Just a wild guess.
#9
What I'm trying to do, is basicly replicate the demo except for multiple users to be able to log in and view it from the same player, so the server can run one camera and feed the info to all the clients, instead of doing the same task on every clients camera at the same time.
Ben Seemed to think it was possible by taking control of the camera movement away, and setting each client to the camera using the above method of %client.setControlObject($CurrentCamera);, but its not working for me. I just wondered if anyone knew the correct way to do this because a forum search has turned up pretty empty camera wise.
04/10/2004 (1:09 pm)
I got that taken care of, but my original problem still remains.What I'm trying to do, is basicly replicate the demo except for multiple users to be able to log in and view it from the same player, so the server can run one camera and feed the info to all the clients, instead of doing the same task on every clients camera at the same time.
Ben Seemed to think it was possible by taking control of the camera movement away, and setting each client to the camera using the above method of %client.setControlObject($CurrentCamera);, but its not working for me. I just wondered if anyone knew the correct way to do this because a forum search has turned up pretty empty camera wise.
#10
04/10/2004 (6:45 pm)
Chances are that the code doesn't allow multiple connections to share a control object. You might try looking through setControlObject to see if it's easy to disable (should be).
Torque Owner Gonzo T. Clown