This time AI2TV really works. We are ready for the demo. I am going to crash now.

suhit [2002-03-07 04:49:51]
This time AI2TV really works. We are ready for the demo. I am going to crash now.
Filename
client90/AIVideoPlayer.cpp
client90/ChimeSector.cpp
client90/ChimeSector.h
client90/ChimeSystemDriver.cpp
client90/chimeClient.opt
client90/chimeClient.plg
client90/data/ai2tv/session.txt
diff --git a/client90/AIVideoPlayer.cpp b/client90/AIVideoPlayer.cpp
index 10956a6..9e4560b 100644
--- a/client90/AIVideoPlayer.cpp
+++ b/client90/AIVideoPlayer.cpp
@@ -405,7 +405,7 @@ int AIVideoPlayer::DisplayFrame(iMaterialWrapper *frame_material){
 	room = sec2->GetRoom(0);

 	// This chimeSector method is used to actually put the frame on the wall...
-	iMeshWrapper *doormesh = sec2->BuildSideDoor(sec2->GetRoom(0), screen_position, csVector3(-0.5,1.6,0.5), frameSize, frame_material, frameTxtSize);
+	iMeshWrapper *doormesh = sec2->PutImageOnScreen(sec2->GetRoom(0), screen_position, csVector3(-0.5,1.6,0.5), frameSize, frame_material, frameTxtSize);
 	room->ShineLights ();
 	}
 LOCKED=false;
@@ -605,7 +605,7 @@ void AIVideoPlayer::Initialize(){
 	}	else {
 	debug(1,"FRAME LIST SETUP FAILED");
 	}
-	LoadAudio();
+//	LoadAudio();

 	runFrameManager();
 		return;
@@ -721,4 +721,4 @@ void AIVideoPlayer::time_changed(){
 			PlayerWindow->SetText(play);
 		}

-}
\ No newline at end of file
+}
diff --git a/client90/ChimeSector.cpp b/client90/ChimeSector.cpp
index 81728a6..2b985cd 100644
--- a/client90/ChimeSector.cpp
+++ b/client90/ChimeSector.cpp
@@ -1938,6 +1938,55 @@ iMeshWrapper* ChimeSector::BuildSideDoor(iSector *room, csVector3 const &objPos,
 	return doormesh;
 }

+
+/*************************************************
+****  AI2TV Screen - Put Image on wall - ADDED BY DOV 3/6/02
+****
+**************************************************/
+// Build a image onto the aivideo screen
+iMeshWrapper* ChimeSector::PutImageOnScreen(iSector *room, csVector3 const &objPos, csVector3 const &offset, csVector3 const &size, iMaterialWrapper *txt, csVector3 const &txtSize)
+{
+
+	iMeshWrapper *doormesh = engine -> CreateSectorWallsMesh(room, "side_door");
+	iThingState *sidedoor = SCF_QUERY_INTERFACE(doormesh->GetMeshObject(), iThingState);
+
+	csVector3 pos(4.9999, 0, 7); //FIXIT: Should NOT be hardcoded
+	pos.z = objPos.z;
+//	pos.x = 4.9999 //FIXIT: This is not smart way
+
+	if(objPos.x > 0){
+		pos += offset;
+
+		iPolygon3D* sideDoorTemp;
+
+		sideDoorTemp = BuildWall(sidedoor, "side_door", size, pos, RIGHT, txt, txtSize);
+
+		SetSideDoor(sideDoorTemp, nextSideDoorNum);
+		SetSideDoorDirection(nextSideDoorNum, RIGHT);
+		SetSideDoorLocation(nextSideDoorNum, pos);
+	}else{
+		pos.x = -pos.x;
+		pos += offset;
+
+		iPolygon3D* sideDoorTemp;
+
+		sideDoorTemp = BuildWall(sidedoor, "side_door", size, pos, LEFT, txt, txtSize);
+
+		SetSideDoor(sideDoorTemp, nextSideDoorNum);
+		SetSideDoorDirection(nextSideDoorNum, LEFT);
+		SetSideDoorLocation(nextSideDoorNum, pos);
+	}
+
+	++nextSideDoorNum;
+
+	return doormesh;
+}
+
+/*************************************************
+****  END {ADDED BY DOV 3/6/02}
+****
+**************************************************/
+
 //get the side door url associated with this doornum
 char* ChimeSector::GetSideDoorUrl(int doorNum)
 {
diff --git a/client90/ChimeSector.h b/client90/ChimeSector.h
index 49fa98a..ac67490 100644
--- a/client90/ChimeSector.h
+++ b/client90/ChimeSector.h
@@ -281,7 +281,8 @@ public:

 	// ADDED BY Suhit - to build ai2tv screen
 	iPolygon3D* BuildScreenOnWall(iSector *room, csVector3 const &objPos, csVector3 const &offset, csVector3 const &size, iMaterialWrapper *txt, csVector3 const &txtSize);
-
+	// ADDED by DOV - to put AIVideo Frames on Screen
+	iMeshWrapper* ChimeSector::PutImageOnScreen(iSector *room, csVector3 const &objPos, csVector3 const &offset, csVector3 const &size, iMaterialWrapper *txt, csVector3 const &txtSize);
 };


diff --git a/client90/ChimeSystemDriver.cpp b/client90/ChimeSystemDriver.cpp
index 910ecc6..5dc718b 100644
--- a/client90/ChimeSystemDriver.cpp
+++ b/client90/ChimeSystemDriver.cpp
@@ -1493,7 +1493,7 @@ bool ChimeSystemDriver::HandleLeftMouseClick(iEvent &Event)

 		objPos = selectedMesh->GetMovable()->GetPosition() - offset;

-		DrawSideDoor(objPos, offset, selectedMesh->QueryObject()->GetName());
+	// DOV 03/06/02	DrawSideDoor(objPos, offset, selectedMesh->QueryObject()->GetName());

 	}
 	else
diff --git a/client90/chimeClient.opt b/client90/chimeClient.opt
index a4241e5..efaa75a 100644
Binary files a/client90/chimeClient.opt and b/client90/chimeClient.opt differ
diff --git a/client90/chimeClient.plg b/client90/chimeClient.plg
index d7a49a8..9e0e376 100644
--- a/client90/chimeClient.plg
+++ b/client90/chimeClient.plg
@@ -6,14 +6,19 @@
 --------------------Configuration: chimeClient - Win32 Debug--------------------
 </h3>
 <h3>Command Lines</h3>
-Creating temporary file "C:\DOCUME~1\Suhit\LOCALS~1\Temp\RSPDB2.tmp" with contents
+Creating temporary file "C:\DOCUME~1\suhit\LOCALS~1\Temp\RSP69.tmp" with contents
 [
 /nologo /MT /W3 /Gm /GX /ZI /Od /D "NDEBUG" /D "_WINDOWS" /D "WIN32" /D "WIN32_VOLATILE" /D "__CRYSTAL_SPACE__" /FR"Debug/" /Fp"Debug/chimeClient.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
 "C:\pslroot\psl\chime\client90\AICacheController.cpp"
 "C:\pslroot\psl\chime\client90\AICommController.cpp"
+"C:\pslroot\psl\chime\client90\AIDownloader.cpp"
 "C:\pslroot\psl\chime\client90\AISyncController.cpp"
+"C:\pslroot\psl\chime\client90\AITimeController.cpp"
+"C:\pslroot\psl\chime\client90\AIVideoFrame.cpp"
+"C:\pslroot\psl\chime\client90\AIVideoFrameBuffer.cpp"
 "C:\pslroot\psl\chime\client90\AIVideoPlayer.cpp"
 "C:\pslroot\psl\chime\client90\AIVideoPlayerWindow.cpp"
+"C:\pslroot\psl\chime\client90\AlwaysVisibleWindow.cpp"
 "C:\pslroot\psl\chime\client90\ChatWindow.cpp"
 "C:\pslroot\psl\chime\client90\ChimeApp.cpp"
 "C:\pslroot\psl\chime\client90\ChimeComm.cpp"
@@ -23,15 +28,18 @@ Creating temporary file "C:\DOCUME~1\Suhit\LOCALS~1\Temp\RSPDB2.tmp" with conten
 "C:\pslroot\psl\chime\client90\ChimeWorldView.cpp"
 "C:\pslroot\psl\chime\client90\comm_client\ClientComm.cpp"
 "C:\pslroot\psl\chime\client90\ConnectWindow.cpp"
+"C:\pslroot\psl\chime\client90\GetObjectWindow.cpp"
 "C:\pslroot\psl\chime\client90\HistoryWindow.cpp"
 "C:\pslroot\psl\chime\client90\InfoStorer.cpp"
 "C:\pslroot\psl\chime\client90\comm_client\SienaPublisher.cpp"
 "C:\pslroot\psl\chime\client90\comm_client\SienaSubscriber.cpp"
+"C:\pslroot\psl\chime\client90\SienaWindow.cpp"
 "C:\pslroot\psl\chime\client90\comm_client\UDPClient.cpp"
 "C:\pslroot\psl\chime\client90\comm_client\UDPServer.cpp"
+"C:\pslroot\psl\chime\client90\VEMWindow.cpp"
 ]
-Creating command line "cl.exe @C:\DOCUME~1\Suhit\LOCALS~1\Temp\RSPDB2.tmp"
-Creating temporary file "C:\DOCUME~1\Suhit\LOCALS~1\Temp\RSPDB3.tmp" with contents
+Creating command line "cl.exe @C:\DOCUME~1\suhit\LOCALS~1\Temp\RSP69.tmp"
+Creating temporary file "C:\DOCUME~1\suhit\LOCALS~1\Temp\RSP6A.tmp" with contents
 [
 Cache.lib urlmon.lib zlib.lib png.lib libjpeg.lib dinput.lib dxguid.lib winmm.lib libcsengine.lib libcsgeom.lib libcsgfx.lib csparser.lib libcssys.lib libcsutil.lib libcstool.lib libcsws.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:windows /verbose /incremental:yes /pdb:"Debug/chimeClient.pdb" /machine:I386 /nodefaultlib:"libcmt.lib" /out:"Debug/chimeClient.exe" /pdbtype:sept
 .\Debug\AICacheController.obj
@@ -63,36 +71,42 @@ Cache.lib urlmon.lib zlib.lib png.lib libjpeg.lib dinput.lib dxguid.lib winmm.li
 .\Debug\UDPServer.obj
 .\Debug\VEMWindow.obj
 ]
-Creating command line "link.exe @C:\DOCUME~1\Suhit\LOCALS~1\Temp\RSPDB3.tmp"
+Creating command line "link.exe @C:\DOCUME~1\suhit\LOCALS~1\Temp\RSP6A.tmp"
 <h3>Output Window</h3>
 Compiling...
 AICacheController.cpp
 AICommController.cpp
+AIDownloader.cpp
 AISyncController.cpp
-ChimeSector.cpp
-ChimeSystemDriver.cpp
+AITimeController.cpp
+AIVideoFrame.cpp
+AIVideoFrameBuffer.cpp
 AIVideoPlayer.cpp
-c:\pslroot\psl\chime\client90\chimesystemdriver.cpp(702) : warning C4715: 'ChimeSystemDriver::GetInvisibleAlpha' : not all control paths return a value
-c:\pslroot\psl\chime\client90\chimesystemdriver.cpp(717) : warning C4715: 'ChimeSystemDriver::GetVisibleAlpha' : not all control paths return a value
 AIVideoPlayerWindow.cpp
+AlwaysVisibleWindow.cpp
 ChatWindow.cpp
 ChimeApp.cpp
 ChimeComm.cpp
+ChimeSector.cpp
+ChimeSystemDriver.cpp
 ChimeWindow.cpp
+c:\pslroot\psl\chime\client90\chimesystemdriver.cpp(702) : warning C4715: 'ChimeSystemDriver::GetInvisibleAlpha' : not all control paths return a value
+c:\pslroot\psl\chime\client90\chimesystemdriver.cpp(717) : warning C4715: 'ChimeSystemDriver::GetVisibleAlpha' : not all control paths return a value
 ChimeWorldView.cpp
 ClientComm.cpp
 ConnectWindow.cpp
+GetObjectWindow.cpp
 HistoryWindow.cpp
 InfoStorer.cpp
 SienaPublisher.cpp
 SienaSubscriber.cpp
+SienaWindow.cpp
 UDPClient.cpp
 UDPServer.cpp
+VEMWindow.cpp
 Linking...
 Processed /NODEFAULTLIB:libcmt.lib
 Processed /NODEFAULTLIB:libcmt.lib
-Processed /NODEFAULTLIB:libcmt.lib
-Processed /NODEFAULTLIB:libcmt.lib

 Start Pass1
 Processed /DEFAULTLIB:uuid.lib
diff --git a/client90/data/ai2tv/session.txt b/client90/data/ai2tv/session.txt
index d7e5bc2..c6f0668 100644
--- a/client90/data/ai2tv/session.txt
+++ b/client90/data/ai2tv/session.txt
@@ -1,6 +1,6 @@
 1
 250 localhost
-http://www.cs.columbia.edu/~dk315/ai2tv/1
+http://www.cs.columbia.edu/~suhit/ai2tv/1
 frame_index.txt
 -------------------------------------------------------