Twitter ▻ //www.twitter.com/thecherno In this video we take a look at how to create Flappy Bird from scratch in Java, using LWJGL 3 for OpenGL. We'll be ...
Help, Please
OpenGL: 3.3.0 - Build 8.15.10.2712
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x159123aa, pid=3568,
tid=604
#
# JRE version: Java(TM) SE Runtime Environment (8.0_45-b14) (build
1.8.0_45-b14)
# Java VM: Java HotSpot(TM) Client VM (25.45-b02 mixed mode, sharing
windows-x86 )
# Problematic frame:
# C [ig7icd32.dll+0x3023aa]
#
# Failed to write core dump. Minidumps are not enabled by default on client
versions of Windows
#
Could someone explain to me how to get it to automatically recommend code
from the lwjgl, GL11, GL20 or other imported classes? I get recommendations
from the base library but not from imports.
+Jesse Bevil just type import static org.lwjgl.opengl.GL11.*Then you can just type everything direct instead of typeing GL11.gl... You can just start typing gl... I just did that a few times for the other versions and Then I get rid of most of the repetitive typing. All recommended code will then pop up
I cannot for the life of me get the line GLContext.createFromCurrent(); to
not give me an error. 30:00 min. I I have been stuck on this for a good 15
- 20 min and I have looked a bunch of stuff up online and I cannot get it
to do anything. It says that GLContext cannot be resolved. Help?
In this video I introduce the series and we setup our workspace in eclipse with LWJGL. This is a series where we create a game, and game engine, using LWJGL ...
Instead of using the Build Path you should use this code in the main before
you start using the LWJGL library and then when you export you can run the
game aswell as long the lib file is in the same directory as the exported
jar:
String ds = File.separator;
//set path to native folder
System.setProperty("org.lwjgl.librarypath", System.getProperty("user.dir")
+ ds + "lib" + ds + "native" + ds);
+Jeffrey Goudzwaard That's a good idea; I just didn't want to put it in yet until the 'Distribution' episode much later, since we'll be doing a few more things along with it.
+iji Awesome! The next episode is actually being exported right now :D
Setting up Eclipse with LWJGL - Programming 2D Pong in Java
This is the first tutorial in my new programming 2D pong with LWJGL 3 and Java tutorial series. In this tutorial series I will be showing you how to create a project ...
Uses Eclipse, but NetBeans and other IDEs should be the same because the Meta-INF is the same. This video goes over how to prepare your project for ...
Do you know if there is a way to make the natives be inside of the .jar? So
that there wouldn't need to be a lib folder in the same directory as the
.jar?
Yes. In order to store your natives, you need to direct the path into the jar. Google around for accessing resources in a jar. You can also store other jars, as it is just a basic archive.
Error:(93, 11) java: method createCapabilities in class org.lwjgl.opengl.GL
cannot be applied to given types;
required: boolean
found: no arguments
reason: actual and formal argument lists differ in length
+Joseph Haddad I think you figured it out by now. It means you are missing an argument in your createCapabilities method call of type boolean. Did you do exactly what I did? For example with openAL (//javadoc.lwjgl.org/org/lwjgl/openal/AL.html) you need to pass an argument for this method, but it is actually not required by openGL.What happens if you write GL.createCapabilities(true);
#2 LWJGL Display - LWJGL Tutorials
Read the text version: //thecodinguniverse.com/?p=22 Episode 3: //youtu.be/cQAYMkzy9rQ Creating an OpenGL-compatible display with the LWJGL.
Hey, I wanted to know how you learned to code. I've been doing this for
about a year and still cant make my own program without having to follow a
tutorial on youtube. Also, if I watch a youtube series on this, I usually
stop making the program after the series is over because I don't know what
to do next. I dont have any classes or stuff to help with asking questions
and getting an immediate answers to any problems or issues or even tips. I
hope to go to college for this but will that even help?
Let me start by thanking you for your constructive criticism. I, however,
do not believe that these small errors make me lose all credibility with my
viewers. These videos aren't perfect, I know that, but they don't fail the
teach the viewers how the LWJGL works––which is really what I'm trying to
achieve. If I had tried to make my videos absolutely perfect, this whole
YouTube channel would have never existed. The videos get better over time,
so you could skip to episode 21 if you want.
You have good tutorials. But just a small note. You'll do better as a
tutorial provider if you go into more depth. There are hundreds of people
on youtube who post tutorials essentially saying "type this code and it
will work" however, this doesn't really help people that don't already
understand the logics behind the code. A lot of people will not know how to
morph the information you give to their own needs, so I'd strongly suggest
that not only show the code, but explain what it does.
first time watching your tuts-well made. But when i try to follow this
video lesson...I run it and i get the following error: A fatal error has
been detected by the Java Runtime Environment: SIGSEGV (0xb) at
pc=0xb34bf65d, pid=5091, tid=3060104000 JRE version: 7.0_09-b30 Java VM:
OpenJDK Server VM (23.2-b09 mixed mode linux-x86 ) problematic frame: v
~BufferBlob::jni_fast_GetLongField Failed to write core dump. Core dumps
have been disabled. run "ulimit -c unlimited" any ideas?
Thank you. I appreciate your feedback. I am interested in what you will
think of future videos, since I believe my style has gradually switched
from 'this code works.. so just type along' to 'this is how it works, and
here's the source code'. Interestingly, in later videos people actually
remark that my videos have become too theoretical, and should be more based
on the source code.
Hey, I checked out your tutorial for this on your website and it was really
helpful. But i keep on getting this problem. When I run this program and
the window pops up, it keeps on flickering for some reason. How do you fix
it?
Yeah It seems that I have solved the problem right now. With the
org.ljwjgl.LWJGLException: Pixel format not accelerated. I need to just to
go in to drivers update and updated my video-card and now it works :) it
seems.
when ever i do this it just appears in random colors i copied the code from
the site that he provided so it's not the code. the librarys are set up
correctly i triple checked that. please help. im running windows xp
Let me start by saying that I mean this to be constructive criticism. A
quick way for a tutor to lose all credibility with their prospective tutees
is to start off a tutorial talking about "astricks" and "try loops"
Hi do you know why I get this? Got no warnings but then I try to run it I
got this. And I got some pixel choose and other stuff trying to run this
program. org.lwjgl.LWJGLException: Pixel format not accelerated
when i made a new instance of the class, it didn't make the window pop up
at all, it didn't flicker open and then close either. I put the constructor
into main(String args[]) and it works, is this alright to do?
i get this error when i try and start this: JavaVM WARNING: JAWT_GetAWT
must be called after loading a JVM org.lwjgl.LWJGLException: Could not get
the JAWT interface cant past the whole thing but any ideaS?
I can't seem to run the app in eclipse. Any chance you know why the "Run
as..." thing is showing up when i attempt to run the full thing? I'm using
Ubuntu Linux with the GNOME DE. Thanks for your time!
There's no need to have support for Swing/AWT if you only use LWJGL
rendering. Using the built-in LWJGL window is usually faster and less of a
hassle, too. Does that answer your question?
Yes, for the source code that I have written in this tutorial it is.
However, for the OpenGL rendering which I'll cover in the following
tutorial, the imports will prove useful.
Have you tried the source code linked to in the video description? And what
are the warnings? Please do not reply to earlier comments if your comment
is not related to them.
My suggestion to you. Make a 3D model of the universe as we know it, with
LWJGL. Make it so you can interact with it too. That would be really cool
for the coding universe.
mine has 2 Errors.....actually Caution Signs the "import static
org.lwjgl.opengl,GL11.*; "import org.lwjgl.*; -------------- and when i run
it opens and closes by it slef
The source code linked to in the video description differs slightly, but I
don't believe there's nothing wrong with the code that I showed in this
video.
In this episode we create a keyboard class that is responsible for processing every key we press on our keyboard. This is a series where we create a game, and ...
I've been having some trouble with the program. It appears that Eclipse
isn't recognizing the GL_QUADS variable, or really anything else having to
do with drawing the objects on screen. I'm not sure if its a syntax change
in that last few weeks that's causing this. Also, my program doesn't
actually run. Eclipse opens it up, I can see the title "Engine", and the
contents are white. Then, after about a second, it closes. I tried copying
the code in the video to a "T" but it moves kind of fast so its possible I
missed something. If you're able to help me out, thanks. And also, thank
you for uploading the video!
+Houston Webb Did you statically import GL11? The closing is probably due to a typo in the update method of the 'Main' class. The easist way to find and fix all the errors is just to compare your code with the GitHub repository: //bit.ly/1Yd0svw
+Nukem Keep in mind that LWJGL is only a set of bindings. OpenGL is what is used for 2D/3D, although we're only doing 2D in this series, and it is very good!
+Sri Harsha Chilakapati Alright, that makes sense, thank for you for pointing it out! I'll be sure to change it next time.
[005] Spieleentwicklung mit LWJGL - Wechsel zu LWJGL 3
In dieser Folge migrieren wir unser kleines "Spiel" auf das neue LWJGL 3 mit GLFW. Leider können wir unseren Spieler jetzt nicht mehr bewegen, aber das ...
+JustCodingThings Vielleich wenn du ein Spiel mit jme in eclipse mit blender modelling machen könntest. Fürs modelling bräuchtest du ja keine tuts aber blender ist ein super Programm und passt klasse zu jme.Also wenn du da bok drauf hättest, ich würd mich freuen. :D
Vielen Dank, ich arbeite im Moment daran, wieder ein paar zu machen. Allerdings gefällt mir das Konzept nicht so recht, ein Spiel von Grund auf komplett zu schreiben, da die Serie ewig gehen würde. Ich habe mir gedacht, das ganze eventuell ein wenig auseinander zu nehmen und spezielle tutorials z.B. über rendering mit OpenGL oder audio etc zu machen.