Bug: t2dShape3D not doing depth tests
by Dave Young · in iTorque 2D · 02/18/2009 (2:04 pm) · 7 replies
The t2dShape3D control is not doing depth tests, so models don't render correctly. Looking around, I noticed that USE_DEPTH_BUFFER is set to 0 in iPhoneOGLVideo.mm. Most depth problems people have get solved by setting that to 1, but setting it to 1 in iTGB just causes nothing to render... everything renders white.
The correct functionality of this little control is pretty crucial, can we get a fix ASAP please?
The correct functionality of this little control is pretty crucial, can we get a fix ASAP please?
#2
It's actually crashing, in swapBuffers, on this line (366 or so): as soon as the TGB splash screen finished rendering.
02/19/2009 (6:58 am)
More info:It's actually crashing, in swapBuffers, on this line (366 or so): as soon as the TGB splash screen finished rendering.
-(void)swapBuffers {
if( isLayedOut == true ) {
//-Mat moved to layoutSubviews
//[EAGLContext setCurrentContext:context];
//glBindFramebufferOES(GL_FRAMEBUFFER_OES, viewFramebuffer);
//glBindRenderbufferOES(GL_RENDERBUFFER_OES, viewRenderbuffer);
//CRASHING HERE
[context presentRenderbuffer:GL_RENDERBUFFER_OES];
//<Mat> added ClearColor to swapBuffers to see what parts of the screen are not being drawn to
//glClearColor(0.0f, 0.2f, 0.35f, 1.0f);
//glClear(GL_COLOR_BUFFER_BIT);
//}
}
#3
02/19/2009 (7:18 am)
The crash is a EXC_BAD_EXCESS by the way.
#4
02/21/2009 (4:54 pm)
Bump, too important to be forgotten. Bueller!
#5
All others use 3D engines and add the required 2D stuff
And given that 3D shapes already had probs on TGB, I actually didn't expect them to work on iTGB at all. For performance optimization they better would have been cut altogether.
02/21/2009 (5:31 pm)
I fear you are the only one using a 2D technology with the target to use 3D stuff.All others use 3D engines and add the required 2D stuff
And given that 3D shapes already had probs on TGB, I actually didn't expect them to work on iTGB at all. For performance optimization they better would have been cut altogether.
#6
GG: is there any way how to fix it?
08/13/2009 (5:48 am)
Dave: did you find any solution how to proper render t2dShape3D?GG: is there any way how to fix it?
#7
08/18/2009 (3:39 am)
GG: is there any way how to fix it?
Torque 3D Owner Dave Young
Dave Young Games
Mainly, from the guys who did the porting perhaps.
GG, I am totally begging for some input on this one.