Hello,
I wonder if there exist the adaptation for JME 2.0 of the famous hud tutorial (http://www.jmonkeyengine.com/wiki/doku.php?id=understanding_the_basics_of_hud_creation) :?
I guess, transparency of my texture is not very easy (although I've checked the TestTextureState testcase).
Thanks in advance!
Regards,
Niggle
I don't think anyone has gotten to that yet. Please feel free, you know.
Okay, although I was asking for some help, I'll give it a try.
So far, we need to use some kind of BlendState in jme 2.0 to render transparency
Thats right. As you encounter things you need help with, post it here and we'll help ya out.
:D YES!
I finally "migrated" the HUD tutorials 1 and 2 to be used for JME 2.X. Although it seems to work properly (achieve what it try to teach), I guess I would need help to write the wiki pages.
At least following are the two tutorials:
- HUDTutorial1JME2X:
import com.jme.app.SimpleGame;
import com.jme.bounding.BoundingBox;
import com.jme.math.Quaternion;
import com.jme.math.Vector3f;
import com.jme.renderer.ColorRGBA;
import com.jme.renderer.Renderer;
import com.jme.scene.Node;
import com.jme.scene.Spatial;
import com.jme.scene.shape.Cylinder;
import com.jme.scene.shape.Quad;
import com.jme.scene.state.MaterialState;
/**
* <a href="http://en.wikipedia.org/wiki/Head-up_display">HUD</a> Tutorial 1 for JME 2.X.
* <p/>
* Adapted from the <a href="http://www.jmonkeyengine.com/wiki/doku.php?id=understanding_the_basics_of_hud_creation">original tutorial for JME 1.X</a>.
*
* @author <a href="mailto:loic.lefevre@gmail.com">Lo
Great work Niggle! I don't know what the plans are for the wiki, as far as keeping jME 1 and jME 2 stuff separated. Maybe a dev here can shed some light.