Game Development Community

About Scatter Sky

by Dimitris Matsouliadis · in Torque 3D Professional · 02/26/2013 (4:33 pm) · 3 replies

Hi all
I use Scatter sky in a multiplayer game project.
How to change Scatter sky parameters for only one Client?
Would actually like when a player or a group of players enter an area to change the skyBrightness and Brightness.
Only on a client side. Can i do this with an easy way or i need engine changes?
I use ScatterSky and a client side trigger for any region, to check the in/out.

#1
02/27/2013 (8:29 am)
I'm pretty sure that would require engine changes, but someone might be able to elaborate further on this.
#2
02/27/2013 (3:56 pm)
Networking of these objects in Torque is a one way street -- changes on the server are replicated to clients, but changes on clients are not replicated to the server.

While not being the intent here, this actually allows you to make changes to the client-side object without affecting server-side state. However, if there *are* changes on the server side, they will overwrite changes made to client objects.

For every object on the server that is actively replicated to a specific client, you can get to that object by looking up the "ghost" object for it. For a singleton-like object like ScatterSky, you could simply search through the client mission object set (forgot the specifics of how to retrieve that but it's easy). Also, stuff like ScatterSky will be among the objects that are always actively replicated so it should always be there once it first arrived on the client's network stream.

If there isn't a huge fuckup somewhere in the code, rendering should always grab the ScatterSky from the client object set and not the server object set even when not running a client-only game.
#3
03/03/2013 (11:15 am)
Sometime I will come face to face with the question anyway.
I just have to finish some pieces of code that are very valuable first.
Post will examine the issue.The player needs to move in a parallel environment world, an instance.

Thaks for your answers, I was wondering if there is something ready...