Advertisement Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    2
  • comment
    1
  • views
    340


1 Comment


Recommended Comments

i am a designer and artist, i would like to join, if you would like to see some of my work, its on my twitter

@rruuxii

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Advertisement
  • What is your GameDev Story?

    In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

    (You must login to your GameDev.net account.)

  • Blog Entries

  • Similar Content

    • By jb-dev
      This is a room with a checkered floor pattern with aesthetic Greek pillars. These are procedurally generated of course!
    • By babaliaris
      Hello! I'm trying to understand why my reflection code does not work and I can't think why is this happening. What I want from you is to give me hints of what might go wrong in order to check it and give you more feedback and maybe we find the problem. This is the first time I'm doing reflection.
       
      These are the steps and order of rendering my scene:
      1) First I'm creating a Frame buffer with an RGB texture as it's color buffer and a Renderer Buffer as it's depth and stencil buffer with 24_8 precision accordingly (Even though I don't use the stencil).
      2) I'm rendering the skybox cube map into the custom Frame Buffer with the depth test disabled. After that I'm enabling depth test again.
      3) I'm rendering the cube into the custom Frame Buffer and sampling from the cube map using the reflection from the viewer and the cube's fragment.
      4) I'm rendering a quad into the default frame buffer by sampling the color buffer texture from the custom frame buffer.
      Ps: I have blend enable too, but I tried to disabled it and got the same results.
      Below you can see the results:
       
      So what should I check?
      Below you can see the vertex and fragment shaders for the cube (I'm doing calculations in World space):
      Vertex Shader:
      #version 330 core layout(location = 0) in vec3 aPos; layout(location = 1) in vec3 aNormal; uniform mat4 model; uniform mat4 view; uniform mat4 proj; out vec3 normal; out vec3 fragPos; void main() { gl_Position = proj * view * model * vec4(aPos, 1.0f); normal = mat3(transpose(inverse(model))) * aNormal; fragPos = vec3(model * vec4(aPos, 1.0f)); } Fragment Shader:
      #version 330 core out vec4 aPixelColor; in vec3 normal; out vec3 fragPos; uniform samplerCube cube_map; uniform vec3 camPos; void main() { vec3 view = normalize(fragPos - camPos); vec3 refl = reflect(view, normalize(normal)); aPixelColor = vec4(texture(cube_map, refl).rgb, 1.0f); } Cube Vertices:
      float l_vertices[] = { //Positions Normals. -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, -0.5f, 0.5f, -0.5f, 0.0f, 0.0f, -1.0f, -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, -0.5f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.5f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, -0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, -0.5f, -0.5f, 0.5f, 0.0f, 0.0f, 1.0f, -0.5f, 0.5f, 0.5f, -1.0f, 0.0f, 0.0f, -0.5f, 0.5f, -0.5f, -1.0f, 0.0f, 0.0f, -0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, -0.5f, -0.5f, -0.5f, -1.0f, 0.0f, 0.0f, -0.5f, -0.5f, 0.5f, -1.0f, 0.0f, 0.0f, -0.5f, 0.5f, 0.5f, -1.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 0.0f, 0.5f, 0.5f, -0.5f, 1.0f, 0.0f, 0.0f, 0.5f, -0.5f, -0.5f, 1.0f, 0.0f, 0.0f, 0.5f, -0.5f, -0.5f, 1.0f, 0.0f, 0.0f, 0.5f, -0.5f, 0.5f, 1.0f, 0.0f, 0.0f, 0.5f, 0.5f, 0.5f, 1.0f, 0.0f, 0.0f, -0.5f, -0.5f, -0.5f, 0.0f, -1.0f, 0.0f, 0.5f, -0.5f, -0.5f, 0.0f, -1.0f, 0.0f, 0.5f, -0.5f, 0.5f, 0.0f, -1.0f, 0.0f, 0.5f, -0.5f, 0.5f, 0.0f, -1.0f, 0.0f, -0.5f, -0.5f, 0.5f, 0.0f, -1.0f, 0.0f, -0.5f, -0.5f, -0.5f, 0.0f, -1.0f, 0.0f, -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f, 0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, -0.5f, 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, 0.0f };  
    • By adamhuman
      well Hello internet , greeting to all of you smart beautiful Developers people  
      its something i dream about to make my own simple 2D game engine from scratch
      and to make it Easy for my self i thought ill be able to use C# for the game coding and Basic manipulation and Animation ,
      and C++ for the Graphic Engine and the heavy stuff of Importing and exporting and rendering 
       
      but the problem is i only have Experience in C# and Graphic and Illustration Design ( that's = no worry about the Animation and Assets )
      so i don't Have any Experience in SDL/OpenGL or C++ i only know some Basic , 
      and since SDL/OpenGL tutorials are available in youtube i didnt find an advanced one talking about combining between C# and C++ like Unity3D did in their engine 
      any help in this will be Awesome  
    • By silikone
      Since hardware with full support for floating point textures and frame buffers is so ubiquitous today, is there a reason to shoehorn in HDR using non-float formats? The doubling in memory usage incurred by half-floats is indeed daunting, and minifloats just don't offer the desired level of precision in many cases. Still, this could mean so little on contemporary hardware that the benefits far outweigh any potential penalties, 
    • By sdidsa
      not sure if this is the right place to ask, but i have made a certain simulation with JavaFX 3D API and it's working very well so far,
      now i wanted to implement 3D shadows and i wasn't able to find any articles or help, i had to read a lot of articles about 3D shadow mapping algorithms but i wasn't able to apply anything on my JavaFX project
      i already assumed that it's impossible but if anyone of you have tried that, let me know
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!