• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By Ty Typhoon
      I like to build my A - Team now.
       
      I need loyal people who can trust and believe in a dream.
      If you got time and no need for direct pay please contact me now.
       
      We cant pay now, you will recieve a lifetime percentage if the released game will give earnings. 
      If I get the best people together for a team, everything should be possible.
       
       
      What i need:
      - Programmer c++
      - Unity / Unreal - we must check whats possible, please share your experience with me.
      - Sculpter, 3D Artist
      - Animator
      - Marketing / Promotion 
       
       
      What i do:
      - Studio Owner
      - Director
      - Recruit exactly you
      - Sounddesign
      - Main theme composing
      - Vocals
      - Game design
      - Gun, swords, shields and weapon design
      - Character, plants and animal design
       
       
      Please dont ask about the Name of the Game, about Designs or Screenshots.
      The game will be defintitly affected about our and your skills if you join the team.
       
       
      Planned for the big Game:
      - 1st person shooter
      - online multiplayer
      - character manipulation
      - complete big open world with like lifetime actions and reactions
      - gunstore with many items to buy
      - many upgrades for players
      - specials like mini games
       
      So if you are interested in joining a team with a nearly complete game idea, contact me now and tell me what you can do.
       
      discord:
      joerg federmann composing#2898
       
       
    • By codelyoko373
      I wasn't sure if this would be the right place for a topic like this so sorry if it isn't.
      I'm currently working on a project for Uni using FreeGLUT to make a simple solar system simulation. I've got to the point where I've implemented all the planets and have used a Scene Graph to link them all together. The issue I'm having with now though is basically the planets and moons orbit correctly at their own orbit speeds.
      I'm not really experienced with using matrices for stuff like this so It's likely why I can't figure out how exactly to get it working. This is where I'm applying the transformation matrices, as well as pushing and popping them. This is within the Render function that every planet including the sun and moons will have and run.
      if (tag != "Sun") { glRotatef(orbitAngle, orbitRotation.X, orbitRotation.Y, orbitRotation.Z); } glPushMatrix(); glTranslatef(position.X, position.Y, position.Z); glRotatef(rotationAngle, rotation.X, rotation.Y, rotation.Z); glScalef(scale.X, scale.Y, scale.Z); glDrawElements(GL_TRIANGLES, mesh->indiceCount, GL_UNSIGNED_SHORT, mesh->indices); if (tag != "Sun") { glPopMatrix(); } The "If(tag != "Sun")" parts are my attempts are getting the planets to orbit correctly though it likely isn't the way I'm meant to be doing it. So I was wondering if someone would be able to help me? As I really don't have an idea on what I would do to get it working. Using the if statement is truthfully the closest I've got to it working but there are still weird effects like the planets orbiting faster then they should depending on the number of planets actually be updated/rendered.
    • By BenjaminBouchet
      Learning game development in Unreal Engine could be a daunting task for someone who don’t know where to start, and a cumbersome process if you don’t organize your progression correctly. One thing commonly known by experienced developers and by people unfamiliar with coding: mastering a development language is a long and difficult task.
      From blueprints to C++ in Unreal Engine
      If you want to learn fast, you need a good learning strategy. Unreal Engine contains a very powerful tool which you can use to learn C++ faster: its blueprint system. Blueprints are extremely easy to learn (and you may already have a good knowledge of them). Thus you can conveniently use them as a guide for writing code in C++. This is the reason why I am writing a tutorial series on how to make the transition from Unreal Engine blueprints to C++.
      Learn and practice C++
      Following this tutorial, you’ll acquire new concepts of C++ programming in every chapter. Then following chapters will give you reasons to reuse and practice those same concepts. There’s no better way to wire you brain.
      Link to the tutorial: [Tutorial] Learn C++ in Unreal Engine 4 by making a powerful camera
      Please do send me as much feedback as you want. I’ll be considering every constructive remarks and taking them into consideration. Your feedback will help me to improve and update the existing chapters and to make the next one better.

      View full story
    • By BenjaminBouchet
      Learning game development in Unreal Engine could be a daunting task for someone who don’t know where to start, and a cumbersome process if you don’t organize your progression correctly. One thing commonly known by experienced developers and by people unfamiliar with coding: mastering a development language is a long and difficult task.
      From blueprints to C++ in Unreal Engine
      If you want to learn fast, you need a good learning strategy. Unreal Engine contains a very powerful tool which you can use to learn C++ faster: its blueprint system. Blueprints are extremely easy to learn (and you may already have a good knowledge of them). Thus you can conveniently use them as a guide for writing code in C++. This is the reason why I am writing a tutorial series on how to make the transition from Unreal Engine blueprints to C++.
      Learn and practice C++
      Following this tutorial, you’ll acquire new concepts of C++ programming in every chapter. Then following chapters will give you reasons to reuse and practice those same concepts. There’s no better way to wire you brain.
      Link to the tutorial: [Tutorial] Learn C++ in Unreal Engine 4 by making a powerful camera
      Please do send me as much feedback as you want. I’ll be considering every constructive remarks and taking them into consideration. Your feedback will help me to improve and update the existing chapters and to make the next one better.
    • By mrDIMAS
      Hello everyone! I need to fill lua table with functions from script file like this:
      function init() end function update() end I need to create table on stack and fill it with this functions from specified file. How can I do this?
  • Advertisement
  • Advertisement
Sign in to follow this  

Need help making window and console work together

Recommended Posts

Hi! I have a console app. From the console I ask the user if he/she wants to test if the videos provided in a folder can be decoded. If user types "yes", I open a window without closing the console. The window has drop-down menu that lets user pick up from the various videos found in the given folder. I want when user picks up a video from the menu of the window, in the console the app to print: "Can you see the video playing?" and then i use "std::getline()" to wait for an answer. So far it is ok, but what will happen for the case, user selects another video from the window's menu. When selecting another video now the app makes the old one to stop playing and the new one to start playing immediately.... but what about the waiting "getline()"... how to kill it if user uses the window controls to close the preview window or to switch to another video? I will use a boolean to know if there is a getline waitning, but don't know how to kill it.


Maybe I should create a pop-up menu on top of the window playing the video to make the user pick up between: "can see it" and "can not see it".
What would be the easiest way to do it? How would you do it? I need the simplest way possible.

(i catch all possible errors(all i know about) at every point, but sometimes without any error reported, the video is black and not showing My Little Pony)

Share this post


Link to post
Share on other sites
Advertisement

You can't stop std::getline() once you started it (other than by exiting the application, I guess), afaik.

I am not sure why you ask the question. What does the application do when I answer "no, I can't see it" ?

Since you already switch to a different video if I click at one, isn't that a much simpler way to deal with the problem? I mean, if the user can't see the video, he/she will eventually either quit the application, or select a new video to play right?

Maybe you don't need to ask anything?

Share this post


Link to post
Share on other sites

Thanks for the answer @Alberth after user determines for very sure(by viewing it being decoded nicely(because sometimes the video decodes into a mess of huge random squares)) that the given codec works, the app will do more stuff on the videos that are decoding valid images/frames.
All the videos for which user types in "yes" i will store them into a vector of videos to be further being processed by the app. The purpose of the app is not to watch videos.

I think I could just print:
"Please hit "Y" if you see the video playing or "N" if you can't see it"
and catch it from the window messages handling routine. I think i could do it this way.

Sometimes some of my posts result to be of no help for others in the forum, but I think i can not delete them myself...
 

Share this post


Link to post
Share on other sites

You'd be surprised how often random information is of help :)

Right now, any one interested in "std::getline()" behavior can use your post and my answer to solve their question. If you delete posts because you know the answer, the remaining posts become useless. Similarly, if I would delete my post because you read it, that "any one" doesn't get wiser either.

So the best course of action is to keep posts as they are, and that is also the policy of this forum.

 

Ok, not for viewing thus. What about 2 additional buttons "viewable" and "black screen" then? You can catch presses on those button easily, I think

Share this post


Link to post
Share on other sites

Good to know! I now will not worry about the worth of my posts.

I already codded the "hit Y/N" solution. I need it as simple as possible, because I'm a newbie in C++. My soul hurts when I deal with C++ xD

Share this post


Link to post
Share on other sites

Well, yeah, C++ is not a good language for beginners, it assumes you know what you're doing :)

Switching languages at this point won't do help much though, you'll have again the problem of having to learn a programming language from scratch while learning to code games (or in your case video decoding stuff :) )

Share this post


Link to post
Share on other sites

I began with ASM for Intel. I made BIOS real time emulator with 256 bit code extensions and without using the RAM...... It helped me for nothing in life! I can't use it to find a job! Total loss of time!

I then started with C# and it seems ok for me. I learned to use it in no time, so it took minimal time investment. Now I am forced to use C++ for Microsoft Media Foundation and DirectX and I don't want to repeat the error from ASM and invest too much time learning something too hard to learn as C++ and that i can't find a job with, because it is considered so advanced that employers just don't believe me unless I show them a master degree and 2 years of successful job experience. And i just don't have 7 years to give away.

Edited by NikiTo

Share this post


Link to post
Share on other sites

Each language has a corner in the applications where it's used, but C++ applications may not be created near you. You could move to a different area, or reverse the problem; look where companies where you want to work need developers for, and learn that.

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  

  • Advertisement