Skip to content

Game Development

What can we say - we like games. And you can use Qt to write some. Questions? Ask here.
862 Topics 4.0k Posts
  • Creation of MMORPG in QT

    2
    0 Votes
    2 Posts
    1k Views
    T

    Not sure what part you need help with, but Qt supports TCP and UDP sockets which can be used to make an MMORPG. Actually coding an mmorpg is another topic altogether.

  • 0 Votes
    7 Posts
    5k Views
    M

    But it has to has a QSurface to work, hasn't it? Which is usually provided by QWindow, as I understand via make_current(). Even then, I still don't see how I can make Qt render something in Allegro's window.

  • 0 Votes
    2 Posts
    2k Views
    A

    Nevermind,
    I found this working code and modified mine following it:
    http://qt-project.org/wiki/Using-QOpenGLFunctions-and-QOpenGLContext

    thanks anyway

  • (Solved) Removing square (objects) from my GUI

    6
    0 Votes
    6 Posts
    2k Views
    SGaistS

    Exactly yes :)

  • Correct usage of QOpenGLContext??? [SOLVED]

    9
    0 Votes
    9 Posts
    12k Views
    U

    This my post is my own correct usage.Working perfectly.
    it is HOWTO using "QOpenGLFunctions_3_3_Core" class.
    There is no need Q_OBJECT macro.
    There is no need to define custom signal or slot.
    There is no need to define any connections.
    I put it as be reference:)

    http://qt-project.org/wiki/Using-QOpenGLFunctions-and-QOpenGLContext

  • 0 Votes
    2 Posts
    2k Views
    S

    Pretty interesting! I will have a look into this.

    I've done one entity system myself using C++11 features (like variadic templates) and QObject as base classes to enable signaling. It's really not optimized. Maybe I upload it in this forums too :P

  • 0 Votes
    3 Posts
    2k Views
    N

    Not gonna lie, being able to use an android device as a remote for your computer would be a pretty cool thing, and not just for games.

  • Getting an event on calling update()

    1
    0 Votes
    1 Posts
    820 Views
    No one has replied
  • Edit .dll file in counter strike 1.6

    3
    0 Votes
    3 Posts
    2k Views
    Z

    ok srry :)

  • [SOLVED] QImage and glTexImage2D()

    4
    0 Votes
    4 Posts
    8k Views
    S

    OK thanks,

    It can also be done like this:
    @
    QImage tmpImage("someTex.jpg");
    QImage image = tmpImage.mirrored();

    glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, image.width(), image.height(), 0, GL_BGRA, GL_UNSIGNED_BYTE, image.bits());
    @

  • Locate the Qt headers file

    5
    0 Votes
    5 Posts
    2k Views
    L

    is the lastest QT 5 version
    is a game engine source code that i found on internet, actually i am using to learn
    https://github.com/juniordiscart/RPGMaker/tree/master/Sourcecode

  • Locate the Qt headers file

    Locked
    2
    0 Votes
    2 Posts
    840 Views
    SGaistS

    Please, don't post the same thread twice, update the original with the new informations

    "Duplicate":http://qt-project.org/forums/viewthread/36652/

  • Rendering with QGeometryData - optimisations

    1
    0 Votes
    1 Posts
    766 Views
    No one has replied
  • [Resoved]How de copy and paste drawn objets

    10
    0 Votes
    10 Posts
    6k Views
    V

    hi i am a new to Qt, i couldn't find how u will serialize selected items, if you copy an selected item like which i done below i just get a shallow copy of an item, how do we actually get this selected item and serialize it. plz show it with a small example

    QList<QGraphicsItem *> copiedItem = this->selectedItems();

    All i want to finally do is, i wanted to copy and paste QGraphicItem on my QGraphicScene .

    thanks in advance

  • Help! I need ROAM2.0 source code write by qt

    5
    0 Votes
    5 Posts
    2k Views
    E

    [quote author="jiangcaiyang" date="1387547867"]Since Qt has Opened its source code, why not write it yourself? The QOpenGLFunctions_* are available.[/quote]

    I have implemented this algorithm.And I am write geominmap algorithm,and I want to implement it by opengl 3.3+ .算了,不会拼了。我想用OpenGL3.3+实现,但是我从网上搜的源码都是固定管线的,我不知道转化成shader,怎么入手。还有 OpenGL 4.0以上,有了Tessellation shader,这个可以代替LOD吗?

  • How does Qt3D support 2D overlay?

    4
    0 Votes
    4 Posts
    2k Views
    J

    Well, I am exploring through source code to find its internal mechanism inside Qt3D. Progress has been quite slow because of my current work. But I believe that some day in the future, this problem will be resolved.
    As for you scoobydoo, your code shows an easy example of using QPainter against raw OpenGL functionality. But a more advanced integration would be that we can do overlays using Qt Graphics-View framework and Qt OpenGL module, moreover, shaders or something like that are supported. "A blog":http://blog.csdn.net/gamesdev/article/details/12073065 shows my progress a few months ago.
    [quote author="ecitjiaojiao" date="1387336385"]怎么得到这个模块?[/quote]

    [quote author="scoobydoo" date="1387332041"]I did not find a way to create a 2D overlay over a OpenGL view so i had to create my own. It's fairly simple to do with a textured quad. I setup a quad and then create a GL texture map from the image created via a QPainter.

    To create the texture from the painter use something along these lines...

    @QPainter painter;
    QImage the_image( 100, 100, QImage::Format_ARGB32 );
    QRect dest_rect( 0, 0, 100, 100 );

    painter.begin( &the_image );
    painter.setRenderHints( QPainter::Antialiasing | QPainter::HighQualityAntialiasing );
    painter.fillRect( dest_rect, QColor( 162, 190, 255) );
    painter.setPen( QPen( Qt::black, 0 ) );
    painter.drawText( dest_rect, Qt::AlignCenter, "Hello" );
    painter.end();

    QImage overlay_image = QGLWidget::convertToGLFormat( the_image );

    glGenTextures( 1, &tid );
    glBindTexture( GL_TEXTURE_2D, tid );
    glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA,
    overlay_image.width(), overlay_image.height(), 0,
    GL_RGBA, GL_UNSIGNED_BYTE, overlay_image.bits() );
    @
    [/quote]

  • Ogre's viewport wont update in real time

    12
    0 Votes
    12 Posts
    10k Views
    Z

    Your better off not using Qt at all in regards to a 3D Game Engine. I worked on it for years with developers from Irrlicht, Ogre3D, Horde3D, Gameplay3D, OSG, SFML2, .... and have even tried to assist commercial Game Engine developers (Leadwerks) . You will solve one problem with integration and expose ten other issues. The way Qt's abstraction and just in general its designed is bad for games or external 3d graphics engines.

    Qt5 makes the problem even worse.

    I won't go into it, because core Qt devs never listen and tempers just git heated. But if you want to know what the problems are do a google search.

    Without a huge amount of effort re-factoring some of Qt's core components like Autodesk or The Foundry had to do to get things to work out its not going to happen.

    Valve, Leadwerks, Gameplay, ... all just used Gtk.

    If you have the skills you would be even better off using ...

    Poco C++
    Boost
    Luajit and Luawrapper
    SFML2
    Bullet

    And OpenGL 4.3 or better
    http://ogldev.atspace.co.uk/index.html

    Drawing a pixel Triangle Shaders Uniform Variables Translation Transformation Rotation Transformation Scaling Transformation Interpolation Indexed Draws Concatenating Transformations Perspective Projection Camera Space Camera Control 1 Camera Control 2 Basic Texture Mapping Ambient Lighting Diffuse Lighting Specular Lighting Point Lighting Spot Lighting Loading Models with Assimp Shadow Mapping - Part 1 Shadow Mapping - Part 2 Skybox Normal Mapping Billboarding and Geometry Shaders Particle System Using Transform Feedback 3D Picking Basic Tessellation PN Triangle Tessellation Vertex Array Objects Instance Rendering GLFX - OpenGL Effects Library Deferred Shading - Part 1 Deferred Shading - Part 2 Deferred Shading - Part 3 Skeletal Animation with Assimp Silhouette Detection Stencil Shadow Volume Object Motion Blur

    http://nopper.tv/norbert/opengl.html

    Rendering a Triangle Grey Filter Perspective Rendering a Cube Phong rendering of a sphere Texturing a Cube Normal Mapping Enviroment/cube mapping GPU Particles Geometry Shaders Reflection and Refraction Shadow Mapping Simple Tessellation Terrain Rendering Water Rendering Model Loading and Rendering Clipping Planes and two sided Rendering Using Stencil Buffer and Clipping Rendering to texture and planar reflection Texture matrix, alpha blending and discarding Compute Shaders Shadow Volumes Displacement Mapping Erode effect using perlin noise Model with groups and materials Fur rendering Projection shadow for directional lighting Screen Space Ambient Occlusion (SSAO) CPU ray tracing GPU ray tracing using computer shader.

    http://antongerdelan.net/opengl/index.html

    Hello Triangle Extended Initialisation Shaders Vertex Buffers Matrices and Vectors Virtual Camera Quaternion Quick-Start Ray-Based Picking Phong Lighting Texture Maps Importing a Mesh Multi-Texturing Using Textures for Light Coefficients Fragment Rejection Alpha Blending for Transparency Spotlights and Directional Lights Distance Fog Normal Mapping Cube Maps: Sky Boxes and Enviroment Mapping Geometry Shaders Tessellation Shaders Overlay Panels Sprite Sheets and 2D Animation Bitmap Fonts Vertex Displacement Animation Particle Systems Hardware Skinning Morph Target Animation Switching Framebuffer Image Processing with a Kernel Colour-Based Picking Deferred Shading Texture Projection Shadows

    http://www.opengl-tutorial.org/

    Opening a window The first triangle Matrices A Colored Cube A Textured Cube Keyboard and Mouse Model loading Basic shading VBO Indexing Transparency 2D text OpenGL Extensions Normal Mapping Render To Texture Lightmaps Shadow mapping Rotations Billboards & Particles Billboards - Particles / Instancing Picking with an OpenGL hack Picking with a physics library Picking with custom Ray-OBB function
  • 0 Votes
    2 Posts
    2k Views
    SGaistS

    Hi,

    Since it might be a regression, I would recommend asking this question on the interest mailing list you'll find Qt's developer/maintainers there (this forum is more user oriented)

    In between, you can also check the "bug report system":http://bugreports.qt-project.org to see whether it's a known issue. Maybe open a bug report with a minimal compilable example that shows the behavior change

  • Qt5 cocos2dx

    16
    0 Votes
    16 Posts
    15k Views
    K

    and also thank all of you guys to help me how to use Qt5 to programming cocos2dx .thx

  • Using multiple OpenGL contexts? [ReOpened]

    12
    0 Votes
    12 Posts
    10k Views
    Z

    Patches welcome. ;) Please submit it to gerrit.