Author Topic: 3D RPG example application  (Read 7611 times)

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
3D RPG example application
« on: November 18, 2011, 12:46:07 pm »
Hello!
I just finished writing a small application, which contains the most important parts (except collision detection) of a Isometric 3D Action RPG:

www.forgottenelements.com/rpgexample/rpgexample.jnlp



I would like to get some feedbacks and suggestions for possible improvements!
Thank you!
Marlon
www.forgottenelements.com
Free Action JAVA MMORPG

Online EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: 3D RPG example application
« Reply #1 on: November 22, 2011, 08:48:46 am »
At least on my (crappy) work machine, it seems to have some issues. Sometimes, it fails to start because you are accessing the mouse before the display has been created and sometimes (actually most of the time), it starts to show a native GL window and then exists to the desktop. Because you've disabled log output, it's hard to tell what's actually going on. Looks like either a VM crash or some System.exit(...) call.

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
Re: 3D RPG example application
« Reply #2 on: November 24, 2011, 06:38:13 pm »
I have bought a new laptop with Windows 7 64bit and installed the Java 7 JDK.
When trying to execute the program it crashes.
After installing eclipse and testing in this programming environment, it crashes again without giving error messages.
So I decided to make a new Project and paste/copy Advanced Example from the JPCT Wiki to test it.
There it crashes, too but the following log gets created in the Directory of the Project:

Code: [Select]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0035fe6e, pid=2188, tid=1976
#
# JRE version: 7.0_01-b08
# Java VM: Java HotSpot(TM) Client VM (21.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  0x0035fe6e
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x004d9800):  JavaThread "main" [_thread_in_native, id=1976, stack(0x00fc0000,0x01010000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x055cb000

Registers:
EAX=0x0c07d350, EBX=0x05060000, ECX=0x0000044c, EDX=0x000001b4
ESP=0x0100ebbc, EBP=0x00000000, ESI=0x055cb000, EDI=0x00000000
EIP=0x0035fe6e, EFLAGS=0x00010206

Top of Stack: (sp=0x0100ebbc)
0x0100ebbc:   06230020 05060000 00000600 0100ec04
0x0100ebcc:   68792974 05060000 0c06e2b0 00000000
0x0100ebdc:   00000600 05060000 06230020 00000000
0x0100ebec:   05087198 05060000 06230020 00000000
0x0100ebfc:   0c06e2b0 00000000 0100ec24 68792c02
0x0100ec0c:   00060000 00000004 00000000 00000600
0x0100ec1c:   00000004 05060000 0100ec48 67fcb6e7
0x0100ec2c:   05060000 00000004 00000000 00000600

Instructions: (pc=0x0035fe6e)
0x0035fe4e:   01 00 00 8d 34 ce 8b 3e 8b 6e 04 89 78 28 89 68
0x0035fe5e:   2c 8b 35 d0 79 08 05 8b b6 bc 01 00 00 8d 34 ce
0x0035fe6e:   8b 3e 8b 6e 04 89 78 30 89 68 34 83 c0 38 41 4a
0x0035fe7e:   0f 85 4e ff ff ff 5f 5e 5b 5d c3 00 00 00 00 00


Register to memory mapping:

EAX=0x0c07d350 is an unknown value
EBX=0x05060000 is an unknown value
ECX=0x0000044c is an unknown value
EDX=0x000001b4 is an unknown value
ESP=0x0100ebbc is pointing into the stack for thread: 0x004d9800
EBP=0x00000000 is an unknown value
ESI=0x055cb000 is an unknown value
EDI=0x00000000 is an unknown value


Stack: [0x00fc0000,0x01010000],  sp=0x0100ebbc,  free space=314k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x0035fe6e

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  org.lwjgl.opengl.GL11.nglDrawArrays(IIIJ)V
J  com.threed.jpct.CompiledInstance.render(ILcom/threed/jpct/GLBase;Ljava/nio/FloatBuffer;[FZLcom/threed/jpct/Camera;[[FZ[Ljava/lang/Object;)V
J  com.threed.jpct.GLRenderer.drawVertexArray(Lcom/threed/jpct/VisList;IILcom/threed/jpct/FrameBuffer;Lcom/threed/jpct/World;)V
J  com.threed.jpct.World.draw(Lcom/threed/jpct/FrameBuffer;ZIII)V
J  com.threed.jpct.util.ShadowHelper.updateShadowMap()V
j  AdvancedExample.gameLoop()V+141
j  AdvancedExample.main([Ljava/lang/String;)V+17
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x04d6fc00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3156, stack(0x05240000,0x05290000)]
  0x04d6c800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3928, stack(0x050c0000,0x05110000)]
  0x0119bc00 JavaThread "Service Thread" daemon [_thread_blocked, id=2284, stack(0x04af0000,0x04b40000)]
  0x01197000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=1792, stack(0x04aa0000,0x04af0000)]
  0x01195c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3732, stack(0x04780000,0x047d0000)]
  0x01192800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3228, stack(0x00f70000,0x00fc0000)]
  0x0118ac00 JavaThread "Finalizer" daemon [_thread_blocked, id=3180, stack(0x04880000,0x048d0000)]
  0x01186000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3252, stack(0x04900000,0x04950000)]
=>0x004d9800 JavaThread "main" [_thread_in_native, id=1976, stack(0x00fc0000,0x01010000)]

Other Threads:
  0x01183800 VMThread [stack: 0x047f0000,0x04840000] [id=3688]
  0x011ae400 WatcherThread [stack: 0x04ce0000,0x04d30000] [id=2256]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 18432K, used 9931K [0x243e0000, 0x257e0000, 0x29930000)
  eden space 16384K,  60% used [0x243e0000, 0x24d87fc8, 0x253e0000)
  from space 2048K,   2% used [0x255e0000, 0x255eb020, 0x257e0000)
  to   space 2048K,   0% used [0x253e0000, 0x253e0000, 0x255e0000)
 tenured generation   total 57260K, used 45002K [0x29930000, 0x2d11b000, 0x343e0000)
   the space 57260K,  78% used [0x29930000, 0x2c522be8, 0x2c522c00, 0x2d11b000)
 compacting perm gen  total 12288K, used 1726K [0x343e0000, 0x34fe0000, 0x383e0000)
   the space 12288K,  14% used [0x343e0000, 0x3458fb78, 0x3458fc00, 0x34fe0000)
    ro space 10240K,  42% used [0x383e0000, 0x3881c7b0, 0x3881c800, 0x38de0000)
    rw space 12288K,  53% used [0x38de0000, 0x39458210, 0x39458400, 0x399e0000)

Code Cache  [0x02770000, 0x02a80000, 0x04770000)
 total_blobs=860 nmethods=593 adapters=200 free_code_cache=29635Kb largest_free_block=30346944

Dynamic libraries:
0x01340000 - 0x0136f000 C:\Program Files (x86)\Java\jre7\bin\javaw.exe
0x77190000 - 0x77310000 C:\Windows\SysWOW64\ntdll.dll
0x74e20000 - 0x74f20000 C:\Windows\syswow64\kernel32.dll
0x75240000 - 0x75286000 C:\Windows\syswow64\KERNELBASE.dll
0x768a0000 - 0x76940000 C:\Windows\syswow64\ADVAPI32.dll
0x766b0000 - 0x7675c000 C:\Windows\syswow64\msvcrt.dll
0x750d0000 - 0x750e9000 C:\Windows\SysWOW64\sechost.dll
0x76a40000 - 0x76b30000 C:\Windows\syswow64\RPCRT4.dll
0x74d00000 - 0x74d60000 C:\Windows\syswow64\SspiCli.dll
0x74cf0000 - 0x74cfc000 C:\Windows\syswow64\CRYPTBASE.dll
0x76940000 - 0x76a40000 C:\Windows\syswow64\USER32.dll
0x76760000 - 0x767f0000 C:\Windows\syswow64\GDI32.dll
0x75290000 - 0x7529a000 C:\Windows\syswow64\LPK.dll
0x76270000 - 0x7630d000 C:\Windows\syswow64\USP10.dll
0x72350000 - 0x724ee000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\COMCTL32.dll
0x752a0000 - 0x752f7000 C:\Windows\syswow64\SHLWAPI.dll
0x75130000 - 0x75190000 C:\Windows\system32\IMM32.DLL
0x76cc0000 - 0x76d8c000 C:\Windows\syswow64\MSCTF.dll
0x74b80000 - 0x74bb6000 C:\Windows\SysWOW64\nvinit.dll
0x0f000000 - 0x0f006000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\_etoured.dll
0x747a0000 - 0x747dd000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll
0x76510000 - 0x766ad000 C:\Windows\syswow64\SETUPAPI.dll
0x76c90000 - 0x76cb7000 C:\Windows\syswow64\CFGMGR32.dll
0x74d90000 - 0x74e1f000 C:\Windows\syswow64\OLEAUT32.dll
0x76b30000 - 0x76c8c000 C:\Windows\syswow64\ole32.dll
0x75190000 - 0x751a2000 C:\Windows\syswow64\DEVOBJ.dll
0x74760000 - 0x7479b000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll
0x6a540000 - 0x6a5fe000 C:\Program Files (x86)\Java\jre7\bin\msvcr100.dll
0x6d1b0000 - 0x6d4d1000 C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
0x71e90000 - 0x71e97000 C:\Windows\system32\WSOCK32.dll
0x750f0000 - 0x75125000 C:\Windows\syswow64\WS2_32.dll
0x75510000 - 0x75516000 C:\Windows\syswow64\NSI.dll
0x71e50000 - 0x71e82000 C:\Windows\system32\WINMM.dll
0x74fa0000 - 0x74fa5000 C:\Windows\syswow64\PSAPI.DLL
0x71e40000 - 0x71e4c000 C:\Program Files (x86)\Java\jre7\bin\verify.dll
0x71e20000 - 0x71e40000 C:\Program Files (x86)\Java\jre7\bin\java.dll
0x71e00000 - 0x71e13000 C:\Program Files (x86)\Java\jre7\bin\zip.dll
0x6a3f0000 - 0x6a532000 C:\Program Files (x86)\Java\jre7\bin\awt.dll
0x746e0000 - 0x74760000 C:\Windows\system32\uxtheme.dll
0x738f0000 - 0x73903000 C:\Windows\system32\dwmapi.dll
0x6bcb0000 - 0x6bcd5000 C:\Program Files (x86)\Java\jre7\bin\jpeg.dll
0x10000000 - 0x10073000 E:\workspace\AdvancedExample\lwjgl.dll
0x6d950000 - 0x6da18000 C:\Windows\system32\OPENGL32.dll
0x6dbb0000 - 0x6dbd2000 C:\Windows\system32\GLU32.dll
0x6c4f0000 - 0x6c5d7000 C:\Windows\system32\DDRAW.dll
0x6c6b0000 - 0x6c6b6000 C:\Windows\system32\DCIMAN32.dll
0x74c20000 - 0x74c29000 C:\Windows\system32\VERSION.dll
0x74d60000 - 0x74d8d000 C:\Windows\syswow64\WINTRUST.dll
0x74fb0000 - 0x750cc000 C:\Windows\syswow64\CRYPT32.dll
0x75390000 - 0x7539c000 C:\Windows\syswow64\MSASN1.dll
0x67e60000 - 0x69085000 C:\Windows\system32\nvoglv32.DLL
0x75520000 - 0x76169000 C:\Windows\syswow64\SHELL32.dll
0x63560000 - 0x635d9000 C:\Windows\system32\mscms.dll
0x71f30000 - 0x71f47000 C:\Windows\system32\USERENV.dll
0x73640000 - 0x7364b000 C:\Windows\system32\profapi.dll
0x6dab0000 - 0x6dae8000 C:\Windows\system32\icm32.dll
0x08d40000 - 0x09187000 C:\Windows\system32\igd10umd32.dll
0x645c0000 - 0x646ab000 C:\Windows\system32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: AdvancedExample
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files\eclipse;
USERNAME=Marlon
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel



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

OS: Windows 7 , 64 bit Build 7600

CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

Memory: 4k page, physical 3986864k(2259632k free), swap 7971832k(5828660k free)

vm_info: Java HotSpot(TM) Client VM (21.1-b02) for windows-x86 JRE (1.7.0_01-b08), built on Oct  3 2011 02:11:36 by "java_re" with unknown MS VC++:1600

time: Thu Nov 24 18:25:15 2011
elapsed time: 6 seconds

What does this mean? Does JPCT have problems with Win 7 or a 64 Bit OS?
I tried other programs (for example some demos from Ardor3D) and all runs fine.
www.forgottenelements.com
Free Action JAVA MMORPG

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
Re: 3D RPG example application
« Reply #3 on: November 25, 2011, 01:05:41 am »
Sooo... I made some new experiences.
When removing the Shadowhelper the game runs fine. Most of the time it runs with 160 FPS, but sometimes its only 50 FPS. Thats really strange, too.
I have tested it over 10 times without problems, and after that another crash happened and I got another error log:

Code: [Select]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0073fe3a, pid=2336, tid=4376
#
# JRE version: 7.0_01-b08
# Java VM: Java HotSpot(TM) Client VM (21.1-b02 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  0x0073fe3a
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x048a7c00):  JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4376, stack(0x05400000,0x05450000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0227b000

Registers:
EAX=0x0da42a30, EBX=0x04bc0000, ECX=0x00000af4, EDX=0x0000019f
ESP=0x0544da6c, EBP=0x3e500000, ESI=0x0227b000, EDI=0x3dd80000
EIP=0x0073fe3a, EFLAGS=0x00010216

Top of Stack: (sp=0x0544da6c)
0x0544da6c:   06290020 04bc0000 00000c93 0544dab4
0x0544da7c:   607e2974 04bc0000 0da1c4d0 00000000
0x0544da8c:   00000c93 04bc0000 06290020 00000000
0x0544da9c:   04be7198 04bc0000 06290020 00000000
0x0544daac:   0da1c4d0 00000000 0544dad4 607e2c02
0x0544dabc:   00bc0000 00000004 00000000 00000c93
0x0544dacc:   00000004 04bc0000 0544daf8 6001b6e7
0x0544dadc:   04bc0000 00000004 00000000 00000c93

Instructions: (pc=0x0073fe3a)
0x0073fe1a:   01 00 00 8d 34 ce 8b 3e 8b 6e 04 89 78 18 89 68
0x0073fe2a:   1c 8b 35 d0 79 be 04 8b b6 64 01 00 00 8d 34 ce
0x0073fe3a:   8b 3e 8b 6e 04 89 78 20 89 68 24 8b 35 d0 79 be
0x0073fe4a:   04 8b b6 90 01 00 00 8d 34 ce 8b 3e 8b 6e 04 89


Register to memory mapping:

EAX=0x0da42a30 is an unknown value
EBX=0x04bc0000 is pointing into the stack for thread: 0x04871800
ECX=0x00000af4 is an unknown value
EDX=0x0000019f is an unknown value
ESP=0x0544da6c is pointing into the stack for thread: 0x048a7c00
EBP=0x3e500000 is an unknown value
ESI=0x0227b000 is an unknown value
EDI=0x3dd80000 is an unknown value


Stack: [0x05400000,0x05450000],  sp=0x0544da6c,  free space=310k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x0073fe3a

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  org.lwjgl.opengl.GL11.nglDrawArrays(IIIJ)V
J  org.lwjgl.opengl.GL11.glDrawArrays(III)V
J  com.threed.jpct.CompiledInstance.render(ILcom/threed/jpct/GLBase;Ljava/nio/FloatBuffer;[FZLcom/threed/jpct/Camera;[[FZ[Ljava/lang/Object;)V
J  com.threed.jpct.GLRenderer.drawVertexArray(Lcom/threed/jpct/VisList;IILcom/threed/jpct/FrameBuffer;Lcom/threed/jpct/World;)V
j  com.threed.jpct.World.draw(Lcom/threed/jpct/FrameBuffer;ZIII)V+438
j  com.threed.jpct.World.draw(Lcom/threed/jpct/FrameBuffer;ZI)V+12
j  com.threed.jpct.World.draw(Lcom/threed/jpct/FrameBuffer;)V+4
j  main.GraphicController.gameLoop()V+110
j  main.GraphicController.start()V+1
j  main.Start.start()V+25
j  main.Start.actionPerformed(Ljava/awt/event/ActionEvent;)V+18
j  javax.swing.AbstractButton.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+84
j  javax.swing.AbstractButton$Handler.actionPerformed(Ljava/awt/event/ActionEvent;)V+5
j  javax.swing.DefaultButtonModel.fireActionPerformed(Ljava/awt/event/ActionEvent;)V+35
j  javax.swing.DefaultButtonModel.setPressed(Z)V+117
j  javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Ljava/awt/event/MouseEvent;)V+35
j  java.awt.Component.processMouseEvent(Ljava/awt/event/MouseEvent;)V+64
j  javax.swing.JComponent.processMouseEvent(Ljava/awt/event/MouseEvent;)V+23
j  java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+81
j  java.awt.Container.processEvent(Ljava/awt/AWTEvent;)V+18
j  java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+581
j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+42
j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j  java.awt.LightweightDispatcher.retargetMouseEvent(Ljava/awt/Component;ILjava/awt/event/MouseEvent;)V+327
j  java.awt.LightweightDispatcher.processMouseEvent(Ljava/awt/event/MouseEvent;)Z+139
j  java.awt.LightweightDispatcher.dispatchEvent(Ljava/awt/AWTEvent;)Z+50
j  java.awt.Container.dispatchEventImpl(Ljava/awt/AWTEvent;)V+12
j  java.awt.Window.dispatchEventImpl(Ljava/awt/AWTEvent;)V+19
j  java.awt.Component.dispatchEvent(Ljava/awt/AWTEvent;)V+2
j  java.awt.EventQueue.dispatchEventImpl(Ljava/awt/AWTEvent;Ljava/lang/Object;)V+41
j  java.awt.EventQueue.access$000(Ljava/awt/EventQueue;Ljava/awt/AWTEvent;Ljava/lang/Object;)V+3
j  java.awt.EventQueue$3.run()Ljava/lang/Void;+12
j  java.awt.EventQueue$3.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.ProtectionDomain$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.security.ProtectionDomain$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+6
j  java.awt.EventQueue$4.run()Ljava/lang/Void;+11
j  java.awt.EventQueue$4.run()Ljava/lang/Object;+1
v  ~StubRoutines::call_stub
j  java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
j  java.security.ProtectionDomain$1.doIntersectionPrivilege(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;Ljava/security/AccessControlContext;)Ljava/lang/Object;+28
j  java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+73
j  java.awt.EventDispatchThread.pumpOneEventForFilters(I)Z+245
j  java.awt.EventDispatchThread.pumpEventsForFilter(ILjava/awt/Conditional;Ljava/awt/EventFilter;)V+35
j  java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+11
j  java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j  java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j  java.awt.EventDispatchThread.run()V+9
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x04908800 JavaThread "TimerQueue" daemon [_thread_blocked, id=4560, stack(0x05760000,0x057b0000)]
  0x00199800 JavaThread "DestroyJavaVM" [_thread_blocked, id=4152, stack(0x02140000,0x02190000)]
=>0x048a7c00 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=4376, stack(0x05400000,0x05450000)]
  0x04878800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3116, stack(0x04c90000,0x04ce0000)]
  0x04878000 JavaThread "AWT-Shutdown" [_thread_blocked, id=4980, stack(0x04780000,0x047d0000)]
  0x04871800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=4288, stack(0x04b70000,0x04bc0000)]
  0x0225c000 JavaThread "Service Thread" daemon [_thread_blocked, id=1312, stack(0x046b0000,0x04700000)]
  0x02257000 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=4516, stack(0x04700000,0x04750000)]
  0x02255c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=1684, stack(0x04630000,0x04680000)]
  0x02252800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4740, stack(0x04470000,0x044c0000)]
  0x02247c00 JavaThread "Finalizer" daemon [_thread_blocked, id=1664, stack(0x04590000,0x045e0000)]
  0x02246000 JavaThread "Reference Handler" daemon [_thread_blocked, id=4276, stack(0x042c0000,0x04310000)]

Other Threads:
  0x02243800 VMThread [stack: 0x04350000,0x043a0000] [id=2252]
  0x0226e800 WatcherThread [stack: 0x045e0000,0x04630000] [id=4016]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 78656K, used 59119K [0x243e0000, 0x29930000, 0x29930000)
  eden space 69952K,  82% used [0x243e0000, 0x27c61f70, 0x28830000)
  from space 8704K,  14% used [0x290b0000, 0x291e9f40, 0x29930000)
  to   space 8704K,   0% used [0x28830000, 0x28830000, 0x290b0000)
 tenured generation   total 174784K, used 139904K [0x29930000, 0x343e0000, 0x343e0000)
   the space 174784K,  80% used [0x29930000, 0x321d01b0, 0x321d0200, 0x343e0000)
 compacting perm gen  total 12288K, used 2718K [0x343e0000, 0x34fe0000, 0x383e0000)
   the space 12288K,  22% used [0x343e0000, 0x346879f0, 0x34687a00, 0x34fe0000)
    ro space 10240K,  42% used [0x383e0000, 0x3881c7b0, 0x3881c800, 0x38de0000)
    rw space 12288K,  53% used [0x38de0000, 0x39458210, 0x39458400, 0x399e0000)

Code Cache  [0x02290000, 0x02620000, 0x04290000)
 total_blobs=992 nmethods=669 adapters=256 free_code_cache=29121Kb largest_free_block=29820032

Dynamic libraries:
0x00040000 - 0x0006f000 C:\Program Files (x86)\Java\jre7\bin\javaw.exe
0x77190000 - 0x77310000 C:\Windows\SysWOW64\ntdll.dll
0x74e20000 - 0x74f20000 C:\Windows\syswow64\kernel32.dll
0x75240000 - 0x75286000 C:\Windows\syswow64\KERNELBASE.dll
0x768a0000 - 0x76940000 C:\Windows\syswow64\ADVAPI32.dll
0x766b0000 - 0x7675c000 C:\Windows\syswow64\msvcrt.dll
0x750d0000 - 0x750e9000 C:\Windows\SysWOW64\sechost.dll
0x76a40000 - 0x76b30000 C:\Windows\syswow64\RPCRT4.dll
0x74d00000 - 0x74d60000 C:\Windows\syswow64\SspiCli.dll
0x74cf0000 - 0x74cfc000 C:\Windows\syswow64\CRYPTBASE.dll
0x76940000 - 0x76a40000 C:\Windows\syswow64\USER32.dll
0x76760000 - 0x767f0000 C:\Windows\syswow64\GDI32.dll
0x75290000 - 0x7529a000 C:\Windows\syswow64\LPK.dll
0x76270000 - 0x7630d000 C:\Windows\syswow64\USP10.dll
0x72350000 - 0x724ee000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_421189da2b7fabfc\COMCTL32.dll
0x752a0000 - 0x752f7000 C:\Windows\syswow64\SHLWAPI.dll
0x75130000 - 0x75190000 C:\Windows\system32\IMM32.DLL
0x76cc0000 - 0x76d8c000 C:\Windows\syswow64\MSCTF.dll
0x74b80000 - 0x74bb6000 C:\Windows\SysWOW64\nvinit.dll
0x0f000000 - 0x0f006000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\_etoured.dll
0x747a0000 - 0x747dd000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvd3d9wrap.dll
0x76510000 - 0x766ad000 C:\Windows\syswow64\SETUPAPI.dll
0x76c90000 - 0x76cb7000 C:\Windows\syswow64\CFGMGR32.dll
0x74d90000 - 0x74e1f000 C:\Windows\syswow64\OLEAUT32.dll
0x76b30000 - 0x76c8c000 C:\Windows\syswow64\ole32.dll
0x75190000 - 0x751a2000 C:\Windows\syswow64\DEVOBJ.dll
0x74760000 - 0x7479b000 C:\Program Files (x86)\NVIDIA Corporation\CoProcManager\nvdxgiwrap.dll
0x65be0000 - 0x65c9e000 C:\Program Files (x86)\Java\jre7\bin\msvcr100.dll
0x669d0000 - 0x66cf1000 C:\Program Files (x86)\Java\jre7\bin\client\jvm.dll
0x71e90000 - 0x71e97000 C:\Windows\system32\WSOCK32.dll
0x750f0000 - 0x75125000 C:\Windows\syswow64\WS2_32.dll
0x75510000 - 0x75516000 C:\Windows\syswow64\NSI.dll
0x71e50000 - 0x71e82000 C:\Windows\system32\WINMM.dll
0x74fa0000 - 0x74fa5000 C:\Windows\syswow64\PSAPI.DLL
0x6da30000 - 0x6da3c000 C:\Program Files (x86)\Java\jre7\bin\verify.dll
0x6d440000 - 0x6d460000 C:\Program Files (x86)\Java\jre7\bin\java.dll
0x6d420000 - 0x6d433000 C:\Program Files (x86)\Java\jre7\bin\zip.dll
0x66ee0000 - 0x67022000 C:\Program Files (x86)\Java\jre7\bin\awt.dll
0x738f0000 - 0x73903000 C:\Windows\system32\DWMAPI.DLL
0x746e0000 - 0x74760000 C:\Windows\system32\uxtheme.dll
0x75520000 - 0x76169000 C:\Windows\syswow64\SHELL32.dll
0x6d230000 - 0x6d25a000 C:\Program Files (x86)\Java\jre7\bin\fontmanager.dll
0x6d400000 - 0x6d414000 C:\Program Files (x86)\Java\jre7\bin\net.dll
0x6c5e0000 - 0x6c61c000 C:\Windows\system32\mswsock.dll
0x71ea0000 - 0x71ea6000 C:\Windows\System32\wship6.dll
0x6d3c0000 - 0x6d3cf000 C:\Program Files (x86)\Java\jre7\bin\nio.dll
0x6cb30000 - 0x6cb61000 C:\Program Files (x86)\Java\jre7\bin\t2k.dll
0x6d370000 - 0x6d395000 C:\Program Files (x86)\Java\jre7\bin\jpeg.dll
0x10000000 - 0x10073000 E:\workspace\RPGExample\lwjgl.dll
0x6ca60000 - 0x6cb28000 C:\Windows\system32\OPENGL32.dll
0x6d1d0000 - 0x6d1f2000 C:\Windows\system32\GLU32.dll
0x6a830000 - 0x6a917000 C:\Windows\system32\DDRAW.dll
0x6d1c0000 - 0x6d1c6000 C:\Windows\system32\DCIMAN32.dll
0x74c20000 - 0x74c29000 C:\Windows\system32\VERSION.dll
0x74d60000 - 0x74d8d000 C:\Windows\syswow64\WINTRUST.dll
0x74fb0000 - 0x750cc000 C:\Windows\syswow64\CRYPT32.dll
0x75390000 - 0x7539c000 C:\Windows\syswow64\MSASN1.dll
0x5feb0000 - 0x610d5000 C:\Windows\system32\nvoglv32.DLL
0x63560000 - 0x635d9000 C:\Windows\system32\mscms.dll
0x71f30000 - 0x71f47000 C:\Windows\system32\USERENV.dll
0x73640000 - 0x7364b000 C:\Windows\system32\profapi.dll
0x6dab0000 - 0x6dae8000 C:\Windows\system32\icm32.dll
0x08b40000 - 0x08f87000 C:\Windows\system32\igd10umd32.dll
0x645c0000 - 0x646ab000 C:\Windows\system32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: main.Start
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;ommonProgramFiles\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;D:\Program Files\eclipse;
USERNAME=Marlon
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel



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

OS: Windows 7 , 64 bit Build 7600

CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 37 stepping 5, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, ht

Memory: 4k page, physical 3986864k(1663228k free), swap 7971832k(5051744k free)

vm_info: Java HotSpot(TM) Client VM (21.1-b02) for windows-x86 JRE (1.7.0_01-b08), built on Oct  3 2011 02:11:36 by "java_re" with unknown MS VC++:1600

time: Fri Nov 25 01:00:55 2011
elapsed time: 10 seconds

What does that mean? Is this a typical 64 Bit problem?
This seems to be the key line: org.lwjgl.opengl.GL11.nglDrawArrays(IIIJ)V
www.forgottenelements.com
Free Action JAVA MMORPG

Online EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: 3D RPG example application
« Reply #4 on: November 25, 2011, 08:00:19 am »
Which version of jPCT is that?

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
Re: 3D RPG example application
« Reply #5 on: November 25, 2011, 12:31:01 pm »
http://www.jpct.net/download.html
I just installed the latest JDK and the latest version of JPCT (upper link, click on JPCT) on my new computer.
I put the windows native lwjgl.dll into the project folder.
www.forgottenelements.com
Free Action JAVA MMORPG

Offline Bryan

  • byte
  • *
  • Posts: 26
    • View Profile
Re: 3D RPG example application
« Reply #6 on: December 16, 2011, 06:49:17 pm »
That looks really good.

One thing I did notice is the NPCs act a little stiff if you know what I mean. Other than I think the style fits and I like the viewing angle.

Keep it up

Offline Disastorm

  • long
  • ***
  • Posts: 161
    • View Profile
Re: 3D RPG example application
« Reply #7 on: February 07, 2012, 07:46:18 pm »
Wow this is one of the best demos ive seen imo.  How did he get the shadows like that did he actually use shaders or did he use some tricks?

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
Re: 3D RPG example application
« Reply #8 on: February 07, 2012, 08:15:25 pm »
Wow this is one of the best demos ive seen imo.  How did he get the shadows like that did he actually use shaders or did he use some tricks?

Thanks for your words! I just used the shader technique from the JPCT Advanced Example.
www.forgottenelements.com
Free Action JAVA MMORPG

Offline Disastorm

  • long
  • ***
  • Posts: 161
    • View Profile
Re: 3D RPG example application
« Reply #9 on: February 08, 2012, 04:34:05 am »
did you use GLSL shader one?

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
Re: 3D RPG example application
« Reply #10 on: February 08, 2012, 12:51:01 pm »
did you use GLSL shader one?

Please take a look at this JPCT Example:
http://www.jpct.net/wiki/index.php/Advanced_example
I used it to create a basic version and to learn the first steps of JPCT.

Here is the shader:

Code: [Select]
private ShadowHelper sh = null;

Code: [Select]
sh = new ShadowHelper(world, buffer, projector, 2048);
sh.setCullingMode(false);
sh.setAmbientLight(new Color(30, 30, 30));
sh.setLightMode(true);
sh.setBorder(1);

But I did not use GLSLShaders.
www.forgottenelements.com
Free Action JAVA MMORPG

Offline Marlon

  • int
  • **
  • Posts: 74
    • View Profile
    • Forgotten Elements Action MMORPG
Re: 3D RPG example application
« Reply #11 on: February 19, 2012, 01:47:13 pm »
I just used this Testing environment for my Roleplaying Game Forgotten Elements.
Check it out if you are interested:
http://www.forgottenelements.com/selectmode
http://www.jpct.net/forum2/index.php/topic,2579.0.html
www.forgottenelements.com
Free Action JAVA MMORPG

Offline Disastorm

  • long
  • ***
  • Posts: 161
    • View Profile
Re: 3D RPG example application
« Reply #12 on: March 05, 2012, 11:45:01 am »
Wow its amazing.  Thats great you made your own mmorpg with some players. I've always wanted to do something like that.
« Last Edit: March 05, 2012, 11:49:28 am by Disastorm »