Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


[java] java opengl/java3d for 2d games


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 sckime   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 March 2000 - 04:44 PM

This is possibly going to be a lengthy message that doesn''t necessarily apply totally to this group, but here goes.. I was thinking of a way to improve game programming in java that was "outside the box". The idea is to use a 3d api (be it Java3D or OpenGL java bindings) to accelerate 2d graphics. The idea I had would be to have each sprite essentially exist on a square. The square would be texturemapped with the actual sprite image. Assuming you had alpha enabled, you could have a sprite with transparency. All sprites would be coplanar, except for perhaps the background. Anyway, the gist of this idea is that you could render out these 3d sprites letting Direct3d or OpenGL accelerate the graphics in hardware (hopefully). I know this idea isn''t fleshed out very well, but I was hoping to generate some discussion. Thanks, Shaun

Sponsor:

#2 Plutt   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 March 2000 - 10:40 PM

I thought Java2D existed for 2D purposes...


#3 Ingenu   Members   -  Reputation: 931

Like
Likes
Like

Posted 29 March 2000 - 12:22 AM

first come 2d
then accelerated 2d
then accelerated 3d.
So if you can take advantage of 2d accel you would have a fast app, isn''t it ?
Yes, but the 3d rasterizer is so fast with so many nice features !
Truly, the 3d option for rendering 2d is good, it was suggested by NEC and Videologic engineers about 1 year ago, in a PowerVR related doc.
Of course w/o 3d acceleration you will have a problem, but 3dcards cost so little money...
Something cool will be an API using the fastest function between 2d and 3d ones, but to my knowledge none (except opengl ICD possible implementation) are available right now.


-* Sounds, music and story makes the difference between good and great games *-

#4 Jerry Lynn   Members   -  Reputation: 122

Like
Likes
Like

Posted 29 March 2000 - 08:55 AM

It appears that this is actually a fairly common technique. I am using the same concept to develop a cyberpunk game in Java 3D. As I was looking into this concept for my own game I found out that the technique has been used in a couple of commercial games, including Dungeon Keeper 2.

There was a similar discussion in the Isometric Game thread on this board where they questioned the use of 3D API''s for 2D isometric games. The benefits they listed included accurate Collision Detection and 3D Lighting (which is going to be more effective than trying to simulate lighting with a 2D engine).

I am not that far along yet, but the only problem I have found in my development is that Java 3D apparently doesn''t support animated textures.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS