I’m trying to get my feet wet with jME and want to put up a simple splash screen. Is it better for me to use the Widget framework or just draw a quad with a texture on it? I would like to fade it in and out so thought a textured quad would be the way to go.
Assuming I go with a textured quad how do I go about drawing one in screen space with jME?
Thanks
You can do so via setting the render queue mode to ORTHO. Alternatively, you can use the UIBillboard object instead which does most of the work for you.
Hrmmm setting the render queue will leave the quad in world space though correct? I was kinda hoping to define the quad in screen space so that verts locations would map directly to pixels.
I checked out UIBillboard and it just looks like it using the render queue anyway. The following comment in the codes makes me think the problem is that the quad is still in world space whilst the XY passed in is assumed to be in screen space.
/*
* doesn't seem to work right. It ends up being in the wrong place.
*/
setRenderQueueMode(Renderer.QUEUE_ORTHO);
The orthogonal mode sets 0,0 as the centre of the screen not the bottom left as you would expect. Is that the problem?
DP
://
Sorry having a brain fart…Just went in and had a look at the OpenGL code being executed in LWJGLRenderer. I should be fine.
No, that's not true, it's the bottom left as of last week. And it is screen space, just the z argument should be set as 0.
Don’t forget the UIBillboard. This works well as a splash screen.
No, that's not true, it's the bottom left as of last week
://, need to update then!
DP