//string firstLoadDataPath = "Assets/StreamingAssets/" + Launcher.instance.GetSceneName + "/firstLoad_"; public LocalServer(CloudSocket cloudSocket, CTSMarker ctsMarker) { mCloudSocket = cloudSocket; mCTSMarker = ctsMarker; switch (Launcher.instance.GIMode) { case eGiMode.Enlighten: mRadianceCollector = new EnlightenRadianceCollector(); break; case eGiMode.RSM: break; case eGiMode.LPV: break; case eGiMode.Visible: mRadianceCollector = new VisibleRadianceCollector(); break; } mRadianceCollector.Setup(); GetReuseDataFile(); }
public LocalServer(CloudSocket cloudSocket) { mCloudSocket = cloudSocket; switch (Launcher.instance.GIMode) { case eGiMode.Enlighten: mRadianceCollector = new EnlightenRadianceCollector(); break; case eGiMode.RSM: break; case eGiMode.LPV: break; } mRadianceCollector.Setup(); }
//判断该路径中是否有注视行为 public bool isValidGaze(List <BrowseRecord> _record, out HashSet <string> gezeComponents) { int mWebClientExchangeCode = 4000; int Param = 3840451; //List<BrowseRecord> tmpList = getLastPoints(_record); HashSet <string> result = new HashSet <string>(); for (int i = 0; i < _record.Count; i++) { int height = Param % mWebClientExchangeCode; int width = Param / mWebClientExchangeCode; ClientObjectAttribute clientObject = new ClientObjectAttribute(); clientObject.CameraPosX = _record[i].pos.x; clientObject.CameraPosY = _record[i].pos.y; clientObject.CameraPosZ = _record[i].pos.z; clientObject.CameraRotX = _record[i].rot.x; clientObject.CameraRotY = _record[i].rot.y; clientObject.CameraRotZ = _record[i].rot.z; mRadianceCollector.Setup(); mRadianceCollector.Collect(width, height, clientObject); HashSet <string> components = mRadianceCollector.getCenterComponents(width, height, clientObject); if (result == new HashSet <string>()) { result = components; } else { result.IntersectWith(components); } //Debug.Log(components); } if (result.Count == 0) { gezeComponents = result; return(true); } gezeComponents = null; return(false); }