Open HealerSu opened 7 years ago
Why does your MyRoom object have 2 RATProjectionManger scripts active? That will definitely cause troubles.
Can you post the following: Unity Version? Screenshots of your User inspector? Screenshot of your Projector_wall inspector?
@hbenko well to get your answer,my Unity Version is 5.6.0f3,and here is my screenshot and my actual world shot:
It seems that you are no longer getting black Game window. Is that correct?
If you move the User's position in the scene do you get a moving image in the Game window?
Also, can you verify that you don't have 2 RATProjectionManager scripts attached to your MyRoom node.
@hbenko It's no longer getting black Game Window ,there is a virtual3DMdel and a virtualTextures,but the background is also black, and also keep debbuging the same error. If i move the User's position in the scene, i really got a moving image in the Game window. and i am sure that i have delete the double RATProjectionManager scripts and now just have 1 RATProjectionManager scripts attached to my MyRoom node. But also keep debugging error when i run the scene.Some screen shot like this:
@hbenko Hello, ah... I have solve the error and now all is good,there is no error debug when i run the scene.When i was in front of the kinect camera, the virtual 3DModels of GameWindow moved if i move,just follow me . But the Background of the GameWindow is also black,How can i make the background not black and make some beautiful background?What does this example scene used for?And how can i do if i want to make a RoomAlive Game ,for example,some balls on the walls ,and some people can hit the ball by do some gesture?
@HealerSu Any information on how you fixed it? I'm getting the same error.
My game window isn't black, it's showing the scene roughly rendered from the perspective of my projector (I think the projector camera is disabled by default, if I click the checkbox in the editor while running the project, the screen becomes black, and the preview window for that camera is always black, too. I suppose what's rendered in the game view is just some default view from the center of the coordinate system).
But unfortunately I'm not seeing any "live streamed kinect data" anywhere, nothing in the game view or scene view changes when I move stuff in front of the Kinect, except in the GUI of the Kinect server itself (whose console log also confirms that the client connected). See screenshot:
I'm on Unity 5.6.1f, using the toolkit version cloned from here just a couple of hours ago. I should note that adding a "user" doesn't change much, except that it's view frustum seems to be drawn over everything else in the screen making the screen show up black until I move the user away in the scene view.
Oh, I just noticed that the client connects to the server, but seems to disconnect immediately after. Perhaps a clue?
Actually while the error is still there and the game window is black, everything seems to work as intended. I simply needed to move the Kinect back a bit, standing too close to it seems to prevent it from working.
Your game window does not look black in the images you sent. Is it working properly?
WRT the client disconnecting: there are multiple simultaneous connections, one of which is for the "Config" server port. Once the client gets all the required configuration data, it closes that connection, so that is what you are seeing. This is expected behavior. The other connections are still open which you can see in the Clients list (bottom left).
Hi, thanks for the quick response. The issue described in here is solved now.
The non-black game screen was in a scene without a 'user' game object, just rendered from a normal camera. I removed the user because everything in its view frustum turned black (because projection mapping hadn't been configured yet).
I was confused as to why moving objects placed in front of the Kinect weren't showing up, fortunately that was fixed by just moving the Kinect back a bit (and recalibrating). The console errors fortunately disappeared when I followed the rest of the tutorial for setting up projection mapping. I didn't find out what exactly happened, probably some texture is missing or wrongly configured until you set the rest of the system up, and that's why that error shows up.
Projection mapping from the point of view of the Kinect camera works fine now, but I can't get the app to track 'me' when I stand in front of the Kinect (even though the kinect seems to track me fine), but I may create a separate issue for that tomorrow if I can't fix it.
Thanks for the help regarding the server connections, makes sense.
I got this 'tex->GetWidth() == width && tex->GetHeight() == height'"' error too, but I found out it happens if your game window in the editor is too small. Just increase the size and it should disappear.
I have calibrate projection succesfully and here is my calibrated xml. i have done all follow the document step by step , but when i run the unity scene,the GameWindows is all black and editor keep debbuging an error : "Assertion failed on expression: 'tex->GetWidth() == width && tex->GetHeight() == height'".I don't know what's happenning,would u give me some help?
ThirdFloor.txt