Java-Gaming.org Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (653)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3 ... 9
1  Java Game APIs & Engines / Engines, Libraries and Tools / Re: YUNPM get frame is black on: 2015-06-29 20:04:41
Now solved, thanks for the posts guys.
2  Discussions / General Discussions / Re: Oracle are winning in the 'copyright an api' legal fight on: 2015-06-29 20:04:12
I thought this was simply about them copying the API, can someone explain what's going with fees to me?
3  Java Game APIs & Engines / OpenGL Development / Re: Blender texture coordinates are messed up when rendering in my engine? on: 2015-06-29 04:47:00
If it's in the code I can't help, but can you post a picture of the UV mapping on top of the texture in blender?
4  Java Game APIs & Engines / Engines, Libraries and Tools / Re: YUNPM get frame is black on: 2015-06-29 04:23:03
Thank you! This is almost perfect, I'm having 1 tiny problem though..



I am getting the colors on the left, instead of how it should be on the right. I'm assuming this is since its BGR. Do I needs to convert the BufferedImage, or is there a quicker way I can get it as RGB?
Either way, this is brilliant thanks.
5  Java Game APIs & Engines / Engines, Libraries and Tools / YUNPM get frame is black on: 2015-06-28 17:07:35
Hi, I am trying to use YUNPM to get frames of video onto a BufferedImage. My method works for the first 3 frames but then stops returning a bytebuffer, just null. Here is what I am doing:
1  
2  
File film = new File(path.getAbsolutePath()+"\\Assets\\Movies\\1.mp4");//This part works as it plays the sound from the sample video
player = new MoviePlayer(film);

Then to get a frame
1  
2  
player.tick();
ByteBuffer b = player.movie.videoStream().pollFrameData();

After the first 3 times it returns null. It is displaying correctly at least one frame, but I'm not sure the 2nd and 3rd are actually different from the first it displays. I have also tried the following after the above
1  
2  
player.movie.videoStream().freeFrameData(b);
player.movie.onUpdatedVideoFrame();

And while this does let me get more than 3 frames, they are bizzare colours and all over the place, with it eventually giving me
1  
java.lang.IllegalArgumentException: Number of remaining buffer elements is 528384, must be at least 921600.

Has anyone else used this and knows what I am doing wrong?
6  Java Game APIs & Engines / Java 2D / Re: Newbie Tips? on: 2015-06-26 05:13:57
the problem I really have is with creating graphics and other things like that

Are you also asking about making the graphics assets themselves, or just the programming side?
7  Game Development / Performance Tuning / Re: Video frame grabbing to bufferedImage on: 2015-06-25 21:48:14
Well I'm going to use YUNPM, will post on its own thread not this one anymore. Thanks for the help
8  Game Development / Performance Tuning / Re: Video frame grabbing to bufferedImage on: 2015-06-25 17:59:14
My intention is to have a video I can play forwards frame by frame, either at normal x1 speed, or slowed down. I wanted to convert to BufferedImage so I can draw these in a variety of ways (other libs I use make use of them). Ideally I'd like to be able to backwards frame by frame but that's not a priority, just being able to go forward frame by frame at say 60fps is ideal.

I actually have my images all saved as PNG files that I converted into a movie purely for the compression. If there is any alternative (looked into APNG but nothing useful) that would be fine, though I think this is the right way.

I'm currently using Xuggle but without meaning to sound lazy it's proving a pain up the ass to work with, also the whole GPL or build yourself for  LGPL scares me.

I found several mentions of pure Java decoders for mpeg which would be ideal; some were simply publications talking about it but no public release, and the other (http://viper-toolkit.sourceforge.net/products/jmpeg/) I have found literally nothing documentation wise and cannot work them.
9  Game Development / Performance Tuning / Re: Video frame grabbing to bufferedImage on: 2015-06-25 02:38:16
Hey, thanks for the reply.

I was really hopeful but unfortunately it gave no speed boost. I tried it with both seekToSecondPrecise and seekToFramePrecise but it's still exactly the same speed.
10  Game Development / Performance Tuning / Video frame grabbing to bufferedImage on: 2015-06-25 01:23:16
Hi all. I am trying to grab frames from a video and then convert them to a BufferedImage. I will always be grabbing frames in order (so from frame 21 I'll either go to 20 or 22, never off to 100 or anything) and pausing occasionally.

I have achieved this using JCodec, but it is slow (between 3-15 frames a second)

BufferedImage frame = FrameGrab.getFrame(filmFile, frameNumber);

I'm guessing this is because it's working its way from the last ... keyframe or whatever the term is, whereas it would be quicker if I was simply going from frame 1 to frame 2 and so on.

I'm giving up on JCodec - can anyone else recommend what I should use to achieve this? I have read abut Xuggle, JMF and a few others but I keep reading about how they are abandoned.
(Video is mp4 if that's of any use)

Thanks
11  Game Development / Networking & Multiplayer / Re: Inventory management and sorting on: 2015-06-15 02:23:20
If you want players looking at it to see the same thing, then the server is gonna be authoritative and if two players try to drag the same item to different places, you have no choice, whichever the server gets first will be the correct one, and someones gonna get a correction from the server that they aren't dragging that item anymore. As long as the server dies this behavior AND sends it to the people looking in the same chest or w/e, there won't be any sync issues surely?
12  Games Center / WIP games, tools & toy projects / Re: Isometric sci-fi rpg on: 2015-04-20 20:51:52
I very much like the graphics, but it does looked a little too far zoomed in?
13  Games Center / Showcase / Re: Spaceport Hope on: 2015-02-17 06:24:34
The music is great too, albeit a bit odd with that going on but I know its just the video. Regardless looks cool!

Checked out the artists page, it's like the composer from Final Fantasy's stuff, really nice
14  Game Development / Game Play & Game Design / Re: I need your opinion! on: 2015-02-17 06:20:52
I'd think really carefully about what you want to make.. even your wildest dreams however unlikely, ask yourself in an ideal world what you'd make with this, because it may become a serious limitation down the line and its always easier to get it done now before everything else starts taking shape around it.

Your screenshot made me think of a planet with the 1 light source, which looks cool. Would look pretty iffy with a player model though imo.
15  Discussions / Miscellaneous Topics / Re: Just bought a whiteboard on: 2015-02-17 06:14:54
I wanted to remove it.. to draw more smaller graphs!

I have not tried Matth, was thinking of getting a new bigger board - for more graphs.

I'd really love some floor to ceiling white boards though, my university had these sort of cupboard door ones that you can draw on and it was amazing for doing maths or any difficult logic.
16  Discussions / Miscellaneous Topics / Re: Just bought a whiteboard on: 2015-02-12 03:42:41
Nice, good buy, good buy. Just don't do as I did and leave things on it for too long... Sin(x) graph is a permanent feature of my whiteboard now. Competition++
17  Discussions / Miscellaneous Topics / Re: Bit pissed off at uk school system... on: 2015-02-12 03:32:06
I hate the "if you have nothing to hide" argument, but when it comes to school and minors I'm all for it, seeing as you LITERALLY only carry very specific items, and what with certain knife based events I honestly don't see the problem.
this is not a prison its an area for teaching them.
The UK education system is a joke anyway, soon as you grind through and get secondary school qualifications you go to a "real school" called a university, a place where tutors are paid money and not crack cocaine and what they teach you is current and relevent to the actual course.

Well I'm guessing that's based from experience but my experience of university was the complete opposite - a complete f**king joke. School was far better and I actually learned more - much more. As for current and relevant to the course, that's the entire point of school, to teach you key skills required for all areas and a good all-round education.


EDIT: I missed the bit about actually looking through someones phone - the data. Is that actually allowed? How can they possibly enforce that if the phone is password protected? Someone please clarify, because if that's the case then I'd change my tune.
18  Game Development / Game Play & Game Design / Re: How to be a more creative writer? on: 2015-02-09 18:28:11
I think inspiration can be really difficult, especially if you spend a large amount of time isolated in one room in front of a screen. I find reading short stories can help provide inspiration; I'm not talking about copying, but imagining someone elses vision for an atmosphere location environment scenario character or whatever it is, and you its easy to go off on your own tangent from there. I say short stories since its quicker and you can get through a variety quickly.
19  Discussions / General Discussions / Re: Posting in wrong thread on: 2015-01-22 19:06:04
I will try to recreate it, but I guess my initial presumption of "I am a retard" is going to be found true.

BrendynT lol, even worse a few months back I posted "No I like the donut like man he looks brilliant" or something, again completely the wrong topic.
20  Discussions / General Discussions / Posting in wrong thread on: 2015-01-19 17:38:37
I have this problem on JGO, wondering if anyone else does.

(Start not logged in) If I open multiple threads in new tabs and then in one I decide to reply, I log in then go to reply, but I end up posting in one of the other threads I opened in a seperate tab.
It's lead to some rather odd looking posts by me ranting about things that have literally no connection whatsoever to the topic.

Has anyone else had this happen to them or am I a literally retard incapable of working a forum? I've never done this on any other forums, and its happened to me so many times here
21  Game Development / Newbie & Debugging Questions / Re: Classic transparency problem with PNG on: 2015-01-19 00:24:21
EDIT: Post went into wrong thread.
22  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-04 21:52:02
Gl with Blender Olo, is it an amazing program once you get it down
23  Discussions / Miscellaneous Topics / Re: The Escapist! on: 2015-01-04 03:18:06
Reported the video.

Creating a list of things to do is the easiest bit, I doubt he'll get beyond that stage - probably get distracted by something shiny.
24  Discussions / General Discussions / Re: why doesn't anyone use PlayN? on: 2014-12-30 04:03:48
Had never heard of it.. Libgdx is kinda the easiest one to stumble upon, and when you've found it it's like, why keep looking?
25  Discussions / General Discussions / Re: Most graphically polished games developed in Java? on: 2014-12-30 04:02:26
JME is gross, perhaps that's just my opinion, but everytime I've even attempted to use it, I lost my will to program for a week.

Minecraft is NOT the go-to option in my opinion, it's just a bunch of blocks with some... meh textures.

It most definitely is your opinion. JME has an absurd number of features, none of which are forced upon you - it is quick and easy to setup a 3d scene to your liking. Purely out of curiosity, what didn't you like?

As far as polished graphics go, I honestly havn't seen much in Java - for obvious reasons. This is currently my most graphical game, again in JME



NOTE: FPS is set to 62 by me, not running at full speed.
If you want to see the fullscreen  screenshots,
http://i.imgur.com/05t56i4.jpg
http://i.imgur.com/rs9NRZA.png
http://i.imgur.com/yTQ8hC7.png

26  Game Development / Game Play & Game Design / Re: Old 3d graphics on: 2014-12-24 20:11:31
The original PS1 Silent Hill is one of those games that gains a lot from its crappy graphics. It's a bit like looking at an old pinhole photograph in that it becomes a bit abstract in places and your imagination takes over and fills in the gaps. I believe the imagination is more powerful than anything, so I actually get your point.

That, and the way it uses fog /darkness to keep the draw distance down really made it terrifying IMO.  Playing it on an emulator with smooth shading and filtering etc actually removes something!

100% yes less = more imo. I think what you said it something I find true of many blurry old textures.

Corvid, out of interest which look do you prefer? It was an attempt to create a Resident Evil like game, uses fixed camera positions but not pre-rendered backgrounds. There is nothing to do bar walk around and press light switches and a few other buttons. Kind of re-making it with a different twist, havn't made any playable versions
27  Game Development / Game Play & Game Design / Re: Old 3d graphics on: 2014-12-24 19:30:35
Acually I love that too, in particular the textureless flat shading of the main character.

I even went as far as to remove textures in one of my billions of projects (kept lighting though, character uses a head torch)
28  Discussions / General Discussions / Re: I no longer use Google Play and I block ads on: 2014-12-23 03:33:28
Quote
it's up to the developers to provide some alternative means of paying them

I agree about this ad bubble and it exploding - I probably saw 5 in the last 20 minutes and cant remember a thing, trained to blank them out.

I disagree with what you said though, they shouldn't have to imo.

I don't want to jack your topic, but can I quickly ask (not developed for android and dont use a smartphone) what happens to in-app adds if you disable internet?
29  Discussions / General Discussions / Re: Hi guys on: 2014-12-23 01:28:47
No problems, when you have the money send me a message and I will gadly sell you my house for $70million.
30  Discussions / Miscellaneous Topics / Re: Markus bought a new house on: 2014-12-23 01:27:33
Grats to him. Sounds like cas is really on the money here aswell.
Pages: [1] 2 3 ... 9
 
SHC (28 views)
2015-08-01 03:58:20

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

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

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

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

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

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

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

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

NoxInc (37 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
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!