Bindenlicht - Java binding for Irrlicht

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
William Finlayson
Posts: 61
Joined: Mon Oct 25, 2004 12:11 am

Post by William Finlayson »

Please don't take offence about not getting a reply sooner, I'm afraid I'm not on the forums all of the time, and I missed your other thread.

Unfortunately, getHeight has not been implemented yet in Bindenlicht. Thanks for bringing my attention to it though. I'll make sure it's working in the next release, and I'll add a proper implementation of Vector2Df. Right now I'm in my exam period at uni, so I can't say when the release will be, but rest assured that work is continuing on Bindenlicht. All I can suggest for now, is that you continue work on your program, but leave the terrain stuff until the next release. I'm sure this isn't the answer you were looking for, but I hope that you can appreciate that Bindenlicht is still in development, and hope that this doesn't put you off using it.

Just to let you know, I check these forums when I can, but I don't get any notification emails when posts have been made here, so if you are in need of a quick response to a Bindenlicht woe that goes unanswered here, I would suggest either the Bindenlicht forums, or emailing me directly.
CBMFreak
Posts: 4
Joined: Fri Feb 04, 2005 8:14 am

Post by CBMFreak »

Okay .. thanks... cool

I will do that :)
William Finlayson
Posts: 61
Joined: Mon Oct 25, 2004 12:11 am

Post by William Finlayson »

0.1.8 released! Support for Irrlicht 0.8 is now there. The PerPixelLighting tutorial has been ported, but my hardware doesn't support the shaders, so if anyone is able to test it and let me know if it works that would be great. I'm also curious to know if it works in Linux.

The Input model has not been changes, I hope for the better. It's now easier to just work with the event's you want, the class names make a bit more sense, and some more of the swig nastiness has been hidden. Anyone needing to update their input code should take a look at the example's source to see the new way to add an event listener, and the new class names.

Other great news is that Stefan Dingfelder (of Jirr fame) has agreed to join forces on Bindenlicht :) He has some great ideas, and I hope that with his help, Bindenlicht will see some very interesting improvements.

@CBMFreak: getHeight works now. Due to the way variables are passed in Java, you will need to use a FloatPointer class to get the height:

Code: Select all

FloatPointer heightPointer = new FloatPointer();
float height;
boolean valid = terrain->getHeight(new Vector2df(x,y),  heightPointer);
if(valid) height = heightPointer.value();
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

I played around with Bindenlicht and I like it. One thing I recognized is that the console output is displayed after the main thread is terminated, but not while the app is running. This is one thing you should fix urgently ;-)

~hearsedriver();
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
William Finlayson
Posts: 61
Joined: Mon Oct 25, 2004 12:11 am

Post by William Finlayson »

That hasn't happened to me, but I haven't tested it with that many configurations. What platform and jre are you using? The console output works fine for me under WinXP, Ubuntu and Suse, all with Sun's 1.4 jre though.
hearsedriver
Posts: 81
Joined: Fri Aug 22, 2003 12:06 pm
Location: Germany
Contact:

Post by hearsedriver »

I am using Win XP Pro SP2, Eclipse 3.1 M5a, Sun J2SDK 1.4.2_04.

~hearsedriver();
matthias gall, lead programmer at sechsta sinn - email matthias@sechsta-sinn.de
domstyledesign
Posts: 9
Joined: Sat Apr 30, 2005 3:41 am
Contact:

Post by domstyledesign »

hmm... i tried to run the bindenlicht batch files. the "helloworld" and and gui demos worked fine. the rest did not. here's an error log created when the quake3map demo failed.

Code: Select all

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6a5a9165, pid=3920, tid=2468
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode)
# Problematic frame:
# C  [Irrlicht.dll+0xa9165]
#

---------------  T H R E A D  ---------------

Current thread (0x00035dc8):  JavaThread "main" [_thread_in_native, id=2468]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00aceaac, EBX=0x00000000, ECX=0x3f800000, EDX=0x13216600
ESP=0x0007f8a0, EBP=0x0007f8b8, ESI=0x132165e8, EDI=0x0007f930
EIP=0x6a5a9165, EFLAGS=0x00010212

Top of Stack: (sp=0x0007f8a0)
0x0007f8a0:   00000000 0007f92c 00000000 3f800000
0x0007f8b0:   00000000 132165e8 0007f958 6a5095e6
0x0007f8c0:   132165e8 00aceaac 00acbf88 00000080
0x0007f8d0:   00000000 0007f930 0007f920 7c9106eb
0x0007f8e0:   77c2c3c9 00030000 00000000 77c2c3ce
0x0007f8f0:   00acbf88 00aceaac 000001fc 6d64c230
0x0007f900:   00000002 0007f8f0 00000002 0007fbb8
0x0007f910:   77c35c94 77c12088 ffffffff 77c2c3ce 

Instructions: (pc=0x6a5a9165)
0x6a5a9155:   80 3f 8b 45 0c 89 4a 3c 89 4a 28 89 4a 14 89 0a
0x6a5a9165:   8b 13 8d 4e 58 89 56 58 8b 53 04 89 51 04 8b 53 


Stack: [0x00040000,0x00080000),  sp=0x0007f8a0,  free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [Irrlicht.dll+0xa9165]
C  [Irrlicht.dll+0x95e6]
C  [Irrlicht.dll+0x226d8]
C  [bindenlicht.dll+0xa453]
j  bindenlicht.BindenlichtJNI.ISceneManager_addOctTreeSceneNode__SWIG_1(JJJII)J+0
j  bindenlicht.ISceneManager.addOctTreeSceneNode(Lbindenlicht/IMesh;Lbindenlicht/ISceneNode;II)Lbindenlicht/ISceneNode;+15
j  bindenlicht.ISceneManager.addOctTreeSceneNode(Lbindenlicht/IMesh;)Lbindenlicht/ISceneNode;+7
j  TestQuake3Map.main([Ljava/lang/String;)V+66
v  ~StubRoutines::call_stub
V  [jvm.dll+0x818e8]
V  [jvm.dll+0xd4989]
V  [jvm.dll+0x817b9]
V  [jvm.dll+0x88747]
C  [java.exe+0x14c0]
C  [java.exe+0x64cd]
C  [kernel32.dll+0x16d4f]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  bindenlicht.BindenlichtJNI.ISceneManager_addOctTreeSceneNode__SWIG_1(JJJII)J+0
j  bindenlicht.ISceneManager.addOctTreeSceneNode(Lbindenlicht/IMesh;Lbindenlicht/ISceneNode;II)Lbindenlicht/ISceneNode;+15
j  bindenlicht.ISceneManager.addOctTreeSceneNode(Lbindenlicht/IMesh;)Lbindenlicht/ISceneNode;+7
j  TestQuake3Map.main([Ljava/lang/String;)V+66
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00a8ba28 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=2760]
  0x00a8a730 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2732]
  0x00a89988 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1560]
  0x00a80d88 JavaThread "Finalizer" daemon [_thread_blocked, id=4000]
  0x00a7f8f8 JavaThread "Reference Handler" daemon [_thread_blocked, id=2332]
=>0x00035dc8 JavaThread "main" [_thread_in_native, id=2468]

Other Threads:
  0x00a7b7b0 VMThread [id=2016]
  0x00a8cd30 WatcherThread [id=3412]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 356K [0x02ad0000, 0x02b70000, 0x02fb0000)
  eden space 512K,  69% used [0x02ad0000, 0x02b29318, 0x02b50000)
  from space 64K,   0% used [0x02b50000, 0x02b50000, 0x02b60000)
  to   space 64K,   0% used [0x02b60000, 0x02b60000, 0x02b70000)
 tenured generation   total 1408K, used 0K [0x02fb0000, 0x03110000, 0x06ad0000)
   the space 1408K,   0% used [0x02fb0000, 0x02fb0000, 0x02fb0200, 0x03110000)
 compacting perm gen  total 8192K, used 1629K [0x06ad0000, 0x072d0000, 0x0aad0000)
   the space 8192K,  19% used [0x06ad0000, 0x06c67540, 0x06c67600, 0x072d0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x0040c000 	C:\WINDOWS\system32\java.exe
0x7c900000 - 0x7c9b0000 	C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 	C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 	C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 	C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c68000 	C:\WINDOWS\system32\MSVCRT.dll
0x6d640000 - 0x6d7c5000 	C:\Program Files\Java\jre1.5.0_02\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 	C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f56000 	C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 	C:\WINDOWS\system32\WINMM.dll
0x6d280000 - 0x6d288000 	C:\Program Files\Java\jre1.5.0_02\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000 	C:\Program Files\Java\jre1.5.0_02\bin\verify.dll
0x6d300000 - 0x6d31d000 	C:\Program Files\Java\jre1.5.0_02\bin\java.dll
0x6d630000 - 0x6d63f000 	C:\Program Files\Java\jre1.5.0_02\bin\zip.dll
0x67d40000 - 0x67da1000 	C:\bindenlicht\Bindenlicht-0_1_8-Win32\bindenlicht.dll
0x6a500000 - 0x6a5f2000 	C:\WINDOWS\system32\Irrlicht.dll
0x68b20000 - 0x68b40000 	C:\WINDOWS\system32\GLU32.DLL
0x5ed00000 - 0x5edcc000 	C:\WINDOWS\system32\OPENGL32.dll
0x73760000 - 0x737a9000 	C:\WINDOWS\system32\DDRAW.dll
0x73bc0000 - 0x73bc6000 	C:\WINDOWS\system32\DCIMAN32.dll
0x5ad70000 - 0x5ada8000 	C:\WINDOWS\system32\uxtheme.dll
0x12c80000 - 0x12c93000 	C:\Program Files\PowerMenu\PowerMenuHook.dll
0x7c9c0000 - 0x7d1d4000 	C:\WINDOWS\system32\SHELL32.dll
0x77f60000 - 0x77fd6000 	C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d2000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5d090000 - 0x5d127000 	C:\WINDOWS\system32\comctl32.dll
0x12cd0000 - 0x12cd7000 	C:\Program Files\Logitech\MouseWare\System\LgWndHk.dll
0x12ce0000 - 0x12ce7000 	C:\Program Files\Logitech\iTouch\iTchHk.dll
0x12cf0000 - 0x12f23000 	C:\WINDOWS\system32\ialmgicd.dll
0x12fd0000 - 0x1304f000 	C:\WINDOWS\system32\ialmgdev.dll

VM Arguments:
java_command: TestQuake3Map

Environment Variables:
PATH=C:\GTK\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\backburner 2\;C:\Program Files\Java\jre1.5.0\bin;C:\Program Files\Java\jdk1.5.0\bin;C:\Program Files\Support Tools\;C:\Program Files\VoiceAge\Common;
USERNAME=dom
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 3, GenuineIntel


---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 2

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 506600k(144536k free), swap 1182984k(755736k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_02-b09) for windows-x86, built on Mar  4 2005 01:53:53 by "java_re" with MS VC++ 6.0
Post Reply