Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (492)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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]
1  Java Game APIs & Engines / JOGL Development / Blackspirit Graphics 2.0 (2D graphics using JOGL) on: 2009-09-01 05:36:55
I finally managed to release the final version including quite some bugfixes.

Blackspirit Graphics might be interesting for those who want fast 2D graphics in Java but OpenGL is already too much.

Some core features are standard drawing operations (Image, Triangle, Line, Point), drawing on images the same way as drawing to screen, textured shapes, buffered images, reading screen buffer content to image and it uses JOGL.  Wink
Development is still ongoing and there is more to come.

More about it on: http://www.blackspirit.ch/projects/bsgraphics_en.html
2  Java Game APIs & Engines / JOGL Development / Re: Blackspirit Graphics 2.0 Beta 3 released on: 2008-08-21 18:38:25
I didn't have time too look at it in detail, but if it turns out to do the job I will of course use it.
Basically you could use anything giving you access to the videos frame data to render with Blackspirit Graphics.

The current solution using fobs and jmf has some problems and I don't think there is currently anything better.
I hope they sort it out with JMC and finally give us good solution for video in Java!
3  Java Game APIs & Engines / JOGL Development / Re: Textures are not displayed properly on: 2008-08-17 13:23:48
You have 0 and 1 hardcoded, you really shouldn't be doing that.
Use getImageTexCoords() instead.

The problem is, that as soon as the Texture internally uses the GL_TEXTURE_RECTANGLE_ARB extension
the texture coordinates are in pixels again.

So you should really use the getImageTexCoords() function if you use the Texture class!
Maybe that also solves you're problem.
4  Java Game APIs & Engines / JOGL Development / Blackspirit Graphics 2.0 Beta 3 released on: 2008-08-17 11:53:22
A new version of Blackspirit Graphics has been released, now including all the 2.0 features and bugfixes.
2 Demos have been added to the website (Particle System, Image Capturing) and the forum is online now.
The project is now open source and available on http://sourceforge.net/projects/bsgraphics/.

Website: http://www.blackspirit.ch

Blackspirit Graphics is a 2D Java graphics library designed for games, providing a powerful but simple interface.
The intention is to allow users to quickly start with 2D graphics while still giving them lots of possibilities and less
details to worry about.
It is suited for real-time applications, but also integratable into graphical user interfaces.
The implementation provided is using JOGL for its rendering to provide operating system independency and
hardware acceleration.

Besides simple drawing operations (points, lines, triangles, images, text) some more advanced features are
available like texturing and coloring triangles, shapes, animation and some helpful utilities (to create shapes for example).

5  Java Game APIs & Engines / JOGL Development / Re: Textures are not displayed properly on: 2008-08-16 13:36:09
What I think is clearly wrong is how you set the texture coordinates.
Texture coordinates are float values between 0 and 1, but you seem to use the width and height in pixels.
Like this the textures are displayed very, very small and get repeated or whatever you set as behaviour.

You should be using the getImageTexCoords() function from Texture to get the values for top, bottom, left and right as mentioned in the  javadoc of getImageHeight() and getImageWidth().
This is also important because the Texture class uses the GL_TEXTURE_RECTANGLE_ARB extension if possible which has an influence on the texture coordinates.
6  Java Game APIs & Engines / JOGL Development / Error in TextureData? on: 2008-08-15 09:58:25
I am using Texture.updateSubImage(...) to update a region of a texture with the content of a TextureData object.
Internally this method is calling "gl.glPixelStorei(GL.GL_UNPACK_ROW_LENGTH, rowlen);" to be able to update only a region.
The update goes wrong as rowlen coming from TextureData.getRowLength() is not set (0 by default).

The TextureData is not loaded from an image but created using the constructor with a Buffer, width, height, etc.
Therefore rowLength inside TextureData is not set, which is done automatically if you load an existing image.

After setting the row length manually on TextureData it works as expected.

Does anybody know if this is by purpose or just an error?
7  Java Game APIs & Engines / JOGL Development / Re: How to video texturing on: 2008-08-11 12:40:54
I'm doing it using JMF and FOBS4JMF which is using native FFMPEG bindings to do the decoding.

Have a look at the VideoRenderer and VideoDemo classes of the Video Demo on the following page:
http://www.blackspirit.ch/projects/bsgraphics/demo_en.html

This shows how to register FOBS4JMF at runtime and get the frames from JMF.
Setting up FOBS4JMF is quiet hard, read their instructions on their page carefully and
make sure to have the right jmf.properties (some distributions contain a crappy one.. they say that themselves)
http://fobs.sourceforge.net/

You would mainly have to change the process(Buffer buffer) method in the VideoRenderer
to write to your TextureData in the correct way (depending on what buffer type you use)
and then update the Texture with it.

The performance is not too bad.
8  Java Game APIs & Engines / JOGL Development / Re: Announcing: Blackspirit Graphics on: 2008-07-25 14:14:31
Thanks for posting the log! But I guess that is everything.
The numbers at the end are the frames per second I print out when the demo is running.

Probably there is an error calling the OpenGL methods, but without the DebugGL and
TraceGL that is not visible, unless the app crashes completely inside a native library  Tongue.
As I mentioned earlier I will add versions of the webstart demos having those two enabled for more output.

(The refresh rate actually looks a bit funny! I guess you have a CRT monitor)
9  Java Game APIs & Engines / JOGL Development / Re: Announcing: Blackspirit Graphics on: 2008-07-25 13:15:09
You can turn logging for webstarts on in Windows as follows (for Java 1.6 at least):
Start->Settings->Control Panel->Java->Advanced->Settings->Debugging->Enable tracing and logging

Then log files should be created in the following folder:
Documents and Settings\"username"\Application Data\Sun\Java\Deployment\log

This is quite helpful as the Java Console tends to vanish when an application crashes.
10  Java Game APIs & Engines / JOGL Development / Re: Announcing: Blackspirit Graphics on: 2008-07-25 09:36:47
[Bonbon-Chan]
Thanks for reporting! I haven't had the chance so far to test it on an Intel graphics card!
That's exactly why I wan't to get the forum up and running for feedback.
I will have a look as soon as I get my hands on an Intel graphics card.
As soon as possible I will get some debug webstarts up to make it easier to provide
detailed information on failure! So if you're interested, please keep looking.
What graphics card do you have? GMA X3100?

[zammbi]
The audio library is still in pretty alpha state (though already working) and I'm currently also considering JOAL,
but I try to get an early version up as soon as possible.
11  Java Game APIs & Engines / JOGL Development / Announcing: Blackspirit Graphics on: 2008-07-25 08:12:09
Website: http://www.blackspirit.ch

Blackspirit Graphics is a 2D Java graphics library designed for games, providing a powerful but simple interface.
The intention is to allow users to quickly start with 2D graphics while still giving them lots of possibilities and less
details to worry about.
It is suited for real-time applications, but also integratable into graphical user interfaces.
The implementation provided is using JOGL for its rendering to provide operating system independency and
hardware acceleration.

Besides simple drawing operations (points, lines, triangles, images, text) some more advanced features are
available like texturing and coloring triangles, shapes, animation and some helpful utilities (to create shapes for example).

The current version is 2.0 Beta 2 which is pretty close to a release candidate.

Version 2.0 Beta 3 will follow in August:
 - Some missing features added
 - Now a sourceforge.net project (http://sourceforge.net/projects/bsgraphics/)
 - First version to be open source

Downloads and documentation (in work) and demos are available on the website.
A forum will soon be added to the Blackspirit website (for feedback and bug reports).

Please let me know what you think of it!
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Nickropheliac (16 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (33 views)
2014-08-22 19:31:30

atombrot (42 views)
2014-08-19 09:29:53

Tekkerue (41 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (26 views)
2014-08-16 06:20:21

Tekkerue (37 views)
2014-08-16 06:12:11

Rayexar (73 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!