Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: DirtyBlasion

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    298

    ShadowMap :(

    Hello!
    I want to add shadows and lighting to my game, but my problem is I don't know how to get depth component from a perspective other than main one. I thought ok, that's easy, an FBO and render,...
  2. Replies
    0
    Views
    314

    Texture is black

    Hi, there! I will put more code because it explains better than I would


    #include "Texture.h"
    #define STB_IMAGE_IMPLEMENTATION
    #include "..\stb_image.h"
    #include <iostream>

    ...
  3. Replies
    17
    Views
    1,562

    Hi, I'm not the one that questioned, but you are...

    Hi, I'm not the one that questioned, but you are "OpenGL Pro" so, you must know something. Never used that parameter, I used to replace it with nullptr, and do the same as mhagain said, but what I...
  4. Texture on an vertex array drawn shape

    So I want to recreate minecraft, I have created everything, it does create chunk shape, it draws it, but how I can put corresponding texture.

    What I'm thinking at, but I don't know how to apply is...
  5. Replies
    6
    Views
    1,142

    I cant understand how I can transform a PNG in...

    I cant understand how I can transform a PNG in glTexImage2D image data, last parameter
  6. Replies
    6
    Views
    1,142

    Opengl texture, explain?

    So I read a lot of things about textures, but it's still blocks me out... So please can somebody explain me something, on how it works?
  7. Replies
    3
    Views
    821

    Impresive, I got my system actually worked, but I...

    Impresive, I got my system actually worked, but I forgot to add things in drawplane. So I never used glm, because I considered my math is enough, anyways, I want to know how does your system works,...
  8. Replies
    3
    Views
    821

    camera problems

    Hi there!

    These days I'm strugling with a fps camera style.

    here's my camera code


    void Camera::FirstPerson(SDL_Window* window)
    {
    SDL_GetMouseState(&mousex, &mousey);
  9. Replies
    0
    Views
    591

    Missing GL version

    So I isntalled glew, all good, but my altgorithm didn't worked propely, and I put this in my script


    GLenum err = glewInit();
    if(err != GLEW_OK)
    {
    cout << "Error(glew): "...
  10. Replies
    1
    Views
    605

    SFML and Glew

    So initialy I was starting with glut, but I read somethings and I think sfml and glew are a great combo. So I started, I did the basic things, but how I can draw with a function? I make void Draw();...
  11. Replies
    4
    Views
    816

    Nobody? Please, help me! So I use freeglut. I...

    Nobody? Please, help me! So I use freeglut. I have this class
    class PlayerClass
    {
    public:
    int x, y, z, xzdir = 0, ydir = 0;
    PlayerClass(int _x, int _y, int _z)
    {
    x = _x;
    ...
  12. Replies
    4
    Views
    816

    re

    So it simply dont move, my pyramid is in the center of the screen. This camera should be supposed to act like a first person. The debug show the values pretty good. They increare, or decrease like it...
  13. Replies
    4
    Views
    816

    Camera problem

    #ifndef PLAYERCLASS_H_INCLUDED
    #define PLAYERCLASS_H_INCLUDED

    #include <iostream>
    #include <windows.h>
    #include <stdlib.h>
    #include <GL/glew.h>
    #include <GL/freeglut.h>
    #include <math.h>
  14. Replies
    0
    Views
    438

    What I need for start?

    So I'm working with code blocks, on c++. I want to get started. I want to start a game without any engine and thing. A Minecraft like.

    I see some people use glut, others use glew, or glfw3. Whats...
Results 1 to 14 of 14