• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About ShinkaFudan

  • Rank
  1. [quote name='swiftcoder' timestamp='1324092842' post='4894687'] I would try setting the [url="http://www.khronos.org/opengles/documentation/opengles1_0/html/glTexParameter.html"]texture wrap mode[/url] to GL_CLAMP_TO_EDGE (you need to do this in both the S and T directions). [/quote] Setting this before I rendered the texture seems to have fixed it. Thank you so much!
  2. - Visual Studio - SFML using OpenGL - Textures loaded through SOIL - C++ I have a texture that is literally just a 1x1 image, one pixel, that is the color green. When I stretch it to 32x32, I would expect that it would be a 32x32 texture of just that color green, but the edges are darker and I'm not sure why. I have tried enabling and disabling GL_BLEND, turning anti-aliasing on and off, changing the glBlendFunc settings... I get different results but never just the simple green square I would expect from stretching a 1x1 green pixel. Is this an issue anyone out there recognizes and knows the fix for off-hand?
  3. Xiph.org has a .c file made to be compiled under Linux that creates a tool to create Ogg Theora videos from PNG files. I would like to create this in windows, since a tool does not exist (as far as I can find) to convert images to an OGG Theora video in Windows. Attempting to compile this file ( http://svn.xiph.org/trunk/theora-tools/png2theora/png2theora.c) under Visual Studio results in the following errors for missing headers (and all sorts of errors if you remove the #include calls): - <getopt.h> - <unistd.h> - <libgen.h> - <png.h> - <ogg/ogg.h> - <theora/theoraenc.h> So now I'm looking on where to start with this project. Should I be looking for alternatives to those headers, or a way to include them in Windows? If anyone knows of a tool to create Ogg Theora files from images in Windows, please disregard this topic and point me to the tool instead.
  4. ffMPEG VS C++ example

    I decided to go through and try to make these two examples as similar as possible, and I found the issue. I had a discrepancy in the Update function, and when I made them equal they both worked. Although I didn't receive any reply to this topic, thank you to anyone who looked into it. (to anyone looking for this solution, take the update() function from the GLUT Example and copy it over to the normal openGL example...)
  5. ffMPEG VS C++ example

    Alright, after a few hours of scrounging, I managed to get one of the examples running for Theora. I then altered it to not utilize the GLUT setting it was in, but that brings up a whole new problem. In the GLUT example, there seems to be no problem at all. (GLUT example attached [GLUTExample.zip]) but in my basic OpenGL example any video with sound will fail to replay (OpenGL example attached [Example.zip]). Could someone look over this code and tell me what I'm doing wrong? Both attached examples should have all of the files within them that are needed so nobody will have to install libraries or include file folders... if anything is missing please tell me.
  6. ffMPEG VS C++ example

    The last few days, I've been searching for a simple method to display video files in my program. I am coding an engine of sorts using Visual Studio / C++, utilizing OpenGL through the SFML group of libraries. I am well-versed in OpenGL itself and I understand how to use it in addition to the basic SFML functionality. So now I am looking for a way to display video through these methods and I've looked at Theora, SFML's ogv playback, and then finally ffMPEG. I decided on ffMPEG based on what it is capable of playing and I started looking for all development code and examples I could find, but I'm reaching a problem. Any example code I find is laid out for building in linux or has make options I don't fully understand. I could probably figure them out, but my engine is being made specifically for visual studio to be used by a small group of people that I don't want to have to learn special build commands and procedures. I was hoping there was a simpler way to implement the ffMPEG functionality to play videos. I found an example.c file online and attempted to use it, but then I get unresolved external symbols even when I know my library includes are correct and I have the proper headers... I was hoping someone had a working Visual Studio project example for ffMPEG or could quickly create one using the example code they provide. I am currently using Visual Studio 2008 (AKA VC9).
  7. I have installed PostGreSQL and libpq for SQL in C++ on my machine. I am currently trying to use it in a project in Visual Studio 2008 and am getting the following errors. [quote]Error 1 error LNK2019: unresolved external symbol _PQfinish referenced in function "bool __cdecl ConnectToDatabase(struct pg_conn * &,char *,char *,char *,char *,char *,char *,char *)" (?ConnectToDatabase@@YA_NAAPAUpg_conn@@PAD111111@Z) Error 2 error LNK2019: unresolved external symbol _PQstatus referenced in function "bool __cdecl ConnectToDatabase(struct pg_conn * &,char *,char *,char *,char *,char *,char *,char *)" (?ConnectToDatabase@@YA_NAAPAUpg_conn@@PAD111111@Z) Error 3 error LNK2019: unresolved external symbol _PQsetdbLogin referenced in function "bool __cdecl ConnectToDatabase(struct pg_conn * &,char *,char *,char *,char *,char *,char *,char *)" (?ConnectToDatabase@@YA_NAAPAUpg_conn@@PAD111111@Z) Error 4 error LNK2019: unresolved external symbol _PQgetvalue referenced in function "bool __cdecl GetValue(struct pg_conn *,char *,char *,char *,int &)" (?GetValue@@YA_NPAUpg_conn@@PAD11AAH@Z) Error 5 error LNK2019: unresolved external symbol _PQclear referenced in function "bool __cdecl GetValue(struct pg_conn *,char *,char *,char *,int &)" (?GetValue@@YA_NPAUpg_conn@@PAD11AAH@Z) Error 6 error LNK2019: unresolved external symbol _PQerrorMessage referenced in function "bool __cdecl GetValue(struct pg_conn *,char *,char *,char *,int &)" (?GetValue@@YA_NPAUpg_conn@@PAD11AAH@Z) Error 7 error LNK2019: unresolved external symbol _PQresultStatus referenced in function "bool __cdecl GetValue(struct pg_conn *,char *,char *,char *,int &)" (?GetValue@@YA_NPAUpg_conn@@PAD11AAH@Z) Error 8 error LNK2019: unresolved external symbol _PQexec referenced in function "bool __cdecl GetValue(struct pg_conn *,char *,char *,char *,int &)" (?GetValue@@YA_NPAUpg_conn@@PAD11AAH@Z)[/quote] These errors do not occur when I load the same project onto my computer at home. Additionally, I have the following code in the header of the file that gives all of these errors. [quote]#pragma comment(lib, "libpq.lib") #include <libpq-fe.h>[/quote] libpq.lib is in the project folder and should be loadable without an issue. libpq_fe.h seems to exist and be findable because it isn't giving an error saying it can't find it, and when I right click and go to the file, it has no trouble going right to it. I made sure that the folder that contains it is in my project includes as well. I made sure I had the latest version from the PostGreSQL website. Everything seems to check out, but it is obvious that I have set something up incorrectly. Has anyone had this issue, or does anyone know what the issue might be?
  8. A forum for game creators

    Hi, on my forum you can look at other peoples games and make your own. http://www.gamedev.net/community/forums/
  9. If the game is designed from the start to be multiplayer (I am assuming you mean networked multiplayer... so if you just mean split-screen then please clarify), and do not need to make a single-player version, it shouldn't be too bad. If this is your first multiplayer game, though, you may want to find a mentor to walk you through a lot of the basics. As far as the game being available on XBLA and PC, that is entirely a different story and I don't know that I wouldn't know enough to speak on that matter. A lot of the difficulty is based on what you mean by a "small" game. Some people consider "small" to be tic-tac-toe, while others think pocket tanks, while others think of a basic real-time platformer... You should really elaborate.
  10. Landscape engine

    Quote:Original post by namragog Ah. Thanks... but this confuses me. The part where it shows the 'code'... is this real code for SDL? or is it just an explanation? also,if it is just the code, how would I go about creating this fractal 3d terrain? It says very clearly that it is Pseudo-code.
  11. Stable code

    Quote: if(values.size() > i) { return values[i]; } Definitely a step in the right direction, but writing stable code is about thinking of EVERY possible way the code could go wrong and making sure it no longer can. It's a mindset you will get yourself into after a while of practice. Go through your code you already have and imagine what would happen if input in your functions was not as expected. Think of the entire range of a given data type when you see it coming into a function. For example, integers can be negative, so: if ( values.size() > i && i >= 0 ) { return values[i]; }
  12. Donations as a Source of Income

    The list of monthly donations necreia referred to can be found HERE
  13. Guide line for creating a game?

    I would suggest you start out by writing up a plan of how systems will interact with each other, then outline the basic systems in code without their real functionality coded in. Once you're done that, start working from the ground up, filling in functionality starting with creating a window, showing textures, player input, etc. Most people have their own opinions on how a game project should go. If possible, find someone with experience creating a game nearby you (or someone willing to remote view your screen or something similar) and ask them to walk you through the basic steps. Good luck.
  14. Moving before Applying for a job

    Quote:Original post by hasonishUnfortunately for me, I live in Las Vegas, and the only game companies here are the ones focused on gambling. http://www.petroglyphgames.com Petroglyph has been in Las Vegas for a few years now. It's a great company. I used to work for them. To shed some light on another question of yours... I was hired at Petroglyph while living in Pennsylvania, so location isn't EVERYTHING, but as mentioned, being in the area gives you an advantage.
  15. What makes a good code sample?

    Quote:Original post by way2lazy2care I have a similar but different question. I was recently asked by a company I applied to to fill out a survey and at the end it asked for a short source code sample where it asked that it not be a whole project and just enough to give an idea of how you write code. What would be suggested in those situations? That's a fairly common thing for them to request, as it requires less time for them to look through it and determine your skill level. For that, I might suggest a nice functional algorithm that you've written in one of your projects, especially if it is well commented and easy to understand while still being unique and something that completes a semi-complex task at least. If you do this, though, make sure to note on the submission that you would be willing to provide a larger example if they would like one. Ideally, you would have code examples of multiple sizes ready and could just link the company to them with short descriptions of what each one is / what it does, as well as how big it is. If you did this, also note any specific features the code has such as design patterns or tricks like a butterfly switch.
  • Advertisement