Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (553)
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
Hi,

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)

Regards,
Franck
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
Hi,

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,
Franck
4  Java Game APIs & Engines / J2ME / memory debugger: Inconsistent classes map on: 2005-05-10 10:26:52
Hi,

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 com.sun.kvem.memorymon.ObjectNode.free(Unknown Source)
   at com.sun.kvem.memorymon.ObjectsMonitor.freeObject(Unknown Source)
   at com.sun.kvem.memorymon.MemoryMonitor.freeObject(Unknown Source)
   at com.sun.kvem.memorymon.MemoryListener.run(Unknown Source)



What can cause this?

Regards,
Franck
5  Java Game APIs & Engines / J2ME / Re: 3d Rendering with SonyEricsson Simulator on: 2005-04-19 20:21:44
I FOUND IT, I FOUND IT, I FOUND IT!!!!!!

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,
Franck
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();
       addCamera();
       addLights();
   }



private void addCamera() {
       mobileCamera = buildDefaultMobileCamera();
       getWorld().addChild(mobileCamera.getCameraGroup());
       getWorld().setActiveCamera(mobileCamera.getCamera());
       mobileCamera.initPosition();
   }
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();
       world.setActiveCamera(mobileCamera.getCamera());
       ....      
   }
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:

java.lang.IllegalStateException
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)

Code:

try {
           iG3D.bindTarget(g);
           if (doAnimate()) {
               // advance the animation
               world.animate((int)(System.currentTimeMillis() - gameStart));
           }
         
           iG3D.render(world);
       }
       catch (Exception e) {
           e.printStackTrace();
       }
       finally {
           iG3D.releaseTarget();
       }





Thanks a lot for your help.
Bests,
Franck

http://cazapool3d.sourceforge.net/mobipool3d/3DShoot4_DivXCodec.avi
http://cazapool3d.sourceforge.net/mobipool3d/3DShoot5_MicrosoftCodec.avi.avi
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

http://cazapool3d.sourceforge.net/mobipool3d/3DShoot5_MicrosoftCodec.avi.avi

Franck
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

Franck
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.

http://cazapool3d.sourceforge.net/mobipool3d/3DShoot4_DivXCodec.avi

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,
Franck
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

Franck
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)

Franck
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:

http://henson.newmail.ru/j2me/Float11.htm
http://henson.newmail.ru/j2me/Float.htm

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

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

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.

Franck
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

http://henson.newmail.ru/j2me/Float.htm


for:
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:
http://henson.newmail.ru/j2me/Float11.htm

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

I think that's what i'll do.

thanks all,
Franck
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?

Franck
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:
CompositingMode
and
Appearance

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

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

Regards,
Franck
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
Hi,

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

Regards,
Franck
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:


http://sourceforge.net/projects/cazapool3d/

http://sourceforge.net/project/screenshots.php?group_id=109238

http://cazapool3d.sourceforge.net/cazapooljws/Pool.html

Regards,
Franck
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:


http://sourceforge.net/projects/cazapool3d/

http://sourceforge.net/project/screenshots.php?group_id=109238

http://cazapool3d.sourceforge.net/cazapooljws/Pool.html

Regards,
Franck
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

Franck
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
Franck
29  Java Game APIs & Engines / J2ME / Texture2D and image format on: 2005-01-12 11:38:20
Hi,

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:

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

exception:
startApp threw an Exception
java.lang.IllegalArgumentException:
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??

Regards,
Franck
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
 

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

The first screenshot will be displayed as a thumbnail.

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

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

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

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

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

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

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

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (42 views)
2014-08-06 19:49:38
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!