Jump to content

  • Log In with Google      Sign In   
  • Create Account

Riztro

Member Since 30 Dec 2010
Offline Last Active Sep 02 2013 10:15 PM

#5077188 C++ Developer moving to Web

Posted by Riztro on 12 July 2013 - 02:03 PM

Hi all,

 

I am looking for a bit of advice and possibly some guidance. I programmed in C++ for a good three years. I also used SFML and OpenGL for 1 of the 3 years.  I haven't programmed in it in about 6 months though because I have been so concentrated on trying to learn some web programming. Now what I did was I went on Code Academy, finished the Web fundamentals, Jquery, and Javascript courses. 

 

I am at a point where I feel I have a grasp on how to program for the web, but no clue really how develop for the web. I can open a text editor, include the needed documents, and a bow grow when clicked, but where do I learn how to make an actual good looking website? Code Academy taught me how to do some neat things with my code, but never how to make a nice, full fledged website.

 

So I am at the point where I want to try making a small 3D sandbox game and a nice website to encase it. I know this will require WebGL, server side programming, maybe a few helper libraries, and website designing knowledge. I was wondering if someone could point me in the right direction of where to learn those skills. 

 

TL;DR?

 

My Goal: 3D Web Sandbox Game

 

I have learned thoroughly:

C++

OpenGL

SFML

 

I have sort of learned:

HTML

CSS

Javascript

Jquery

 

I want to learn:

Node.js or PHP? (Some server side language)

General Web design (I kinda know CSS but that doesn't mean I know how to make stuff look nice)

WebGL

Three.js? (I have heard of this, not sure if I should learn it or WebGL, or both)

 

Any advice, links to great tutorials, or guidance on completing my goals would be greatly appreciated.

 

Thanks in advance! smile.png




#5023215 High School Student with High Goals -- Need Advice

Posted by Riztro on 19 January 2013 - 11:37 AM

Hello everyone,

I need some advice from you all. I have two problems, one is lack of money and one is lack of drive.

I am a Sophomore High School student who wants to be successful early and is able to go to Stanford. From what I understand Stanford is looking only for the best, so in order to be "the best" I am trying to hold a 4.1+ GPA, trying to make some video games that I can sell so Stanford can see that I show initiative and so that they can see that I can program, and I am trying to play sports at the same time to show that I am a well rounded student (and I enjoy them). I enjoy making games and programming. I like to use C++ and OpenGL and when I was learning and just messing around with that language and library in middle school, I had no problems (probably because I had more time and was less stressed). Now I have problems.

I am having problems with drive. I have this game idea that I like and have been working on but I think these high aspirations of mine are not allowing me to apply myself to programming because I am too busy (and stressed) with school and sports. I go to school at around 8 and I get home after sports at around 5:30. I have plenty of time till bed, but I just don't have the drive to work on my self produced projects (my game for example). Does anyone have any ideas as to why I can't seem to hop onto my computer and start programming? I always seem to drift to youtube and just start watching videos there. I just don't have any will power at this point in the day to push myself to start programming. If I ever do start, I enjoy it, but I just can't seem to start. Does anyone have any advice for me?

Also being a high school student and soon to be college student, I need money. I am looking to use my intermediate programming abilities to make some extra cash and my video game endeavors are not producing any income at the moment. I have looked at freelancing on freelancer.com but it seems as though the amounts are always low and the bids are always in before I even have a chance to compete. So is there any other site or way I can use my programming abilities to make some extra cash? I have looked locally but there isn't much.

Thankyou,
Brent


#5015326 std::string and erase() to get data I need from string

Posted by Riztro on 28 December 2012 - 11:13 PM

Yeah, if you already have the "640x480x32" in a string, you will have to perform tokenization in order to split it up into "Tokens". After that you can extract them as integers. Here is some code to do that:

#include <sstream>
#include <string>
#include <iostream>
#include <vector>

using namespace std;

int main()
{
   string u_numbers = "640x480x32";  //unformatted numbers
   string f_numbers; //formatted numbers
   vector <int> numbers; //final numbers in integer form
   stringstream ss;
   for(int i = 0; i < u_numbers.size(); i++)
   {
      if(u_numbers.at(i) == 'x') //check if next character is the delimiter
      {
         ss.put(' ');
      }
      else
      {
         ss.put(u_numbers.at(i)); //Output the unformatted string to stringstream
      }
   }

   std::getline(ss, f_numbers); //Get all the data we just put into the stream and put it into another string

   std::istringstream iss(f_numbers); //create an integer string stream, fill the stream with the string of formatted numbers
   int n;

   while (iss >> n)
   {
      numbers.push_back(n); //pull all the data from the iss and store it as integers in our vector
   }

   for (int i = 0; i < 3; i++) //a little test to see if it works
   {
      cout << numbers[i] << ' ';
   }


return 0;
}



#4958975 "Make Games, Not Engines".. But how?

Posted by Riztro on 13 July 2012 - 07:44 PM

Thank you all for your replies! I think after receiving all this advice I am ready to make a game and not an engine :)


#4957790 "Make Games, Not Engines".. But how?

Posted by Riztro on 10 July 2012 - 03:18 PM

Hello all,

So lately I have been trying to breach the seeming impenetrable wall of game development. I have tried to create games (not engines) because a certain man with a popular blog told me too (http://scientificnin...mes-not-engines). Anyway, when it gets down to whipping out the old IDE, C++, GLFW, and OpenGL docs, I start to plan out what I will do.

To get started I think to myself, "Okay, start small!". So I come up with the idea of making pong, but when I start planning out how it is going to get programmed is when I run into trouble. I start thinking of how am I going to render the objects, GUI, and text, and also handle shaders, textures, etc. Then I start planning how to play audio. Then I start thinking about how I am going to handle the window and input. (BTW I am not using SFML, SDL, Allegro, etc here because I want to learn use OpenGL, C++, GFLW, etc so that I can easily use those tools when making 3D Games)

After all this planning I almost have a full plan for a very basic ENGINE right? (Or wrong? Posted Image) Now I am in big trouble Posted Image. I have tried making a game and I still end up making an engine.

Now my question is, how exactly do you program a game.. without making an engine?

Thanks,
Brent


#4860206 How to Log and stay Modular

Posted by Riztro on 10 September 2011 - 08:42 PM

Okay so it seems like just creating a function that logs stuff either to a file or to the console should be fine as it is the simplest and there is really no need for anything more that that. If I need something more, like a logger that sends stuff through the network then I could just take the log data and send it with a different thing. After all, I shouldn't make something that does everything.


#4840286 Black Screen with Linux

Posted by Riztro on 25 July 2011 - 06:21 PM

Error checking is your friend. Use it.


Thanks for your response.

I have used it very extensively. I log almost everything that could go wrong and I have gone through it with a debugger and looked at every piece of possible corrupted memory to see if it is okay throughout the program. Trust, I have definitly found it is my friend.

Thanks for the reply anyway though :),
Brent


Double check if the portable code can run on linux, because windows and linux store libraries in a different way, windows uses dll and linux ".so" extension... IDk, maybe the game engine is loading a dll, so maybe it's not available in linux...



Ok thanks, but I am not sure why it would be loading a DLL since I am using all linux libraries. I am using an IDE but maybe I have to define something when linking a shared library.

Thanks,
Brent




#4812257 How did you learn modern OpenGL?

Posted by Riztro on 17 May 2011 - 11:08 PM

Just started out the same way as everyone else with my first glBegin triangle, then picked up VBOs for speed, and shaders cause they sounded fun and cool. Really not much more to it than that.

Looking at the big picture the API is not really a big deal. Whether you're using ancient immediate mode opengl, modern DirectX/OpenGL with buffers and shaders, or something else, the underlying graphics theory is all the same. Once you understand the theory behind things, then the API is just a tool for you to use.

"Modern OpenGL" is just shader syntax and API calls, its the theory that's most important to understand.


What do you think the best resource for learning the theory is? Preferably not a book on theory as those can be very wordy and time consuming.


#4810770 No Drive - Lack of Knowledge

Posted by Riztro on 14 May 2011 - 11:41 AM

If you don't have any drive, what do you want us to do to do about it?

Also, learning how to program with a graphics API, and learning how to program games aren't the same thing. Yes, learning how to put graphics on the screen is required, but it's only one part of the whole thing.

I suggest you try out XNA or even better, Unity3D. You can focus more on the functionality of your game instead of worrying about low level details. Unity3D is an actual engine. You just need to import your assets, and then build scenes and script the functionality of everything. It's a very quick process. And it's well suited to a one man team/workflow.




I like learning the lower level stuff though, I just don't know where to learn. Also its not that I don't have enough drive to program, I don't have drive to make practice problems because I don't like the final output. I like to make whatever I think is cool (which is definitely games). So I don't have to specifically make games to have drive to practice. I could make a tokenizer, encryption/decryption program, and whatever else is pretty cool. I guess I kinda made it sound like I hate to program but I love making games in my first thread huh. Well that is definitely not the case.


#4810569 No Drive - Lack of Knowledge

Posted by Riztro on 13 May 2011 - 11:43 PM

Well I really want to become a game programmer. I have read many c++ books and understand most of the standard components of the language. Now I want to improve on my skills that I have learned and people say practice makes perfect. My problem is, I only have drive to make games and maybe cool 3D graphics demos so I can't really practice regular coding of applications because I have no drive. No here is my dilemma for you who would say, "Then Make games". I don't know how.

I have tried making 2D games with SFML and succeeded but I am much more interested in 3D. I don't know how to make them because I do not know where or how to learn the OpenGL API. Of course I want to learn the most recent stuff so that would mean learning GL 3.3 and 4. So I started trying to learn and found this site: OpenGLBook.com. It is great but to make games I have to have a world and moving objects, this isn't quite there yet.

I have seen people who know GL 3.3 and 4 and can make games, but how did they learn? Here is where I am at a lack of knowledge which causes me to have no drive to practice. Please give me some guidance in what I should do to fix these problems.

Thanks ahead,
Brent


#4807821 Best Book to teach OpenGL 3.X

Posted by Riztro on 07 May 2011 - 04:05 PM

http://www.gamedev.n...nd-edition-r755

I read this cover to cover and came out knowing so much more.

And when you've finished that and feel rusty on the math still, or want a good reference for things like bump-mapping, better lighting model explanation and shadows, this book is the way to go:

http://www.amazon.co...04782269&sr=8-3


Ok did you come out knowing much more about opengl 3.3 or just opengl in general? Because I was reading the VBO section and I didn't see anything about how to color objects with vbos. I want no fixed pipeline stuff. Thanks anyway though.


#4806631 New to Linux based programming

Posted by Riztro on 04 May 2011 - 04:42 PM

Well I was on ubuntu for awhile and am now on debian and what I have learned is that it is almost easier to skip the makefile and just make a script. Now I would recommend trying to use the command line for almost everything for awhile to truely get used to it and maybe even use vim or vi as a text editor. Then once you know how to use the command line, you can start developing applications on it. What you will be using is g++ to compile. Ex.
g++ -o ProgramName (source files) main.cpp engine.cpp camera.cpp (then linker flags) -lGL -lsfml-window -lsfml-graphics
Then once you know how to compile your own projects on the command line, you can start making scripts or makefiles (I personally like scripts better). Now here is a small tutorial on how I make a script.
1. Open up terminal
2. go to project directory // My directories usually dont have IDE project files in them, just souce and media.
3. type "vi (or any other text editor) m.sh" //This is where you start editing you script
4. type your commands you wish to execute. Ex. g++ -o MyProgram main.cpp // This is where you fill you script with commands.
5. Save
6. type "chmod +x m.sh" //You change the file to be executable
7. type "./m.sh" //This will compile your project

Now if you would like to use a makefile I think its pretty close. Just look up some tutorials about makefiles if you would like to learn about those.


#4800571 SDL vs SFML for 3D + Cross Platform

Posted by Riztro on 19 April 2011 - 06:29 PM



For the average Homebew Developer, PS3 is out of reach. You need to pay a lot to get the SDK and there is no way for a single person to get those.


Dude, I am also a big time hacker lol. I have a Rebug ps3 and the PSL1GHT sdk and I have many connections with homebrew developers + other hackers. I used to hack games for a living, that is how I got into programming. (Made a few thousand in 3 days off being the first to publicaly hack modern warfare 2). So Ps3 is in reach for me :)


1) I wouldn't gloat about making thousands off hacking professional game developer's software and costing them sales, at least not here. As an (apparently) aspiring game developer, don't you see the problem with that?

2) NicoG was trying to point out that the (official) PS3 SDK is exclusive to established development houses with a lot of money (at Sony's decision), not hackers with a few thousand they got by breaking open someone else's product. Even if you're able to run code on your modded console, I don't think that's in the spirit of "developing for the PS3" as you couldn't market/distribute your end result.


Well I never cost them sales, in fact I think they might of sold more games with it. I got some money from other people who wanted the same hacks. So some of them might have even went out and bought the game to have fun and try and "hack" it.

Secondly, I was never planning on distributing for the ps3, I would only run homebrew. Also nothing I do is illegal, I make sure of it.


#4800569 SDL vs SFML for 3D + Cross Platform

Posted by Riztro on 19 April 2011 - 06:26 PM



For the average Homebew Developer, PS3 is out of reach. You need to pay a lot to get the SDK and there is no way for a single person to get those.
For XBOX, you could use XNA, then your program runs on XBOX and Windows. There is no way known to get OpenGL on XBOX. At least I don't know any.
It has a reason why it is called (Direct)XBOX :D.
For XNA the Membership is 99€/Year to be able to sell Stuff on XBOX Marketplace.
XNA for Developement on PC is free.

I would say:
Start with OpenGL 3.x, not the older Versions. It is easy to learn. Once you understood how it all works, you switch over to DirectX or XNA.
If you say, want to emphasize on XBOX and Windows, then use XNA right away. It is also pretty easy to learn.
HTH


Dude, I am also a big time hacker lol. I have a Rebug ps3 and the PSL1GHT sdk and I have many connections with homebrew developers + other hackers. I used to hack games for a living, that is how I got into programming. (Made a few thousand in 3 days off being the first to publicaly hack modern warfare 2). So Ps3 is in reach for me :). Also I do not want to use DirectX. I am on Debian. I dislike windows proprietary software. And I don't even have an xbox, yet (Haven't spent any of the thousands from hacking).


being the genius you are, you can answer your own questions then. Or go ask these so called connections.


Dude, come on. Hacking != Programming. It may be close and programming may be used to hack but they still are differnet. Also I never said I was a genius. I may have been boasting a little about the luck of being the first and sorry about that but I am here looking for help. My connections know about hacking, not programming.


#4800415 SDL vs SFML for 3D + Cross Platform

Posted by Riztro on 19 April 2011 - 11:13 AM

For the average Homebew Developer, PS3 is out of reach. You need to pay a lot to get the SDK and there is no way for a single person to get those.
For XBOX, you could use XNA, then your program runs on XBOX and Windows. There is no way known to get OpenGL on XBOX. At least I don't know any.
It has a reason why it is called (Direct)XBOX :D.
For XNA the Membership is 99€/Year to be able to sell Stuff on XBOX Marketplace.
XNA for Developement on PC is free.

I would say:
Start with OpenGL 3.x, not the older Versions. It is easy to learn. Once you understood how it all works, you switch over to DirectX or XNA.
If you say, want to emphasize on XBOX and Windows, then use XNA right away. It is also pretty easy to learn.
HTH


Dude, I am also a big time hacker lol. I have a Rebug ps3 and the PSL1GHT sdk and I have many connections with homebrew developers + other hackers. I used to hack games for a living, that is how I got into programming. (Made a few thousand in 3 days off being the first to publicaly hack modern warfare 2). So Ps3 is in reach for me :). Also I do not want to use DirectX. I am on Debian. I dislike windows proprietary software. And I don't even have an xbox, yet (Haven't spent any of the thousands from hacking).




PARTNERS