2D Text Overlay Java 3D

Hey guys :slight_smile:

I need your help. in this semester i have to write a program containing image processing and computer graphics. I have 6 weeks to finish it. The problem is i am very new to java3d =(. Sorry my english is not really good so i will explain everything in detail.

I want to write a program where you are in a haunted house and have to fullfill different tasks ( house built in blender) . you cant move by yourself. all the camera movements are given. (I finished already all camera movements).

when you enter the house the camera movement stops and THEN i want something like a 2d textlabel to appear which says something like " im a ghost and you are trapped in this house . you have to fullfill 3 tasks and you are free ".

after this the camera moves into the first room and stopps again…

next textlabel like : " look in this room is a treasure chest, open it" …and so on…

so with the textlabels the ghost communicates with the user und give hints.

But how can i do that ??? with HUD ???

ps. We are not allowed to usw OpenGL or JMonkey ! =(

please help me =(

best wishes

david f.

A good pixel perfect hud is almost impossible to do in Java3D. You could use Text3D or Text2D for the text and show in front of the camera. So attach it the view transform group. Think you can get it from SimpleUniverse.

hey thank you very much for your quick answer =)!! but do you know how to break lines in text2d ?

best wishes

david