#1 Creating a Game Engine in Java and OpenGL - Skydome

Поділитися
Вставка
  • Опубліковано 9 вер 2024
  • In this part of the Game Engine Tutorial with Java and LWJGL 3 we create and render our first object, the Skydome!
    The starting code is available here: github.com/ore...
    The finished code is available here: github.com/ore...
    Eclipse IDE project setup: • #0 Creating a Game Eng...

КОМЕНТАРІ • 86

  • @oreonengine9444
    @oreonengine9444  7 років тому +15

    This video was getting longer than intended, sorry for that. The next video about the Terrain Quadtree will be hopefully more compact.

  • @TheShaShow
    @TheShaShow 4 роки тому +1

    Wow! Very precise and clear coding. The way you explain these steps lets me know exactly what kind of line I'm coding and what it is for. This is amazing! I know it's long, but it can be sped up by the viewers if the need it faster. This gives me plenty of time to take in the concepts and their usage. Thanks again for this great video!

  • @kckph4264
    @kckph4264 4 роки тому +1

    I love.. how ... you... go... into... so... much... DETAIL... about... what... we... are... doing... so that.... we... actually... LEARN SOMETHING, its copying down from the board in an English lesson, but its just written in Italian, you can sort of understand it but you don't actually know what's being written

  • @DerWand
    @DerWand 6 років тому +27

    sounds german

  • @wei-chengtseng7288
    @wei-chengtseng7288 7 років тому +2

    I can't wait to see more. Thanks oreon3D!!

  • @wt743
    @wt743 4 роки тому +1

    Didn't matter for this demo, but I think there was a mistake on line 40 at 6:59. Second parameter should have been a 2 (2, 2 instead of 2, 3) since there's only two texture coordinate floats, yes?

  • @TheEandRTeam
    @TheEandRTeam 2 роки тому

    Thank you so much, I got one syntax error that I hope to find soon, but this tutorial was soooo helpful!!

  • @SebastienMarlot
    @SebastienMarlot 3 роки тому +1

    help me
    modules.AtmosphereShader ERROR: 0:1: '' : Incorrect GLSL version: 430
    WARNING: 0:5: 'GL_ARB_explicit_attrib_location' : extension is not available in current GLSL version
    WARNING: 0:5: 'GL_ARB_explicit_attrib_location' : extension is not available in current GLSL version

  • @triplenoice
    @triplenoice 5 років тому +6

    how to make a unreal engine made-in-home

  • @BdyPhrk
    @BdyPhrk 6 років тому

    Awesome tutorials, quality information at a good pace, thank you!

  • @ganimatics
    @ganimatics 6 років тому

    Thank you so much it works great! Can't wait to learn from the next episodes :)))

  • @Sivyziom
    @Sivyziom 4 роки тому +1

    Good engine. I use this in 1 part to program my game. I use this as jar.

  • @thatisjake
    @thatisjake 5 років тому +1

    What does this mean?
    no material in polygon of: Dome
    obj loading time : 15ms
    modules.AtmosphereShader 0(1) : error C0104: Unknown pre-processor directive #version430
    0(3) : error C0000: syntax error, unexpected '(', expecting "::" at token "("
    0(5) : error C5060: out can't be used with non-varying worldPosistion

  • @stevenreyniers6890
    @stevenreyniers6890 Рік тому

    can someone tell me how to fix this problem? What i did wrong
    modules.AtmosphereShader Error: Could not find uniform: m_World

  • @wunlee1845
    @wunlee1845 7 років тому

    Thanks so much for doing this series.

  • @FFehse-dk9is
    @FFehse-dk9is 6 років тому +3

    Hi, I followed your tutorial, but it seems, the dome doesn't work... The program runs just fine, the window is simply black. Any ideas? I read in Nijastan K.s comments, that he had similar issues...

    • @oreonengine9444
      @oreonengine9444  6 років тому

      He had issues because there were erros in the C++ model loading. My loader works as intended. You can try assimp loading too, that may helps. I added it to my engine, code is online

    • @FFehse-dk9is
      @FFehse-dk9is 6 років тому +1

      I just replaced it with a custom dome.obj (exported from Blender) and it's still not working.

  • @betaken
    @betaken 3 роки тому

    I am getting an info called no material in polygon of: Dome the sky buffer is showing

  • @cadmiumgames
    @cadmiumgames 7 років тому

    Great job man! Can't wait to see more!

  • @ahmedtohami6719
    @ahmedtohami6719 5 років тому

    perferct series from perfect tutor god bless you :)

  • @cannedman4821
    @cannedman4821 4 роки тому

    I get an error that I don't think anyone else had:
    modules.AtmoshereShader ERROR: 0:13: 'worldPosition' : undeclared identifier
    ERROR: 0:13: 'assign' : cannot convert from '3-component vector of highp float' to 'highp float'

  • @thatisjake
    @thatisjake 5 років тому +1

    Quick question cause I'm new to this coding in java thing. Are we allowed to sell what we create? Like say I use the openGL thing and create a game with it, does it follow the agreement terms or whatever to sell the game on steam?

    • @rtrdedn00b54
      @rtrdedn00b54 5 років тому +1

      opengl is a standardized open library to talk to the GPU. It has nothing to do with your Game per se just for using it. It is like using Java its a standard language to talk to GPUs. So no you don't have to pay anyting to anyone.

  • @MHVikingPride
    @MHVikingPride 5 років тому +2

    Exception in thread "main" java.lang.NullPointerException
    at core.utils.ImageLoader.ioResourceToByteBuffer(ImageLoader.java:120)
    at core.utils.ImageLoader.loadImageToByteBuffer(ImageLoader.java:79)
    at core.kernel.Window.create(Window.java:68)
    at core.kernel.CoreEngine.createWindow(CoreEngine.java:41)
    at core.Main.main(Main.java:10)
    running on mac

    • @michamarzec9786
      @michamarzec9786 5 років тому

      probably u did not initialzed something and it returns null(compiler says that something is empty or does not exist)

  • @has_ttv4752
    @has_ttv4752 5 років тому

    no material in polygon of: Dome
    obj loading time : 18ms
    modules.AtmosphereShader Vertex info
    -----------
    (0) : error C5145: must write to gl_Position
    Can anyone help me with the above error? Can't see where I am going wrong!

  • @iceeye7305
    @iceeye7305 6 років тому +1

    Hello! I'm liking the series so far but I am also having the black screen issue. Everything runs without error but the screen is simply black.
    I saw that other people where having issues with this as well, you commented saying it could be something to do with object loading? Been combing over your video for a while now and just can't see where I've made a mistake.

    • @iceeye7305
      @iceeye7305 6 років тому

      I solved the issue, for anyone experiencing the same thing it's a problem with the shades not being initialized correctly/models not being projected. I'm still not sure what fixed it 100%, I rewrote much of my AtmosphereRenderer and a few other classes, comparing them to the tutorial download link that's in the description. The shader uniform values are named something different in the files than what he names them in the video, and there are some minor structure changes in Renderer and Skydome classes.
      All and all, I've got no clue why it works not and didn't before /shrug

    • @oreonengine9444
      @oreonengine9444  6 років тому

      There must be a mistake then, did you run the finished code I provided? For reasons like that I provided finished code for each episode that you can continue with it. You maybe made a minor mistake which results in a black screen, unfortunately that happens often in this genre...

    • @andreibalasa745
      @andreibalasa745 6 років тому

      PLEASE HELP HERE I get the error "No material in polygon: Dome"

    • @oreonengine9444
      @oreonengine9444  6 років тому

      this not an error, just an info

    • @andreibalasa745
      @andreibalasa745 6 років тому

      OREON ENGINE but the window is black i dont see the skydome

  • @cangus6349
    @cangus6349 6 років тому +1

    I followed the tutorial but ended up with just a black screen, what do i do?

    • @krator5178
      @krator5178 5 років тому

      I cried and laughed so hard reading this.

    • @deidara_8598
      @deidara_8598 5 років тому

      Same here, I'm so confused.

  • @yusufixmp4709
    @yusufixmp4709 6 років тому +2

    Hi Ty for All Tutorials . i have a problem i cant see dome. in Console : no material in polygon of: Dome
    obj loading time : 18ms

    • @andreibalasa745
      @andreibalasa745 6 років тому

      I have this problem too, but nobody seems to have a solution....

    • @RightNow978
      @RightNow978 5 років тому

      same problem here

    • @betaken
      @betaken 3 роки тому

      same here

  • @KaneMODS
    @KaneMODS 3 роки тому

    7:24 just saving my time stamp

  • @shazer4991
    @shazer4991 6 років тому

    I get an error
    no material in polygon of: Dome
    obj loading time : 53ms
    modules.AtmosphereShader Vertex shader failed to compile with the following errors:
    ERROR: 0:12: error(#143) Undeclared identifier: gl_position
    ERROR: 0:12: error(#160) Cannot convert from: "4-component vector of vec4" to: "float"
    ERROR: error(#273) 2 compilation errors. No code generated

    • @oreonengine9444
      @oreonengine9444  6 років тому

      you have syntax errors in atmosphere_VS glsl shader file. it should be gl_Position (capital P), second error is syntax error too which I can't determine without looking in your glsl file

  • @penguinator7453
    @penguinator7453 6 років тому

    I did exactly what was done in the tutorial, but I get the following error:
    Exception in thread "main" java.lang.NullPointerException
    at core.shaders.Shader.setUniform(Shader.java:168)
    at modules.AtmosphereShader.updateUniforms(AtmosphereShader.java:27)
    at core.renderer.Renderer.render(Renderer.java:16)
    at core.scene.GameObject.render(GameObject.java:31)
    at core.kernel.RenderingEngine.render(RenderingEngine.java:38)
    at core.kernel.CoreEngine.render(CoreEngine.java:130)
    at core.kernel.CoreEngine.run(CoreEngine.java:105)
    at core.kernel.CoreEngine.start(CoreEngine.java:59)
    at core.kernel.Game.launch(Game.java:12)
    at core.Main.main(Main.java:12)
    I suspect the HashMap "uniforms" was not initialized in Shader.java...

    • @oreonengine9444
      @oreonengine9444  6 років тому

      No, the uniform you want to set was not found within hashmap. The hashmap was ofc initialized when you look into the constructor. I bet here is a typing error in your shader construtor where you call "addUniform" methods

  • @Fataho
    @Fataho 7 років тому +1

    After 5 min of watching it I can already say, good job, keep going man! Do you have some kind of pdf documentation of your engine?

    • @oreonengine9444
      @oreonengine9444  7 років тому +1

      Thank you! Unfortunately not :( No time to create a pdf-doc

  • @ElmshornBoy
    @ElmshornBoy 6 років тому

    I found the patched version of you OreonEngine. It works, however I see some scenes, that reminds me of mountains with black strokes. Does it occure, because of the VboPatch?

  • @GGodis
    @GGodis 7 років тому

    In your fragment shader (from 22:00), can you please provide more information on what are those "2800" and "-0.00022", "-0.00025", "-0.00019" values and why they were chosen?
    Thanks for the really interesting tutorial by the way.

    • @oreonengine9444
      @oreonengine9444  7 років тому +1

      sure, they are the slopes of the linear decreasing function. I choose them by playing around what looks good. But overall you can say the linear function starting at the highest point of the skydome (2800) and are loosing its colors when the height decreases. the parameter of the function is the height in worldspace

  • @BenChatty
    @BenChatty 6 років тому

    I get the error:
    modules.AtmosphereShader Validation Failed: No Vertex array object bound
    I've looked at the final code and cannot find a fix in there either.
    Not sure what I'm missing.

    • @BenChatty
      @BenChatty 6 років тому +1

      I edited the MeshVBO.class to remove the GL30.glBindVertexArray(0) this seemed to correct my issue.

  • @BdyPhrk
    @BdyPhrk 6 років тому

    How to make intellisense pop all the time like it does for you?

  • @sudanal-hilali1698
    @sudanal-hilali1698 7 років тому +1

    thank you 😉

  • @MPHorndrup
    @MPHorndrup 7 років тому

    Very interesting! I couldn't get though the entire video though. The pacing is too slow for me. Difficult problem to solve in this genre :/

  • @siyabuilt
    @siyabuilt 3 роки тому

    Gutes Video! Mach weiter so 👍

  • @Samake03
    @Samake03 7 років тому

    Great work and nice to see its going on now. Love ya! Do you come from germany?

    • @oreonengine9444
      @oreonengine9444  7 років тому +1

      Thank you, yes right, I know my german accent is horrible :D

    • @chris_burrows
      @chris_burrows 6 років тому

      Where in Germany? I live in Australia but my girlfriend is from Berlin and I'm there all the time, amazing place.

  • @MrMajster12
    @MrMajster12 4 роки тому

    IDE is eclipse or netbeans?

  • @viniciusmachado4422
    @viniciusmachado4422 7 років тому

    Excellent video .. now I realize that my code structure is not so bad :)
    When will the next videos come out?

  • @MHVikingPride
    @MHVikingPride 5 років тому

    can you run this on a mac??

  • @phoenixalcander9934
    @phoenixalcander9934 5 років тому

    C++ or Java

  • @kennethcarrington326
    @kennethcarrington326 5 років тому

    when I tried to download lwjgl it says it contains a virus

    • @thatisjake
      @thatisjake 5 років тому +1

      Ignore it I think, it's prob cause it's a .jar

  • @BitterSweet5950l
    @BitterSweet5950l 4 роки тому

    you don't really explain anything :/
    What if I want a 2D or a 4D game ? Or a non euclidian one ? You don't explain anything about what you're writting D:

  • @jeff_u_tube1028
    @jeff_u_tube1028 3 роки тому

    his voice sounds like a german xD

  • @thegamerjoshua2848
    @thegamerjoshua2848 5 років тому

    8:42

  • @vaxind4840
    @vaxind4840 4 роки тому

    3:18

  • @snowgamerhd7118
    @snowgamerhd7118 7 років тому

    Are you german? :D

  • @aaaab384
    @aaaab384 7 років тому +3

    Learn to optimize GLSL.
    /facepalm

  • @DanyloSyrotynskyy
    @DanyloSyrotynskyy 6 років тому +1

    Ahaha Your engine looks like Unity clone