Game Development Community

Assimp Black Screen

by practicing01 · in Torque 2D Professional · 06/27/2014 (9:12 am) · 5 replies

I got an assimp example to compile/run but the screen is black. I was expecting the toys and a 3d object on screen. I don't know how the engine renders things, can anyone help please? It calls the rendering functions inside of DefaultGame::mainLoop. The example github.com/practicing01/Torque2D/blob/development/engine/source/Banana_Modificat...

#1
07/01/2014 (6:22 am)
Got past the black screen by disabling lighting. The 3d model that was loaded is still not visible.
#2
07/01/2014 (10:59 pm)
Do you have source access to TGB? You could look at the t2dShape3D class for some ideas on how it was implemented in the old engine. In any case, adding 3D model support back to T2D is a nontrivial endeavor - Assimp only handles importing a model format, getting the engine to display that model is going to take a lot of additional code (ripped from T3D or otherwise).
#3
07/01/2014 (11:59 pm)
Yes i have TGB's source and can see how it deals with 3d objects. I'd like to stay on the topic of this post though. I'm not experienced with opengl so I'd like help from someone to figure out why the simple opengl that the assimp example uses isn't working alongside what the engine is doing each frame.
#4
07/25/2014 (2:19 am)
Making some progress:
#5
07/25/2014 (6:59 am)
So far so good - looks like normals are inverted on the girl. Great progress!