I am trying to port the roomTiny example from the Oculus SDK to Jogl

I already ported most of the program, but I am stuck on an annoying bug since a couple of days and I am going crazy

After a couple of days, I tried to make a new simplified copy in order to find the bug, but I experience exactly the same..

I ask if someone out there would like to help me

I can render properly only the floor or the ceiling, not both


Only floor

Click image for larger version. 

Name:	30.jpg 
Views:	109 
Size:	15.7 KB 
ID:	1385

Only Ceiling

Click image for larger version. 

Name:	31.jpg 
Views:	106 
Size:	9.1 KB 
ID:	1386


Click image for larger version. 

Name:	32.jpg 
Views:	105 
Size:	16.5 KB 
ID:	1387

The program is pretty simple, there is (at the moment) only one glsl program for litTextures

You add Model and in the rendering loop you update lights (in an ubo) and loop the models themselves rendering them

In the same model rendering, I initialize everything about, vbo, ibo and texture

The vbo data are 100% exact, I scanned each vertex attribute one by one..