LWJGL 1.0 beta3 Released

Started by Matzon, August 18, 2006, 21:59:27

Previous topic - Next topic

Matzon

grab it here:
http://sourceforge.net/project/showfiles.php?group_id=58488

As always, consider donating if you like LWJGL

Quote
Note:
applet test libraries are signed by lwjgl and includes fmod binaries that are used for demonstration purposes. You should only use the signed fmod lwjgl libs if you comply with the fmod license.
Applets are known to work in Firefox and Internet Explorer. Opera crashes for unknown reasons.

Changes:
- Statically linked devil support libs for linux and mac, removing any load/dependencies (many thanks to numberR)
- EXT_blend_color & EXT_blend_minmax extensions
- Added SGIS_generate_mipmap & SGIS_texture_lod extensions
- Added OpenGL 2.1 support
- Miscellaneous bug fixes

For info on using applets, check the wiki:
http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/index#other

kevglass

I'm still getting this repeatedly on the System.err when using Controllers.

Failed to poll device: Failed to poll device (8007001e)


I have some odd controller being reported with 32 buttons and 0 axis. This effect doesn't seem to intervere with other controllers plugged in.

This is on Win32.

Kev

vladl

Using this code

package org.lwjgl.test.input;

import org.lwjgl.input.Keyboard;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import org.lwjgl.opengl.GL11;

public class TestPoll {

	public static void main(String[] args) {
		new TestPoll().init();
	}
	
	private void init() {
		videoInit();
		KeyboardManager.init();
		mainLoop();	
		Display.destroy();
	}

	private void videoInit() {
		try {
			try {
				// get modes
				DisplayMode[] dm = org.lwjgl.util.Display.getAvailableDisplayModes(640, 480, -1, -1, -1, -1, 60, 60);

				org.lwjgl.util.Display.setDisplayMode(dm, new String[] {
						"width=" + 640,
						"height=" + 480,
						"freq=" + 60,
						"bpp="
								+ org.lwjgl.opengl.Display.getDisplayMode()
										.getBitsPerPixel() });
			} catch (Exception e) {
				e.printStackTrace();
			}
			
			Display.create();
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(-1);
		}

		GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
	}
	
	private void mainLoop() {
		while (!Display.isCloseRequested()) {
			System.out.println("Polling..");
			checkKeyPress();
		}
	}
	
	public static void checkKeyPress() {
		Keyboard.poll();
		//GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
		GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
	}
}


this errors occurs:

Polling..
Polling..
Polling..
Polling..
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6902edc3, pid=3816, tid=2032
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing)
# Problematic frame:
# C  [vticd.dll+0x2edc3]
#
# An error report file with more information is saved as hs_err_pid3816.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

Changing the checkKeyPress to this

public static void checkKeyPress() {
		Keyboard.poll();
		GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
		//GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
	}


everithing goes fine.

I changed to beta3 and using jdk1.5.0_06
Bye!

Matzon


vladl

Quote from: "Matzon"vticd.dll - Via OpenGL?

Don't understand your question. The only this I'm doing is what you see in the code (initialize all the stuff, poll the keyobard and clear the screen).

I'ts working for you?

Matzon

your crash is happening in your OpenGL driver, which is via I think. Try some newer drivers?
Via is known to be crap

vladl

Yes.. I heard it too. I will try with another video card. Thanks!

PD: You know i was using Via just for the dll name? Amazing!


ccc004

LWJGL Rocks!  This version even recognizes my old Xbox controller I have hooked up to the USB port.  I'm going to restart work on my LWJGL based game now.  Keep up the excellent work!   :D

darkmoon

I resumed game development yesterday, and discovered the new beta and the fact that DevIL now works on OSX! My texture loading is at least 5 times faster now!! :D
Big thanks to you guys! Great work!!!
The possibility to run in an applet seems also very cool, will try it out this evening!
Bubblomania - free, online, cute and psychedelic arcade game!
My Blog