i have to use audio video play back in my project. i want to texture video in brume, but i dont know how. can any body help me in this.
thanks
Moderator: Brume Dev Team
// loading video as a texture
BrumeVideoTexture video = BrumeVideo.GetTexture("starcraft_ii_video_1_-_trailer_anglais_37078.avi",256);
video.Start();
// creating a screen
BrumeSquareTextured movieScreen = new BrumeSquareTextured(this, "movieScreen");
movieScreen.RenderStates.Lighted = false;
movieScreen.RenderStates.Culling = BrumeRenderParams.CULLING_NO;
movieScreen.RenderStates.Texture[0] = video;
// computing screen ratio
movieScreen.HasGlobalSize = false;
movieScreen.XSize = (float)video.VideoWidth / 100.0f;
movieScreen.YSize = (float)video.VideoHeight / 100.0f;
movieScreen.Pos = new BrumeVector(-384.7f, 59.9f, 248.1f);
movieScreen.OrientInDirection(BrumeVector.XAXIS, BrumeAngle.ToRadian(270));
Users browsing this forum: No registered users and 0 guests