Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Vbos not working in 2d setup?  (Read 295 times)
0 Members and 1 Guest are viewing this topic.
Offline lcass
« Posted 2014-01-26 21:41:41 »

I am having an issue when I try to use a VBO to draw on a 2d setup.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
public void render() {
      // Clean both color and depth buffers
      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
      glEnableClientState(GL_VERTEX_ARRAY);
      glEnableClientState(GL_COLOR_ARRAY);
      glBindBuffer(GL_ARRAY_BUFFER,vid);
      glVertexPointer(2, GL_FLOAT, 0, 0);
      glBindBuffer(GL_ARRAY_BUFFER, cid);
       glColorPointer(2, GL_FLOAT, 0, 0);
      glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);

      // Translate back
      glDisableClientState(GL_COLOR_ARRAY);
      glDisableClientState(GL_VERTEX_ARRAY);
     

   

   }



   public void setverticies(int x, int y, float width, float height){
      this.x = x;
      this.y = y;
     
      this.width = width;
      this.height = height;
      vbuff = BufferUtils.createFloatBuffer(2 * 4);
      vbuff.put(new float[] {
            0f,0f,
            width,0f,
            width,height,
            0f,height
           
      });
      cbuff = BufferUtils.createFloatBuffer(2 * 4);
      cbuff.put(new float[]{
            1,1,
            1,1,
            1,1,
            1,1
      });
      vbuff.rewind();
      cbuff.rewind();
      vid = glGenBuffers();
      glBindBuffer(GL_ARRAY_BUFFER, vid);
      glBufferData(GL_ARRAY_BUFFER, vbuff, GL_STATIC_DRAW);
      glBindBuffer(GL_ARRAY_BUFFER, 0);
      cid= glGenBuffers();
        glBindBuffer(GL_ARRAY_BUFFER, cid);
        glBufferData(GL_ARRAY_BUFFER, cbuff, GL_STATIC_DRAW);
        glBindBuffer(GL_ARRAY_BUFFER, 0);
      glTranslatef(x,y,0);

   }


Camera initialisation

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
public Camera(int x, int y, int width, int height, Core core) {
      this.x = x;
      this.y = y;
      this.width = width;
      this.height = height;
      this.core = core;

   }

   public void init() {
      glMatrixMode(GL_PROJECTION);
      glLoadIdentity();

      glMatrixMode(GL_MODELVIEW);

      glViewport(0, 0, Display.getWidth(), Display.getHeight());

      glOrtho(0, width, height, 0, 1, -1);
   }


Crash error I get when I try to run this.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
135  
136  
137  
138  
139  
140  
141  
142  
143  
144  
145  
146  
147  
148  
149  
150  
151  
152  
153  
154  
155  
156  
157  
158  
159  
160  
161  
162  
163  
164  
165  
166  
167  
168  
169  
170  
171  
172  
173  
174  
175  
176  
177  
178  
179  
180  
181  
182  
183  
184  
185  
186  
187  
188  
189  
190  
191  
192  
193  
194  
195  
196  
197  
198  
199  
200  
201  
202  
203  
204  
205  
206  
207  
208  
209  
210  
211  
212  
213  
214  
215  
216  
217  
218  
219  
220  
221  
222  
223  
224  
225  
226  
227  
228  
229  
230  
231  
232  
233  
234  
235  
236  
237  
238  
239  
240  
241  
242  
243  
244  
245  
246  
247  
248  
249  
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006773d450, pid=22756, tid=30604
#
# JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [nvoglv64.DLL+0x98d450]
#
# 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 (0x000000000124e800):  JavaThread "main" [_thread_in_native, id=30604, stack(0x0000000002bc0000,0x0000000002cc0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000000

Registers:
RAX=0x0000000000000006, RBX=0x000000000fa3346c, RCX=0x0000000000000000, RDX=0x000000000f3577a0
RSP=0x0000000002cbf008, RBP=0x0000000000000003, RSI=0x000000000f3576f0, RDI=0x0000000000000000
R8 =0xfffffffff05ccb94, R9 =0x000000000fa3346c, R10=0x0000000066db0000, R11=0x0000000002cbf060
R12=0x0000000000000000, R13=0x0000000000000005, R14=0x0000000000000000, R15=0x000000000124e800
RIP=0x000000006773d450, EFLAGS=0x0000000000010293

Top of Stack: (sp=0x0000000002cbf008)
0x0000000002cbf008:   000000006773cebf 00000148897a066f
0x0000000002cbf018:   0000000068c8c63f 000000000d704d11
0x0000000002cbf028:   00000000000000a6 0000000000000000
0x0000000002cbf038:   000000006773c2ec 000000000f357080
0x0000000002cbf048:   0000000000000003 0000000000000010
0x0000000002cbf058:   0000000000000000 0000000000000003
0x0000000002cbf068:   0000000200000000 0000000000000000
0x0000000002cbf078:   0000000000000008 0000000000000000
0x0000000002cbf088:   0000000000000000 0000000000000000
0x0000000002cbf098:   0000000100000000 0000000400000002
0x0000000002cbf0a8:   0000001000000008 0000004000000020
0x0000000002cbf0b8:   0000010000000080 0000040000000200
0x0000000002cbf0c8:   0000100000000800 0000400000002000
0x0000000002cbf0d8:   0000000000008000 0000000000000000
0x0000000002cbf0e8:   0000140600000002 0000000000000010
0x0000000002cbf0f8:   0000000000000000 0000140600000003

Instructions: (pc=0x000000006773d450)
0x000000006773d430:   43 0f b6 04 01 ff c1 4d 8d 49 01 41 88 41 ff 3b
0x000000006773d440:   4a 08 7c ec c3 33 c9 39 4a 08 7e 67 4d 2b c1 90
0x000000006773d450:   43 8b 04 01 ff c1 4d 8d 49 04 41 89 41 fc 3b 4a
0x000000006773d460:   08 7c ed c3 3d 0e 14 00 00 72 48 3d 0f 14 00 00


Register to memory mapping:

RAX=0x0000000000000006 is an unknown value
RBX=0x000000000fa3346c is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x000000000f3577a0 is an unknown value
RSP=0x0000000002cbf008 is pointing into the stack for thread: 0x000000000124e800
RBP=0x0000000000000003 is an unknown value
RSI=0x000000000f3576f0 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0xfffffffff05ccb94 is an unknown value
R9 =0x000000000fa3346c is an unknown value
R10=0x0000000066db0000 is an unknown value
R11=0x0000000002cbf060 is pointing into the stack for thread: 0x000000000124e800
R12=0x0000000000000000 is an unknown value
R13=0x0000000000000005 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x000000000124e800 is a thread


Stack: [0x0000000002bc0000,0x0000000002cc0000],  sp=0x0000000002cbf008,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [nvoglv64.DLL+0x98d450]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL11.nglDrawArrays(IIIJ)V+0
j  org.lwjgl.opengl.GL11.glDrawArrays(III)V+20
j  com.lcass.graphics.objects.untexturedpanel.render()V+55
j  Demo.demorunner.render()V+13
j  com.lcass.core.Runner.start(I)V+71
j  Demo.demorunner.main([Ljava/lang/String;)V+21
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x000000000d751800 JavaThread "LWJGL Timer" daemon [_thread_blocked, id=19068, stack(0x0000000011d30000,0x0000000011e30000)]
  0x0000000002ebc000 JavaThread "Service Thread" daemon [_thread_blocked, id=32256, stack(0x000000000dd60000,0x000000000de60000)]
  0x0000000002eb9000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=15324, stack(0x000000000dc60000,0x000000000dd60000)]
  0x0000000002ead000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=13776, stack(0x000000000db60000,0x000000000dc60000)]
  0x000000000b59d800 JavaThread "Attach Listener" daemon [_thread_blocked, id=16188, stack(0x000000000da60000,0x000000000db60000)]
  0x000000000d580800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9756, stack(0x000000000d960000,0x000000000da60000)]
  0x000000000b58d800 JavaThread "Finalizer" daemon [_thread_blocked, id=24824, stack(0x000000000d460000,0x000000000d560000)]
  0x000000000b587000 JavaThread "Reference Handler" daemon [_thread_blocked, id=31364, stack(0x000000000d360000,0x000000000d460000)]
=>0x000000000124e800 JavaThread "main" [_thread_in_native, id=30604, stack(0x0000000002bc0000,0x0000000002cc0000)]

Other Threads:
  0x000000000b584800 VMThread [stack: 0x000000000d260000,0x000000000d360000] [id=17228]
  0x000000000d59a000 WatcherThread [stack: 0x000000000de60000,0x000000000df60000] [id=25512]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 PSYoungGen      total 38400K, used 4214K [0x00000007d5c00000, 0x00000007d8680000, 0x0000000800000000)
  eden space 33280K, 12% used [0x00000007d5c00000,0x00000007d601d8b8,0x00000007d7c80000)
  from space 5120K, 0% used [0x00000007d8180000,0x00000007d8180000,0x00000007d8680000)
  to   space 5120K, 0% used [0x00000007d7c80000,0x00000007d7c80000,0x00000007d8180000)
 ParOldGen       total 86528K, used 0K [0x0000000781400000, 0x0000000786880000, 0x00000007d5c00000)
  object space 86528K, 0% used [0x0000000781400000,0x0000000781400000,0x0000000786880000)
 PSPermGen       total 21504K, used 4105K [0x000000077c200000, 0x000000077d700000, 0x0000000781400000)
  object space 21504K, 19% used [0x000000077c200000,0x000000077c6025a0,0x000000077d700000)

Card table byte_map: [0x0000000005ec0000,0x00000000062e0000] byte_map_base: 0x00000000022df000

Polling page: 0x0000000001220000

Code Cache  [0x0000000002ec0000, 0x0000000003130000, 0x0000000005ec0000)
 total_blobs=309 nmethods=18 adapters=244 free_code_cache=48694Kb largest_free_block=49848576

Compilation events (10 events):
Event: 0.399 Thread 0x0000000002ead000 nmethod 14 0x0000000002f32590 code [0x0000000002f326c0, 0x0000000002f32758]
Event: 0.399 Thread 0x0000000002ead000   15             java.nio.Buffer::nextGetIndex (31 bytes)
Event: 0.400 Thread 0x0000000002ead000 nmethod 15 0x0000000002f32810 code [0x0000000002f32940, 0x0000000002f329b8]
Event: 0.400 Thread 0x0000000002ead000   16             java.nio.StringCharBuffer::get (19 bytes)
Event: 0.401 Thread 0x0000000002ead000 nmethod 16 0x0000000002f30110 code [0x0000000002f30260, 0x0000000002f303b8]
Event: 0.401 Thread 0x0000000002ead000   17             org.lwjgl.MemoryUtil$CharSequenceNT::charAt (28 bytes)
Event: 0.401 Thread 0x0000000002ead000 nmethod 17 0x0000000002f2fd90 code [0x0000000002f2fee0, 0x0000000002f2ffd8]
Event: 0.403 Thread 0x0000000002eb9000 nmethod 12 0x0000000002f2f150 code [0x0000000002f2f300, 0x0000000002f2f840]
Event: 0.411 Thread 0x0000000002ead000   18             java.lang.String::equals (81 bytes)
Event: 0.414 Thread 0x0000000002ead000 nmethod 18 0x0000000002f34050 code [0x0000000002f341a0, 0x0000000002f343f8]

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (10 events):
Event: 0.473 Thread 0x000000000124e800 Threw 0x00000007d5f603b8 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.499 Thread 0x000000000124e800 Threw 0x00000007d5f69610 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.500 Thread 0x000000000124e800 Threw 0x00000007d5f6bf60 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.501 Thread 0x000000000124e800 Threw 0x00000007d5f6df50 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.501 Thread 0x000000000124e800 Threw 0x00000007d5f6fdf8 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.501 Thread 0x000000000124e800 Threw 0x00000007d5f72218 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.513 Thread 0x000000000124e800 Threw 0x00000007d5f7d7e0 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.513 Thread 0x000000000124e800 Threw 0x00000007d5f80938 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.514 Thread 0x000000000124e800 Threw 0x00000007d5f836b8 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244
Event: 0.514 Thread 0x000000000124e800 Threw 0x00000007d5f85a70 at C:\re\jdk7u45\229\hotspot\src\share\vm\prims\jvm.cpp:1244

Events (10 events):
Event: 0.501 loading class 0x000000000d6bf660 done
Event: 0.513 loading class 0x000000000d5a7aa0
Event: 0.513 loading class 0x000000000d5a7aa0 done
Event: 0.513 loading class 0x000000000d7026b0
Event: 0.513 loading class 0x000000000d7026b0 done
Event: 0.514 loading class 0x000000000d6bf960
Event: 0.514 loading class 0x000000000d6bf960 done
Event: 0.514 Thread 0x000000000d751800 Thread added: 0x000000000d751800
Event: 0.514 loading class 0x000000000d724ea0
Event: 0.514 loading class 0x000000000d724ea0 done


Dynamic libraries:
0x000007f7b06e0000 - 0x000007f7b0713000    C:\Program Files\Java\jre7\bin\javaw.exe
0x000007f8d2c20000 - 0x000007f8d2de0000    C:\Windows\SYSTEM32\ntdll.dll
0x000007f8d2470000 - 0x000007f8d25a6000    C:\Windows\system32\KERNEL32.DLL
0x000007f8cfe60000 - 0x000007f8cff53000    C:\Windows\system32\KERNELBASE.dll
0x000007f8d22e0000 - 0x000007f8d23be000    C:\Windows\system32\ADVAPI32.dll
0x000007f8d2040000 - 0x000007f8d218c000    C:\Windows\system32\USER32.dll
0x000007f8cd8e0000 - 0x000007f8cdb4a000    C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16579_none_418ab7ef718b27ef\COMCTL32.dll
0x000007f8d25b0000 - 0x000007f8d2655000    C:\Windows\system32\msvcrt.dll
0x000007f8d21f0000 - 0x000007f8d2238000    C:\Windows\SYSTEM32\sechost.dll
0x000007f8d2670000 - 0x000007f8d27b5000    C:\Windows\system32\RPCRT4.dll
0x000007f8d2800000 - 0x000007f8d2941000    C:\Windows\system32\GDI32.dll
0x000007f8d27c0000 - 0x000007f8d27f9000    C:\Windows\system32\IMM32.DLL
0x000007f8d0010000 - 0x000007f8d0126000    C:\Windows\system32\MSCTF.dll
0x0000000069350000 - 0x0000000069422000    C:\Program Files\Java\jre7\bin\msvcr100.dll
0x0000000068b80000 - 0x0000000069349000    C:\Program Files\Java\jre7\bin\server\jvm.dll
0x000007f8cb110000 - 0x000007f8cb119000    C:\Windows\SYSTEM32\WSOCK32.dll
0x000007f8c7980000 - 0x000007f8c79a0000    C:\Windows\SYSTEM32\WINMM.dll
0x000007f8d2950000 - 0x000007f8d2957000    C:\Windows\system32\PSAPI.DLL
0x000007f8d2190000 - 0x000007f8d21e8000    C:\Windows\system32\WS2_32.dll
0x000007f8c77a0000 - 0x000007f8c77d3000    C:\Windows\SYSTEM32\WINMMBASE.dll
0x000007f8d1c40000 - 0x000007f8d1c49000    C:\Windows\system32\NSI.dll
0x000007f8cff60000 - 0x000007f8cffaf000    C:\Windows\SYSTEM32\cfgmgr32.dll
0x000007f8cfc50000 - 0x000007f8cfc72000    C:\Windows\system32\DEVOBJ.dll
0x0000000068b70000 - 0x0000000068b7f000    C:\Program Files\Java\jre7\bin\verify.dll
0x0000000068b40000 - 0x0000000068b68000    C:\Program Files\Java\jre7\bin\java.dll
0x0000000068b20000 - 0x0000000068b35000    C:\Program Files\Java\jre7\bin\zip.dll
0x0000000180000000 - 0x0000000180051000    C:\eclipse\api\native\windows\lwjgl64.dll
0x000007f8bdcb0000 - 0x000007f8bddcf000    C:\Windows\SYSTEM32\OPENGL32.dll
0x000007f8cc670000 - 0x000007f8cc679000    C:\Windows\SYSTEM32\VERSION.dll
0x000007f8beef0000 - 0x000007f8bef1c000    C:\Windows\SYSTEM32\GLU32.dll
0x000007f8bdbc0000 - 0x000007f8bdcaa000    C:\Windows\SYSTEM32\DDRAW.dll
0x000007f8ca600000 - 0x000007f8ca608000    C:\Windows\SYSTEM32\DCIMAN32.dll
0x000007f8ce8b0000 - 0x000007f8ce996000    C:\Windows\system32\uxtheme.dll
0x000007f8cdb80000 - 0x000007f8cdba1000    C:\Windows\SYSTEM32\dwmapi.dll
0x0000000066db0000 - 0x0000000068add000    C:\Windows\SYSTEM32\nvoglv64.DLL
0x000007f8d05f0000 - 0x000007f8d18d0000    C:\Windows\system32\SHELL32.dll
0x000007f8d1a70000 - 0x000007f8d1c40000    C:\Windows\system32\SETUPAPI.dll
0x000007f8d1c60000 - 0x000007f8d1e10000    C:\Windows\SYSTEM32\combase.dll
0x000007f8d0130000 - 0x000007f8d0180000    C:\Windows\system32\SHLWAPI.dll
0x000007f8cffb0000 - 0x000007f8d0005000    C:\Windows\system32\WINTRUST.dll
0x000007f8cfc80000 - 0x000007f8cfe51000    C:\Windows\system32\CRYPT32.dll
0x000007f8cfb80000 - 0x000007f8cfb96000    C:\Windows\system32\MSASN1.dll
0x000007f8cee10000 - 0x000007f8cee3e000    C:\Windows\SYSTEM32\ntmarta.dll
0x000007f8cfa70000 - 0x000007f8cfab3000    C:\Windows\SYSTEM32\powrprof.dll
0x000007f8d0410000 - 0x000007f8d058e000    C:\Windows\system32\ole32.dll
0x000007f8cf910000 - 0x000007f8cf91a000    C:\Windows\SYSTEM32\CRYPTBASE.dll
0x000007f8cf8b0000 - 0x000007f8cf90c000    C:\Windows\SYSTEM32\bcryptPrimitives.dll
0x000007f8ca260000 - 0x000007f8ca2f1000    C:\Windows\SYSTEM32\mscms.dll
0x000007f8cf100000 - 0x000007f8cf11f000    C:\Windows\SYSTEM32\USERENV.dll
0x000007f8cfad0000 - 0x000007f8cfae5000    C:\Windows\SYSTEM32\profapi.dll
0x000007f8bae00000 - 0x000007f8bae40000    C:\Windows\SYSTEM32\icm32.dll
0x000007f8cc060000 - 0x000007f8cc1c3000    C:\Windows\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -Djava.library.path=C:\eclipse\api\native\windows -Dfile.encoding=Cp1252
java_command: Demo.demorunner
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT
USERNAME=lucas
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel



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

OS: Windows 8 , 64 bit Build 9200

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 60 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, erms, ht, tsc, tscinvbit

Memory: 4k page, physical 8304132k(4360412k free), swap 16692740k(10731928k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (24.45-b08) for windows-amd64 JRE (1.7.0_45-b18), built on Oct  8 2013 05:47:22 by "java_re" with unknown MS VC++:1600

time: Sun Jan 26 21:45:01 2014
elapsed time: 0 seconds
Offline zFollette

Junior Devvie


Exp: 2 years


I like jokes


« Reply #1 - Posted 2014-01-26 21:48:52 »

One concern I have is that your are clearing GL_DEPTH_BUFFER_BIT in a 2D orthographic view, but it shouldn't cause that problem. Ill keep looking at it and post what I find.

Humor will keep you alive.
Offline Gef
« Reply #2 - Posted 2014-01-26 21:53:23 »

OpenGL documentation says that the first component of glColorPointer must be 3 or 4. Not sure that's the reason but that could help...

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zFollette

Junior Devvie


Exp: 2 years


I like jokes


« Reply #3 - Posted 2014-01-26 21:55:56 »

OpenGL documentation says that the first component of glColorPointer must be 3 or 4. Not sure that's the reason but that could help...

I didn't even catch that. Yes colors are made up of 3 (r, g, b) or 4 (r, g, b, alpha) floats. Your colors are made up of 2.

Humor will keep you alive.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (31 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!