Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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  
  xith3d and jmf (Java Media Framework)  (Read 1558 times)
0 Members and 1 Guest are viewing this topic.
Offline gafferuk

Senior Newbie





« Posted 2004-10-20 12:07:33 »

Im thinking about rendering an incoming rtp stream using jmf onto a cube in xith3d. Has anyone else tried this and what was your experiance?
Was it slow?
Did it render well?
Anything else?
Thanks...
Offline princec

« JGO Spiffy Duke »


Medals: 429
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-10-20 12:31:58 »

Yes, I have a video system in production on live TV.

Do not use JMF.

Instead we ended up writing our own JNI bindings to NCT's video activeX control. We don't use Xith (it's all direct-to-the metal LWJGL) but that shouldn't make any difference. The real issue is that JMF is a very poor implementation indeed.

Cas Smiley

Offline gafferuk

Senior Newbie





« Reply #2 - Posted 2004-10-20 14:24:55 »

Why is LWJGL better than xith?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

« JGO Spiffy Duke »


Medals: 429
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #3 - Posted 2004-10-20 14:37:28 »

It's not, it's just a bare metal API for doing OpenGL, not a scenegraph like Xith.

Xith is available on top of either LWJGL or JOGL.

Cas Smiley

Offline Jens

Senior Devvie




Java for games!


« Reply #4 - Posted 2004-10-20 14:38:29 »

Quote
Why is LWJGL better than xith?


Why do you ask? Cas didn't write that LWJGL ist better than Xith3D (they are not directly comparable anyway).

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline gafferuk

Senior Newbie





« Reply #5 - Posted 2004-10-20 15:21:26 »

am new, hear that this this is better than that, etc etc etc
Offline princec

« JGO Spiffy Duke »


Medals: 429
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #6 - Posted 2004-10-20 16:06:03 »

You've got quite a few posts on the board asking various questions... what project(s) are you working on, etc.?

Cas Smiley

Offline gafferuk

Senior Newbie





« Reply #7 - Posted 2004-10-22 07:00:54 »

Iv allready built a webcam internet phone system running on JMF, works well!

Im currently building a web multiplayer tenpin bowling game using xith3d and odejava.
Offline princec

« JGO Spiffy Duke »


Medals: 429
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #8 - Posted 2004-10-22 08:55:49 »

I'm glad you got JMF working eventually Smiley I had a lot less control of what format data I had to display.

Cas Smiley

Offline cascade

Junior Devvie




Java games rock!


« Reply #9 - Posted 2005-01-31 11:03:43 »

Hi princec,

if you have some experience with displaying tv images using lwjgl, is it possible to give me some hints about it.

I do image processing in c using video4linux2 and I am planning to use Xith for some visualization. Using JNI how do I get the image data into a texture ? What data format is best (I get plain RGB24 or RGB32 from the card) ?

Any ideas ?
Thanks,
Ca$cade
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline aNt

Senior Devvie




AFK


« Reply #10 - Posted 2005-02-04 07:26:39 »

yer spill it dude Smiley

i used QuickTime for Java but its all change there with
Java1.4 so now i tend to not bother with video unless
its of a giggle. QTJ is to slowwww... and all i want is the
data inputs pixels... then i can pass the data image
data to wherever. may have to decompress the data so
it can be used.

camera -> codec - > DirectBuffer ??
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #11 - Posted 2005-02-04 08:46:52 »

It's pretty crap that there is no simple and free way to display a mpeg4 or similar formatted video in Java across all three platforms.  I found a wounderful IBM pure-java mpeg4 codec which did everything, BUT it cost over $4,000  Shocked

Will.

Offline cascade

Junior Devvie




Java games rock!


« Reply #12 - Posted 2005-02-04 11:26:38 »

hmm, don't know if this applies to my problem. I get a raw image buffer (RGB24 or BGR24) from my framegrabber into ram (C language level).

I am planning to use JNI to get the buffer mapped into java and subsequently displayed as a texture.

I hope this works ... anyone having experiences on how to scale an 762x576 (PAL) image to an appropriate texture size ? perhaps 512x512 ?

Thanks for hints and infos,
Ca$cade
Offline whome

Junior Devvie




Carte Noir Java


« Reply #13 - Posted 2005-02-04 14:10:01 »

I would like to hear as well how to stream a frequent image frames to a texture. Let's say one side of the box should display a stream data.

What I don't get is how to update an existing texture in OpenGL and still have a decent framerate. If one want to run AVI video or webcam picture it should run 10-24 frames minimum.
Offline cascade

Junior Devvie




Java games rock!


« Reply #14 - Posted 2005-02-04 14:11:21 »

One question,

what is the best way to update a texture with a live video feed (via jni) ?

ImageComponent
ImageComponent.BufferedImage

Any ideas ? Anyone done that already ?

thanks,
Ca$cade

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

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (28 views)
2014-12-15 09:26:44

Mr.CodeIt (19 views)
2014-12-14 19:50:38

BurntPizza (39 views)
2014-12-09 22:41:13

BurntPizza (74 views)
2014-12-08 04:46:31

JscottyBieshaar (36 views)
2014-12-05 12:39:02

SHC (49 views)
2014-12-03 16:27:13

CopyableCougar4 (44 views)
2014-11-29 21:32:03

toopeicgaming1999 (112 views)
2014-11-26 15:22:04

toopeicgaming1999 (98 views)
2014-11-26 15:20:36

toopeicgaming1999 (29 views)
2014-11-26 15:20:08
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!