Help pls, does anyone have experience with software smoothing BImage..

Hei!

Link - http://www.5mingames.net/JavaGame5_02 - [runs with FireFox and IE , Opera has problems with Java Heap Space ]

i have had an action game project under (slow) work since last december,
my game will be about caveflying with Java ships on a caves filled with missile turrets and gun turrets,
blenty of light and explosion effects to come,

my problem is that i dont want to invent a wheel again,
what i need is a SMOOTH IMAGE SCALING with software BImage WRaster, could someone please provide me an link
to easyly understable (i have “bad” computer English) document conserning BufferImage WRaster smooth scaling…

with my game Applet, you can trye to press SPACE to get RENDERINGHINTS on, thats the result i want to on to my game,
still RHints are too slow, so i need to do my software based render routines by my self.

thank you,

//----

JariTapio / Helsinki
www.EuroJari.net

Hei!

well, here again,
does anyone out there know any free libraryes for raster based BImage smooth scaling,
library should be on a sandbox, im not interested on signed jars…

thanks,

//----

JariTapio / Helsinki
www.EuroJari.net

Have you seen this article? http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

Dmitri

Hei!

yeah, im familiar ( i think ) with BImage renderinghints they are far too slow to use on my game…
i have been making my own smooth engine (BIMAGE RASTER) at few last days, it is not yet ready, still, it is currently
smoothing my game area 480x480 to screen 800x800 a rate of 30 frames / second, renderinghints give 12 frames / second…
i think that i need at least 45 frames a second with my current computer to make my games playable with engine…

//----

JariTapio / Helsinki
www.EuroJari.net

Please don’t get me wrong but I think your approch is seriously flawed - I would not invest much more time into this self-written software rendering approch.

1.) Have you tried rendering everything into a BufferedImage and then rendering the BufferedImage to screen?
It should give better results because no data needs to be read-back from the Video-Ram.

2.) Have you tried the OpenGL pipeline?

What I would do is implementing both approaches, the BufferedImage stuff and the OpenGL rendering and the let the user decide.
If his/her computer is to slow he could turn off smoothing, he can turn it off - if he has a fast CPU but an unsupported GPU you could choose the software-bufferedimage approach, and if he has a supported GPU you can enable smoothing with hints and OpenGL (not rendering to a bufferedimage this time!).

lg Clemens

this requests LWJGL the only one I’ve got to know on the web and in my fresh memory. :o

oh no, its always nice to chat with people, nothing wrong, still i think im on a situtation where i need my own routiness…

  1. i have my game link following, im planning to make plenty SANDBOXED similiar “action” games and i need a smooting with them…
    if you press “SPACE” on game run, your frame rate REALLY drops,
    well, you can trye it yourself, Applet using RenderingHints with BILINEAR, my frame rate is 8-12fps and thats far too low…
  • http://www.5mingames.net/JavaGame5_02 - Applet runs with FireFox and IE, Opera runs out of Java Heap Space,
    give that “SPACE” key and renderinghints a run and tell me your frame rate and you know what i mean…
  1. yes, im familiar with JOGL, it gave me great results, still, it requires SIGNED JARS thats why i drop it with this project (annoying clicks)…

and im currently getting 30fps with 800x800 BImage with my smooth routiness, still working with them,
i WILL get that smooth frame rate to 40-50, thats my goal, then i shall finish my sandboxed game applet frames…

//----

JariTapio / Helsinki

this is one topic about perfs w/ bimage you’re calling to, ::slight_smile:

i dont know how you got it to pop up a huge window like that without any sort of confirmation but i don’t like it much.

this is how to pop up a display, hence I called my class Display. Ain’t so huge, I impl. the defaultSize property and further it can be easy to have some cross to click on to close, or whatever is your need. Don’t matter if you like it or not this is mine and so it belongs to me. BTW I use the GNU/GPL copyright agreement which is free to be reused as a definition.
At this time this Display class is used as a customized image preview in my FileChoosers. Moreover, I’m looking for some info about modifiying JFileChooser’s to get the preview in a packed style, which is not very easy due to the protected access of Swing components. :o

my framerate is always at 35fps, no matter wether smoothing is turned on or off.
However my laptop is a dev-machine, so not an average computer.

lg Clemens