Video issue
by Tasty Green Pees :-, · in General Discussion · 03/04/2006 (9:15 am) · 4 replies
I'm trying to add video in my gui. But I'm having a little problem.
see I got my .ogg video file (small.ogg) in the same dirctory as I've got my mainMenuGui.gui from where I'm calling it...
like this...
yet I keep getting this error...
Why's this?
see I got my .ogg video file (small.ogg) in the same dirctory as I've got my mainMenuGui.gui from where I'm calling it...
like this...
new GuiTheoraCtrl(MyVideo) {
profile = "GuiDefaultProfile";
horizSizing = "relative";
vertSizing = "relative";
position = "40 25";
extent = "320 240";
minExtent = "8 2";
visible = "1";
done = "0";
stopOnSleep = "1";
backgroundColor = "0 0 0 255";
};
};
//--- OBJECT WRITE END ---
MyVideo.setFile("./small.ogg");yet I keep getting this error...
Loading compiled script tutorial.base/client/ui/mainMenuGui.gui. TheoraTexture::setFile - Theora file './small.ogg' not found.
Why's this?
About the author
#2
03/04/2006 (1:10 pm)
I did. they are both in the same directory. when the mainMenuGUI everything else loads... inlcuding the bg which is also in the same directory but not the video.
#3
03/04/2006 (2:06 pm)
The way that setFile works doesn't really allow for the use of "./". The GuiBitmapCtrls do a little extra work to see if the bitmap exists in the same directory as the gui. Theora textures don't. If you have a video in torque/example/demo/client/ui/small.ogg then you would want to call setFile like so:MyVideo.setFile("demo/client/ui/small.ogg");
#4
03/06/2006 (3:54 am)
Thankyou Jon. this did that trick
Torque 3D Owner Donald "Yadot" Harris
Marveloper