[SOLVED]Applet design Question

So, I am working on a new project(trying to keep busy).

I want to have text either appear on the screen as a HUD, but I don’t really like that or I was thinking maybe I could do either of these two:

  1. Find a way to pass the information to an external “text box” to the right of my GLCanvas(viewport), but I’m not exactly sure how to do that. I do know how to use Swing but I’m not sure exactly how to do it for applets, especially with a GLCanvas already on it.

or

  1. Is it possible to pass information from an applet to say, PHP or HTML or JavaScript actively on a page? I wouldn’t see how, or if it’d be worth it. I just figured I’d ask.

Just like exploring my options, and learning new things. The main reason why I don’t want to do a HUD is just for FPS sake, and I want this to be a clean looking applet, not some Graphics class stretched around text HUD on-top of my already dodgey 3-D world.

using opengl you should not have a lot of trouble with FPS for a simple HUD , no ? just disable zbuffer and draw it.

[quote]1. Find a way to pass the information to an external “text box” to the right of my GLCanvas(viewport), but I’m not exactly sure how to do that. I do know how to use Swing but I’m not sure exactly how to do it for applets, especially with a GLCanvas already on it.
[/quote]
and I am not really sure I undertand what you’re trying to do :slight_smile:

[quote]2. Is it possible to pass information from an applet to say, PHP or HTML or JavaScript actively on a page? I wouldn’t see how, or if it’d be worth it. I just figured I’d ask.
[/quote]
look at liveconnect : JSObject or this.showDocument(“javascript:alert(’’)”)

For number one I mean this.


(sorry I had a little too much fun drawing that picture lol)
Have a GLCanvas and GUI (panel?). Do all GUI’s work for all systems if they have the proper JDK? I had a friend who on Mac OS 10(I think) couldn’t run a reallllly simple applet I made that literally just had a button and a text box. But on all windows versions it worked fine.

The second one seems complicated, haha.

I’m just trying to save on not really FPS but CPU and visual memory, I want this to be a fast load, a smooth run, and an overall nice presentation.

good draw but you wont make a carrer in design :wink:

so hum… I can just say that “yes you can” :slight_smile:

you just have to size your GLCanvas and your gui component to half of the with , no ?

Hmmmmm, lemme look to see how I implemented the canvas then hopefully I’ll get back to you with some proper news haha.

Oh dang you just broke my heart, coulda swore I just drew the next van gogh :).

Got it woo hoo! Thanks