• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
kaitodomoto

Playing a video in OpenGL

7 posts in this topic

Hi, I'm not new to C# but I can't say I'm an expert in it either. But that's off-topic. Okay so, Let me break down what I'm trying to do. 

So, I have a game that I'm trying to make a executable(EXE) file to run it, but what I want to do is when the client(or exe whatever you want to call it) is ran, I would like it to play a certain video(e.g. like 5 secs long) then go it to the main menu screen. But so far I can't seem to find anyway to do this in OpenGL or in this case SharpGL(.NET version of OpenGL). People keep telling me make textures and add the video to it, but when I go through the code I can't seem to find anything there(unless I'm completely missing something), unless I'm not using the right library, I don't know what to do. A friend of mine was able to do it in C++ with OpenGL but that, in my opinion is completely different, since I'm still learning C++, I cannot attempt to make it in that language without taking weeks to look stuff up and learn.

 

So to summarize is there a way to play a video using this library? If not is there an alternative that I can use to do this. 

 

Small note: Basically what I'm trying to achieve, is go from a normal game, to a client-server game, and eventually learn to make a mmo(dream a very far dream.) So far, I'm trying to make the client-server part, which this is for.

 

Hopefully I made some sense,

 

Thanks for reading,

    kaitodomoto

 

P.S: I'm new to the forum, I have yet to read the rules(if any), not sure if this belongs here, if it doesn't, then the mods can do what they want with it.

0

Share this post


Link to post
Share on other sites

You could take a look at this tutorial from nehe, a bit outdated but it still work. Otherwise, you need to find a library that can decompress the video frame and render those as texture.

Edited by Vortez
1

Share this post


Link to post
Share on other sites

I can't seem to find the code in the SharpGL library, the closest thing I found was 

SharpGL.SceneGraph.Assets.Texture

But other then that nothing.

I guess it time to look for a library, I know there's SDL.NET but I tried using that once and it did not work out well.

 

Do you by any chance have any library's that you'd recommend, if you don't its alright.

 

But thanks for the help.

0

Share this post


Link to post
Share on other sites

Not mentioning that decoding things by hand isn't quite fun.

Not trying to sound rude, but what do you mean?

0

Share this post


Link to post
Share on other sites

Videos are compressed, thus to be used they need to be decoded first. Otherwise a 3min videogame intro would weigh a couple hundred of MBs.

 

OpenGL doesn't understands of "videos", the closest thing it understands is textures. And that would mean decoding the video to get each single of its frames, then pass them to OpenGL for rendering one after the other.

 

That's why vortez suggested an aditional library for decoding the video. Video compression algorithms are complex and ever evolving. And at least for me, decoding compressed formats by hand isn't fun at all.

 

Oh, I understand, and I get your point, though I don't have first hand experience of what you are talking about, but I'll take your advice and see what I can do.

Thanks for the information though. 

0

Share this post


Link to post
Share on other sites

Do you by any chance have any library's that you'd recommend, if you don't its alright.

 

ffmpeg has a very nice library, at least, last time i used it i was able to encode a mp1 movie frame by frame, im pretty sure there is a decoder too, and i think it work for multiples format. Here's the wikipedia article on it.

Edited by Vortez
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0