Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (555)
Games in Android Showcase (150)
games submitted by our members
Games in WIP (602)
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
1  Java Game APIs & Engines / J2ME / motorola emulator: createRGBImage(int[], int, int, on: 2005-05-23 17:55:49

When I call createRGBImage(int[], int, int, boolean) with true (for transparency management) the emulator (for E680) crashes.

It works fine under sun WTK22, SonyEricsson emulator.

- did someone experienced the same issue?
- Is it a known issue from motorola emulator? (I can't find any info on their motocoder site)
- is there a workaround? (beside setting it to false)

2  Java Game APIs & Engines / J2ME / Re: Graphics3D.releaseTarget() performances on: 2005-05-16 20:27:12
thanks for the infos
3  Java Game APIs & Engines / J2ME / Graphics3D.releaseTarget() performances on: 2005-05-16 16:11:00

I finished to wrote a game using m3g technology.
On the emulator, everything works fine with a very good FPS (40)
Although I know it's on a emulator, i was expecting pretty good performances on a real handset.
But I was surprise to have a FPS of 1 or 2 .... Sad (on SE s700)

So I monitored my game and discovered it spends 70% in the Graphics3D.releaseTarget() method.

My game have textured 3d object (overall it has 1500 polygons)

I'd like to know:
- if 1500 polygons is too much for such devise
- tips/trick to optimize Graphics3D.releaseTarget()
- should i use small texture size (I have 1 texture which is 128*256) and about 20 textures of 64*64

Thanks for your ideas,
4  Java Game APIs & Engines / J2ME / memory debugger: Inconsistent classes map on: 2005-05-10 10:26:52

I am using JSR-184 and sun WTK 2.2.0.
When I try to run the program with the memory monitor enabled on the emulator, I always end up with the following exception:

Exception in thread "Thread-5" java.lang.RuntimeException: Inconsistent classes map
   at Source)
   at com.sun.kvem.memorymon.ObjectsMonitor.freeObject(Unknown Source)
   at com.sun.kvem.memorymon.MemoryMonitor.freeObject(Unknown Source)
   at Source)

What can cause this?

5  Java Game APIs & Engines / J2ME / Re: 3d Rendering with SonyEricsson Simulator on: 2005-04-19 20:21:44

here is jsr184 spec about VertexBuffer:

All vertex attribute arrays are initialized to null. The application can also set them to null at any time. This is a completely legal state, as long as the VertexBuffer is not rendered or tested for intersection with a pick ray. When rendering, null vertex attributes are treated as follows:

   * If the position array is null, an exception is thrown.
   * If the normal array is null, and lighting is enabled, an exception is thrown.
   * If a texcoord array is null, and the corresponding texturing unit is enabled, an exception is thrown.
   * If the color array is null, the default color is used instead.

Lighting can be disabled for a submesh by setting a null Material in Appearance. Similarly, a particular texturing unit can be turned off by setting its Texture2D to null.

My issue comes from the appearance that holds a material. I removed the material on the appearance (i'm using on my Mesh) and BINGO, it works!!! (by setting a null material to my appearance)

So basically the issue doesn't come from SE WTK, but more from Sun WTK that allows too much things, and which doesn't throw an exception where it should.....

Thanks for all your support,
6  Java Game APIs & Engines / J2ME / Re: 3d Rendering with SonyEricsson Simulator on: 2005-04-19 11:01:34
this is what i do, here is the exact piece of code:

protected void buildScene() {
       world = buildWorld();

private void addCamera() {
       mobileCamera = buildDefaultMobileCamera();
7  Java Game APIs & Engines / J2ME / Re: 3d Rendering with SonyEricsson Simulator on: 2005-04-19 09:20:45
yes it is, here is the piece of code:

protected void buildScene() {
       world = buildWorld();
8  Java Game APIs & Engines / J2ME / 3d Rendering with SonyEricsson Simulator on: 2005-04-19 06:52:00
Hi, My game runs without any particular issues with Sun WTK22

I then tried to make it work with the sony ericsson WTK2, but when it renders the 3d world, i always have the same exception:

at javax.microedition.m3g.Util3D.throwEx(+79)
at javax.microedition.m3g.Graphics3D.render

First of all, what is Utils3D class used for? (Sun WTK22 doens`t have such class in his m3g implementation)

Here is my code to render the world:

(in my test doAnimate() returns false)


try {
           if (doAnimate()) {
               // advance the animation
               world.animate((int)(System.currentTimeMillis() - gameStart));
       catch (Exception e) {
       finally {

Thanks a lot for your help.
9  Java Game APIs & Engines / J2ME / Re: 3D shoot game feedback and ideas on: 2005-04-11 12:47:31
For those who don't have DivX codec, here is a link to a movie encoded with Microsoft codec

10  Java Game APIs & Engines / J2ME / Re: 3D shoot game feedback and ideas on: 2005-04-11 08:20:22
it's encoded with divX.
I'm gonna create a new video with codecs that work for WMP

11  Java Game APIs & Engines / J2ME / 3D shoot game feedback and ideas on: 2005-04-06 10:38:01
Hi all,

I'd like to know your feedback regarding a 3D shoot game i created with m3g.

It's not even an alpha version, and the purpose is not to release it.
My goal is to have a POC (Proof Of Concept).

My game library can handle:
- Collsion
 * Near front collision (Avatar)
 * Far front collision (shoot)
 * Height collision (Terrain following)
- Avatar
 * Gravity
 * 3D avatar
 * Avatar animation
- M3G object
 * m3g object loading
 * define 'default height position' according to terrain
 * object animation
 * Avatar
 * Terrain
 * Doom Style camera
 * Rotation around object camera
 * Tiled map generator (Wall/Floor/Roof/etc...)
 * Transparent billboard generator
- Misc:
 * Image overlay (on the top of the rendered world)
 * Bitmap fonts
 * FX Sound
 * Music
 * Splash screen
 * High score saving/loading
 * Configuration saving/loading
 * Image scaling

This game library is very generic, almost everything is Abstract and require few things to implement to make any kind of 3D game.

I'd like to know your feedback and ideas in order to enhance it.

thanks a lot,
12  Java Game APIs & Engines / J2ME / Re: MIDP 3 started on: 2005-03-15 07:32:00
I did, and I agree, I don't see urgent needs related to scaling and rotating.
I think what jsr 184 offers is enough, It fills all my needs so far

13  Java Game APIs & Engines / J2ME / Re: Thrust and Gravity... on: 2005-03-01 13:34:26
use counter,  and limit counter patter, so you update your stuff every 'limit counter' is reach
but this is not good at all if you use integer counter, because you'll have different behavior with different CPU cell phone...

so the best is to use System.currentTimeMillis() (as a counter)

14  Java Game APIs & Engines / J2ME / Re: Thrust and Gravity... on: 2005-03-01 12:22:05
I would suggest to use Float & FLoat11 class from:

Everything is there. Small, simple, fast, easy to use.

15  Java Game APIs & Engines / J2ME / Image buffer & bitmap font on: 2005-02-03 08:31:26

I use bitmap font to display nice text on my canvas (after calling Graphics3D.bindTarget/render/releaseTarget)

Everything works fine.

But when I have a long text (I.e a lot of char images to draw), it's way too slow... Which make sence since, for each character I fetch the image and display it a the correct position.

My text never changes, so I'd like to create a static image once and for all...

My question is, how to create 1 single image from multiple images.

16  Java Game APIs & Engines / J2ME / Re: how can we abtain sin and cos methods ? on: 2005-02-02 08:21:53
you'r enot lost, you can use:
Float midp Point

double asin(double x)
double acos(double x)
double atan(double x)
double atan2(double y, double x)
double exp(double x)
double log(double x)
double log10(double x)
double pow(double x, double y)
go to:

17  Java Game APIs & Engines / J2ME / Re: Creating a single 3D Line on: 2005-02-01 09:07:33

I think that's what i'll do.

thanks all,
18  Java Game APIs & Engines / J2ME / setClip on: 2005-01-31 09:23:06
My first question is:
Is g.setClip time consuming?

in my canvas, I draw many sprites using:
for(...) {
   g.setClip(x, y, imgW,imgH);
   g.drawImage(myImage, imgX, imgY, MY_FLAGS);
   g.setClip(0, 0, screenWidth, screenHeight);

I'd like to know the purpose of a call to:
g.setClip(0, 0, screenWidth, screenHeight);

Is it to flag the part of the screen to refresh?
Can call it only one time after all my sprites are drawn?
Or do i have to call it for each sprite?

19  Java Game APIs & Engines / J2ME / Re: Help: Unable to load image on: 2005-01-21 18:07:16
send us the EX
20  Java Game APIs & Engines / J2ME / Re: Transparent appearence applied to a mesh on: 2005-01-21 13:37:48
Ok i found out with:

21  Java Game APIs & Engines / J2ME / Transparent appearence applied to a mesh on: 2005-01-21 12:29:21

Does someone know how to create a transparent (or partially transparent) Mesh.
Can i use specific flags on Appearance obj?

22  Java Game APIs & Engines / J2ME / Re: Creating a single 3D Line on: 2005-01-20 07:28:15
I'm using Mobile 3D API, I built a 3D world unsing m3g loader etc... everything works fine.
I just want to add a Line in my World based on 2 Points (x, y, z)
I don't want to create a Mesh for that. I mean I would like to avoid doing such things
23  Java Game APIs & Engines / J2ME / Re: Creating a single 3D Line on: 2005-01-19 14:04:28
i understand your point but this solution (simulating 3d line by doing the projection myself) is not very nice and not accurate i guess.

any one have an easier idea?
24  Java Game APIs & Engines / J2ME / Creating a single 3D Line on: 2005-01-19 13:19:35

does anyone know how to simply generate a 3D Line with 2 3d points?

25  Games Center / Archived Projects / Re: feedback on CazaPool3d on: 2005-01-12 12:13:00
CazaPool3D had been update with a major version.

you can check it out at:

26  Discussions / General Discussions / Re: What do you think about CazaPool3D on: 2005-01-12 12:08:12
CazaPool3D had been update with a major version.

you can check it out at:

27  Java Game APIs & Engines / J2ME / Re: Texture2D and image format on: 2005-01-12 11:58:30
! Thanks a lot, it works fine.
thanks again

28  Java Game APIs & Engines / J2ME / Re: background sound: how to set endless sound? on: 2005-01-12 11:40:23
First, I tried that and it didn't work...
but I tried again on your suggestion, and it works... I'm too tired...

thanks a lot
29  Java Game APIs & Engines / J2ME / Texture2D and image format on: 2005-01-12 11:38:20

I found a weird behavior regarding Texture2D.
according to the selected images, i can (or cannot) create a Texture2D.

here is the code with the exeption:

Image sprite = Utile.loadImage("/images/myimage.gif");
Image2D image2D = new Image2D( Image2D.RGB, sprite );
Texture2D tex = new Texture2D(image2D);

startApp threw an Exception
at javax.microedition.m3g.Texture2D.<init>(+5)

But with another image (still a gif), it works fine...
Does someone know if there are issues between Textures2D and image format??

30  Java Game APIs & Engines / J2ME / Re: 3ds to m3g on: 2005-01-10 12:45:41
I found the issue.
If someone is interested, let me know
Pages: [1] 2
BurntPizza (44 views)
2015-02-27 06:09:35

BurntPizza (33 views)
2015-02-27 05:56:17

Riven (27 views)
2015-02-27 02:34:15

Riven (31 views)
2015-02-27 01:47:26

Riven (32 views)
2015-02-27 01:46:04

BurntPizza (28 views)
2015-02-27 00:52:04

BurntPizza (30 views)
2015-02-27 00:50:29

Riven (49 views)
2015-02-26 23:38:45

Riven (24 views)
2015-02-26 23:37:24

BurntPizza (42 views)
2015-02-26 21:13:04
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

Resources for WIP games
by kpars
2014-12-18 10:26:14

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 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!