Just a test for an incomplete game

Hi all,
I’m currently developing a little 3D engine that works well with applets (basic polygon drawing, no texture, polygons are drawn in single color).

I will need a little feedback on how does it run on your computer. Exceptions thrown etc etc

Maybe I’ll try to complete this hobby project (add in computer AI) and start to pick up jogl or lwjgl after that.

The link is
http://www.comp.nus.edu.sg/~cheefoos/3dengine.html

Thanks in Advance
~Jeffrey

Works flawlessly :slight_smile:

Not only does it work well it’s quite impressive. Is it pure Java? I guess it’d have to be, I don’t jave Java3D or anything like that installed on my machine. Nice. Source code is going to be a must :slight_smile:

A FATAL ERROR OCCURRED
pagecount: dbm_open: /home/stu01/cheefoos/public_html/3dengine.html: No such file or directory
(bottom of the page, not in the applet)

I didn’t see the applet either, but I was using IE and I don’t know if that is talking to my jre at the moment. Looks fine in Mozilla,though. That will teach me to install Visual studio.net.

Very smooth.

Works fine here, but i’m missing a fps-counter. 3d without a fps-counter is no-go… ;D

[quote]Not only does it work well it’s quite impressive. Is it pure Java? I guess it’d have to be, I don’t jave Java3D or anything like that installed on my machine. Nice. Source code is going to be a must :slight_smile:
[/quote]
Sure it is and be assured that you can do lot more than that in “pure Java”…Quake3 anyone…http://www.jpct.net/img/quake3.jpg?
(Only vertex-lighting with some silly placed lightsources and some textures are missing, but hey…at least it’s “pure Java” too)

OSX reports no-joy. It shows up and you can move around but there are no textures or lights, just polys.

Are you talking about the original post?

Note, there arn’t meant to be textures, lights, JUST POLYS :wink:

Kev

I don’t think there are any textures or lights…

Yup, this is pure java, but I did not do the final painting of the polygons myself, just use make all my 3D vertices in world coordinates transformed onto 2d format (screen coordinates) and just used the simple java built in routines to draw them

Graphics.setColor(java.awt.Color),

and the
Graphics.fillPolygon(int[] xPoints, int[] yPoints, int nPoints) method only.

So there isn’t any lighting, unless I wanna go down to the drawing of individual pixels myself… which I feel that I would rather use some already well developed standards like LWJGL or JOGL.

I will be releasing source code today, go back there see if the link to the src is up.

[Edit] The link to the src is http://www.comp.nus.edu.sg/~cheefoos/src.zip

For every problem I encountered for the drawing, I did it in the simplest way which I feel is sufficient for this applet.
Things like view volume clipping, depth sorting, and even the collision detection, they’re not fool-proof at all. Just able to get the job done.

Don’t press P… I haven’t implement the 3rd weapon yet… so currently it hangs the game, throwing a nullpointerException. Will implement the 3rd weapon in the next release.
[end Edit]

~Jeffrey

I should learn to read before clicking on the link ;D

I’ve done up the FPS counter, and added the 3rd weapon. Life bars still not working at the moment.
Now you can’t fire or dash continuously.

~Jeffrey

[quote]Works fine here, but i’m missing a fps-counter. 3d without a fps-counter is no-go… ;D
[/quote]

Sorry for the late reply, i was on a trip to sweden for two weeks…the fps-counter works fine, i got 32 fps.
But it crashed:

java.lang.ArithmeticException: / by zero
      at custom.CustomCanvas3D.render(CustomCanvas3D.java:140)
      at com.GameEngine.GameEngine.run(gameengine.java:525)