Search the Community
Showing results for tags 'WidgetSpriteVideo'.
-
[SOLVED] Can't get ObjectGui + WidgeSpriteVideo to work in C++
joseph.howell posted a topic in C++ Programming
Hi, I'm trying to implement ObjectGui + WidgetSpriteVideo in C++, following the example in gui_00. So far, nothing shows up. Here's my initialization code: objectGui = ObjectGui::create(20.0f, 15.0f); objectGui->setTransform(Mat4(translate(0.0f, 0.0f, 8.0f) * rotateY(90.0f) * rotateZ(90.0f))); objectGui->setMaterial(lookupId.c_str(), "*"); objectGui->setProperty("surface_base", "*"); objectGui->setMaterialState("mode", 1, 0); GuiPtr gui = objectGui->getGui(); sprite_video = WidgetSpriteVideo::create(gui, "resources/data/sanctuary.ogv"); gui->addChild(sprite_video->getWidget(), Gui::ALIGN_EXPAND); sprite_video->setVideoTime(0.0f); sprite_vide->play(); If I replace my gui pointer with the regular GUI, then it works as expected and I can see the video playing, but it takes up the whole screen. //replace this one line and it works on the whole screen gui GuiPtr gui = Gui::get(); //objectGui->getGui(); So it's like I can't see the ObjectGui I created. Even though I know my camera is at the origin when I start up, and it should be putting that ObjectGui around the origin too. I have flown around, trying different camera angles just in case the ObjectGui was back-facing. It doesn't show up from any angle. Suggestions? Thanks -
Hi When I play the game on my computer using (launch_release.bat) the video and animation is in sync but when the client plays it on a faster computer the video and animation is out of sync :( I've also tested on a faster computer with a good video card and it's in sync! Why would this be? I set video by email the animation and video starts at 0:26