How to disable fog for one client only?
by Liu Yi · in Torque Game Engine · 12/07/2006 (1:12 am) · 6 replies
I want to disable the fog for one client player only, while the fog still exist for the other players.
I know that by changing the parameters of the Sky object, the fog can be disabled. However, it seems that the fog disappear for the other players as well.
Is there anyway to disable the fog for one client only?
I know that by changing the parameters of the Sky object, the fog can be disabled. However, it seems that the fog disappear for the other players as well.
Is there anyway to disable the fog for one client only?
#2
how do i know which client calls the render function? and how can i get the information about the client during the render call?
sorry if the question seems stupid.
12/07/2006 (2:23 am)
I'm not sure about how the render call works with the server-client system.how do i know which client calls the render function? and how can i get the information about the client during the render call?
sorry if the question seems stupid.
#3
If the feature is not all that serious (ie, if it was hacked it would not break the game) then I would just make some checks and be done with it. Think of the common radar systems in games. They are 99% of the time client based because the client has access to the players around it (for scoping and prediction) anyway.
12/07/2006 (2:54 am)
It does not work directly with the server-client system. There is no way you can control what is rendered on a clients screen because it can always tell you (the server) what you want to know instead of the real thing.If the feature is not all that serious (ie, if it was hacked it would not break the game) then I would just make some checks and be done with it. Think of the common radar systems in games. They are 99% of the time client based because the client has access to the players around it (for scoping and prediction) anyway.
#4
are you suggest that this feature cannot be implemented?
Any other people out there how to do it?
12/07/2006 (3:54 am)
Stefan, not sure that i understand you.are you suggest that this feature cannot be implemented?
Any other people out there how to do it?
#5
Rendering is clientside only, of course. That was what Stefan meant when he said it's not part of the client-server system.
12/07/2006 (6:11 am)
Stefan has suggested what I would also suggest: change the fog rendering code so that it only renders the fog if a (newly created) global boolean "renderFog" is true.Rendering is clientside only, of course. That was what Stefan meant when he said it's not part of the client-server system.
#6
12/07/2006 (6:18 am)
To extend Stefans idea: The server could use a custom command to send the information to the specific client to turn off fog rendering. Use commandToClient to send the client the information and on the client-side then you need to turn the fog off.
Torque Owner Stefan Lundmark