Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (603)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (651)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Cortado in LWJGL  (Read 3199 times)
0 Members and 1 Guest are viewing this topic.
Offline Cero
« Posted 2011-09-28 13:38:12 »

Yeah not having LWJGL as an applet but rather adding some applet to it.

I have this ongoing quest of getting video playback to work properly; now Cortado is an applet that plays theora.
public class VideoPlayerCortado extends JFrame
    private Cortado cortado;

    public VideoPlayerCortado()
        cortado = new Cortado();
        cortado.setBounds(0, 0, this.getWidth(), this.getHeight());        



Deleted everything thats not important: This is how I add an applet to a JFrame.
Can I add an applet to a LWJGL Display, and if so, how ?

Offline kappa
« League of Dukes »

JGO Kernel

Medals: 88
Projects: 15


« Reply #1 - Posted 2011-09-28 13:59:25 »

What you're essentially asking is if you can embed an AWT/Swing component inside LWJGL's Display (i.e. an OpenGL Context) to which I'd say its probably not possible. What you probably want to look at is how Cortado is drawing the video (to a texture/image of some sort?). Then you need to basically get this data and put it into an OpenGL texture, which can be drawn as you like in OpenGL/LWJGL.
Offline Cero
« Reply #2 - Posted 2011-09-28 14:28:09 »

I guess there was this thread:

But the video playback in all of jME3 is now deprecated, so it seems like a failure and not sure if Cas got it working
dont remember video in ROTT, only played the demo though

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »

Medals: 556
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #3 - Posted 2011-09-28 18:50:42 »

I did get it working ... a bit. It was strangely unreliable - most ogg streams simply didn't work. I was waiting for someone to make the theora decoder more robust before I looked at it again.
As for decoding - it's simple, just decode directly into a texture instead of a bufferedimage.

Cas Smiley

Offline Cero
« Reply #4 - Posted 2011-09-28 21:51:51 »

As for decoding - it's simple, just decode directly into a texture instead of a bufferedimage.

Yeah I can't even find it - the source is not too simple.
Do you still have that code from back then ?

Offline princec

« JGO Spiffy Duke »

Medals: 556
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #5 - Posted 2011-09-28 22:23:01 »

No, I think I gave up on it and started looking at Xuggle, then sort of gave up on that for now too.

Cas Smiley

Offline Cero
« Reply #6 - Posted 2012-02-21 01:32:17 »

actually Cortado is still being developed.
you get it nowhere but the git repository:;a=summary
but here you can see that last update was last month

and there is a examples/

which, I'm sure, holds everything one would need to make a opengl texture out of the stream

Offline Cero
« Reply #7 - Posted 2012-02-21 01:53:26 »;a=blob;f=src/com/fluendo/examples/;h=47f01dce253cddb60f7fa0287d519038bad4a9ae;hb=HEAD

If someone tries to get the latest git source running, a couple of things dont work right off
- one audio class has problems, but since I will be using OpenAl and a seperate file for audio, it doesnt matter anyway (no audio makes cortado work pretty nicely), I just deleted the class, works fine
- Configure and SourceInfo classes are missing, but you dont need them, its only for some info output

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (11 views)
2015-08-01 03:58:20

Jesse (17 views)
2015-07-29 04:35:27

Riven (38 views)
2015-07-27 16:38:00

Riven (19 views)
2015-07-27 15:35:20

Riven (22 views)
2015-07-27 12:26:13

Riven (12 views)
2015-07-27 12:23:39

BurntPizza (32 views)
2015-07-25 00:14:37

BurntPizza (43 views)
2015-07-24 22:06:39

BurntPizza (25 views)
2015-07-24 06:06:53

NoxInc (32 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!