• 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.

shawk08033

Members
  • Content count

    17
  • Joined

  • Last visited

Community Reputation

96 Neutral

About shawk08033

  • Rank
    Member
  1. I am trying to display a 64x64 in opengl. The texture loads but I cant get it to display in a square and on the top left corner of the screen. Heres my code for the GLWidget in qt  #include "glwidget.h" GLWidget::GLWidget(QWidget *parent) : QGLWidget(parent) { } void GLWidget::initializeGL(){ glClearColor(1, 1, 1 , 0); gluPerspective(45, 640/480, 1, 500); glEnable(GL_MULTISAMPLE); glEnable(GL_AMD_performance_monitor); glEnable(GL_TEXTURE_2D); GLWidget::loadTexture2(":/images/Block.bmp", GLWidget::backgroundimage); } void GLWidget::paintGL(){ glClearColor(0.4f, 0.1f, 0.1f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glBindTexture(GL_TEXTURE_2D, backgroundimage); glBegin(GL_QUADS); glTexCoord2f(0,1); glVertex2f(0, 0); glTexCoord2f(0,0); glVertex2f(0, 64); glTexCoord2f(1,0); glVertex2f(64, 0); glTexCoord2f(1,1); glVertex2f(64, 64); glEnd(); glFlush(); } void GLWidget::resizeGL(int w, int h){ } QImage GLWidget::loadTexture2(char *filename, GLuint &textureID){ glEnable(GL_TEXTURE_2D); // Enable texturing glGenTextures(1, &textureID); // Obtain an id for the texture glBindTexture(GL_TEXTURE_2D, textureID); // Set as the current texture glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); QImage im(filename); QImage tex = QGLWidget::convertToGLFormat(im); glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, tex.width(), tex.height(), 0, GL_RGBA, GL_UNSIGNED_BYTE, tex.bits()); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); glDisable(GL_TEXTURE_2D); return tex; }
  2. So the output it gives me when I do that is: Sprites are loaded 1Currently in 0 is 0,0 0Currently in 0 is 128,0 0Currently in 1 is 64,0 0Currently in 0 is 192,0 0Currently in 1 is 64,0 0Currently in 2 is 192,0 1Currently in 0 is 192,0 1Currently in 1 is 256,0 1Currently in 2 is 192,0 1Currently in 3 is 192,0 1Currently in 0 is 192,0 1Currently in 1 is 0,64 1Currently in 2 is 192,0 1Currently in 3 is 192,0 1Currently in 4 is 0,64 0Currently in 0 is 64,64 0Currently in 1 is 0,64 0Currently in 2 is 64,64 0Currently in 3 is 64,64 0Currently in 4 is 0,64 0Currently in 5 is 0,64 0Currently in 0 is 128,64 0Currently in 1 is 0,64 0Currently in 2 is 128,64 0Currently in 3 is 128,64 0Currently in 4 is 0,64 0Currently in 5 is 0,64 0Currently in 6 is 128,64 0Currently in 0 is 192,64 0Currently in 1 is 0,64 0Currently in 2 is 192,64 0Currently in 3 is 192,64 0Currently in 4 is 0,64 0Currently in 5 is 0,64 0Currently in 6 is 192,64 0Currently in 7 is 192,64 1Currently in 0 is 192,64 1Currently in 1 is 256,64 1Currently in 2 is 192,64 1Currently in 3 is 192,64 1Currently in 4 is 256,64 1Currently in 5 is 256,64 1Currently in 6 is 192,64 1Currently in 7 is 192,64 1Currently in 8 is 192,64 1Currently in 0 is 192,64 1Currently in 1 is 0,128 1Currently in 2 is 192,64 1Currently in 3 is 192,64 1Currently in 4 is 0,128 1Currently in 5 is 0,128 1Currently in 6 is 192,64 1Currently in 7 is 192,64 1Currently in 8 is 192,64 1Currently in 9 is 0,128 1Currently in 0 is 192,64 1Currently in 1 is 64,128 1Currently in 2 is 192,64 1Currently in 3 is 192,64 1Currently in 4 is 64,128 1Currently in 5 is 64,128 1Currently in 6 is 192,64 1Currently in 7 is 192,64 1Currently in 8 is 192,64 1Currently in 9 is 64,128 1Currently in 10 is 64,128 1Currently in 0 is 192,64 1Currently in 1 is 128,128 1Currently in 2 is 192,64 1Currently in 3 is 192,64 1Currently in 4 is 128,128 1Currently in 5 is 128,128 1Currently in 6 is 192,64 1Currently in 7 is 192,64 1Currently in 8 is 192,64 1Currently in 9 is 128,128 1Currently in 10 is 128,128 1Currently in 11 is 128,128 1Currently in 0 is 192,64 1Currently in 1 is 192,128 1Currently in 2 is 192,64 1Currently in 3 is 192,64 1Currently in 4 is 192,128 1Currently in 5 is 192,128 1Currently in 6 is 192,64 1Currently in 7 is 192,64 1Currently in 8 is 192,64 1Currently in 9 is 192,128 1Currently in 10 is 192,128 1Currently in 11 is 192,128 1Currently in 12 is 192,128 1Currently in 0 is 192,64 1Currently in 1 is 256,128 1Currently in 2 is 192,64 1Currently in 3 is 192,64 1Currently in 4 is 256,128 1Currently in 5 is 256,128 1Currently in 6 is 192,64 1Currently in 7 is 192,64 1Currently in 8 is 192,64 1Currently in 9 is 256,128 1Currently in 10 is 256,128 1Currently in 11 is 256,128 1Currently in 12 is 256,128 1Currently in 13 is 256,128 0Currently in 0 is 0,192 0Currently in 1 is 256,128 0Currently in 2 is 0,192 0Currently in 3 is 0,192 0Currently in 4 is 256,128 0Currently in 5 is 256,128 0Currently in 6 is 0,192 0Currently in 7 is 0,192 0Currently in 8 is 0,192 0Currently in 9 is 256,128 0Currently in 10 is 256,128 0Currently in 11 is 256,128 0Currently in 12 is 256,128 0Currently in 13 is 256,128 0Currently in 14 is 256,128 0Currently in 0 is 64,192 0Currently in 1 is 256,128 0Currently in 2 is 64,192 0Currently in 3 is 64,192 0Currently in 4 is 256,128 0Currently in 5 is 256,128 0Currently in 6 is 64,192 0Currently in 7 is 64,192 0Currently in 8 is 64,192 0Currently in 9 is 256,128 0Currently in 10 is 256,128 0Currently in 11 is 256,128 0Currently in 12 is 256,128 0Currently in 13 is 256,128 0Currently in 14 is 256,128 0Currently in 15 is 64,192 0Currently in 0 is 128,192 0Currently in 1 is 256,128 0Currently in 2 is 128,192 0Currently in 3 is 128,192 0Currently in 4 is 256,128 0Currently in 5 is 256,128 0Currently in 6 is 128,192 0Currently in 7 is 128,192 0Currently in 8 is 128,192 0Currently in 9 is 256,128 0Currently in 10 is 256,128 0Currently in 11 is 256,128 0Currently in 12 is 256,128 0Currently in 13 is 256,128 0Currently in 14 is 256,128 0Currently in 15 is 128,192 0Currently in 16 is 128,192 0Currently in 0 is 192,192 0Currently in 1 is 256,128 0Currently in 2 is 192,192 0Currently in 3 is 192,192 0Currently in 4 is 256,128 0Currently in 5 is 256,128 0Currently in 6 is 192,192 0Currently in 7 is 192,192 0Currently in 8 is 192,192 0Currently in 9 is 256,128 0Currently in 10 is 256,128 0Currently in 11 is 256,128 0Currently in 12 is 256,128 0Currently in 13 is 256,128 0Currently in 14 is 256,128 0Currently in 15 is 192,192 0Currently in 16 is 192,192 0Currently in 17 is 192,192 0Currently in 0 is 256,192 0Currently in 1 is 256,128 0Currently in 2 is 256,192 0Currently in 3 is 256,192 0Currently in 4 is 256,128 0Currently in 5 is 256,128 0Currently in 6 is 256,192 0Currently in 7 is 256,192 0Currently in 8 is 256,192 0Currently in 9 is 256,128 0Currently in 10 is 256,128 0Currently in 11 is 256,128 0Currently in 12 is 256,128 0Currently in 13 is 256,128 0Currently in 14 is 256,128 0Currently in 15 is 256,192 0Currently in 16 is 256,192 0Currently in 17 is 256,192 0Currently in 18 is 256,192 what does this mean?
  3. Hi I have a class call map.  #include "Map.h" #include <fstream> #include <ostream> #include <istream> Log spritelog("spritedebug.txt", false); Map::Map() { Load(); spritelog << "Sprites are loaded" << std::endl; } void Map::Load() { ifstream resources("resources.txt"); std::string str; int i = 0; while (std::getline(resources, str)) { UsedSprites[i] = new Sprite(0, 0, str); i++; } resources.close(); delete resources; str = ""; ifstream maptext("map.txt"); i = 0; int y = 0; int x = 0; while(std::getline(maptext, str)) { stringstream stream(str); string c = ""; while(std::getline(stream,c, ',')) { int n = atoi(c.c_str()); MapSprite[x] = UsedSprites[n]; MapSprite[x]->X = i*64; MapSprite[x]->Y = y*64; spritelog << n << "Loading into " << x << " at " << i*64 << "," << y*64 << std::endl; i++; x++; } y++; i = 0; } maptext.close(); spritelog << "Loading " << x << " Sprites Into Map at " << y << " lines" << std::endl; delete UsedSprites; delete maptext; } void Map::Render() { for(int i = 0; i < 34; i++) { MapSprite[i]->Render(); spritelog << "Rended: " << i << "X: " << MapSprite[i]->X << " Y: " << MapSprite[i]->Y << std::endl; } } When I load this text file: 0,1,0,0,1 1,0,0,0,1 1,1,1,1,1 0,0,0,0,0 1,1,1,1,1 1,0,0,0,1 1,1,1,1,1   0 = green 1= grey   See attachments for debug info and screen shot.[attachment=19569:helpc++.PNG][attachment=19570:spritedebug.txt]   When is the x and y not the same as what I set it in Load() to what it renders at.
  4. I have been told about how hard mmo are but right I am just trying to make a demo because I have a friend who owns a marketing firm whos interested in the game. Right now i am just creating simple code structure so I can show off the concept.  
  5. I don't consider myself a beginner, I have over 3 years of c++, c# and game programming behind me but I have not programmed a game with optimized graphics.
  6. Is Direct x portable to mac??
  7. I currently starting to make a mmorpg in c++ using opengl. How could I optimized it to run the best it can on integrated graphics but also take full advantage of top of line graphics card like a GTX 660 or higher.Would it been done directly in the way I code opengl or would it been done by changing the quality of the texture images?? 
  8. I have a player class like in c++ class i need a player class like witch or warrior [source lang="cpp"]#ifndef PLAYER_H #define PLAYER_H #include "gameobject.h" #include "gameobject_component.h" #include <QString> class Player : public GameObject { public: Player(QString name, int maxlevel, PlayerClass classtype); Player(QString name, int level, int xp, int maxlevel, PlayerClass classtype); void Update(); void Checklevel(); void Attack(); virtual ~Player(); bool isactive; int Level; int Maxlevel; int Xp; float Money; QString Name; float Mana; float Maxmana; float Health; float Maxhealth; float Speed; float Strenght; float Intelect; float Hitrate; GameObject backpack[30]; GameObject_Component Componets[100]; protected: private: }; #endif // PLAYER_H [/source]
  9. What is the best way to represent player classes for an rpg game in c++
  10. Is there any open source cross platform rendering/graphics engine for qt
  11. Is there any open source cross platform 3d rendering/graphics for qt.
  12. Its a 3d game so i want to use opengl
  13. I want to use qt because of it network classes and its portability.
  14. I'm a very good programmer and have programmed many other games including android and xna game so I'm not worried that my project to big i just need to how to get started.
  15. I am starting making a mmorpg game using qt and c++ does if anyone can point my in the right direction such as books, tutorials, website anything to help me get started.