Rendering 3d Model in ortho_queue?

First, can you do this?  Second, how does it decide how the model is facing?



this doesn't seem to display anything, but is there a way to set the 2d coordinates for ortho?


        if (this.gsMain.getResourceManager().isDisc("4321")) {
            Node disc = this.gsMain.getResourceManager().getDisc("4321").getModel();
            disc.setRenderQueueMode(Renderer.QUEUE_ORTHO);
            disc.updateRenderState();
            disc.getLocalTranslation().set(100f,100f,1f);

            nodeGameScene.attachChild(disc);
        }



any help is appreciated

hey there,



take a look at TestImposterNode. Basically it is rendering a Model to a 2d texture which is applied to a Quad (in the class ImposterNode), which you can render ORTHO. Like that you may even animate, … your model.

hi… I am a bit confussed about QUEUE_ORTHO…

does it mean that ORTHO queue is intended only to render things like lines and quads? and that, for 3D models, you need special stuff like the ImposterNode? thanks for your acclaration

Ortho mode is not suited for rendering 3D objects. The reason is that there's no depth conversion in the projection matrix given there, so the Z coordinates of all objects are matched into -1, 1 range. If you want to display 3D objects inside a GUI, you can use TextureRenderer to render your object to a texture, then put the texture in your GUI.