| Reply | « Previous Thread | Next Thread » |
|
When I open some png files in JAR, I found that the png files in those games that produced by gameloft use a lot of clipping.
Their character is separated into many parts. Some of them are even rotated. Is this kind of png generated by programme or arranged manually ? So, when they paint a character, are they painting the whole large png several times and setClip in order to paint a single character ? If they do so, the game should be real slow. Am I right ? However, the game performance are very great. |
| noise_from_guitar |
| View Public Profile |
| Find all posts by noise_from_guitar |
|
Hi ,
I am also using clipping but it doesnt get very slow. I think if you paint the image excessively in a single frame then may be it will get slow. But I havent found it slow. Ankur |
|
Also using the DirectGraphics interface they could be producing single images from the big one, and maintain transparency (except in Series 60), and flip images, etc.
shmoove |
|
Some phones of Nokia say 6600
does not support Clipping and DirectGraphics together. It does not clip the image rather the entire strip is displayed if u are using drawImage using the reference of DirectGraphics. This is really unsual. As far as Gameloft is concerned i belive that they have done the entire coding using drawPixel which is a very tedious job. And the detection is Pixel detection rather than block/brick/tile detection. Anyway Hats Off to Gameloft developers, Splinter Cell is something great |
| sharad_unn |
| View Public Profile |
| Find all posts by sharad_unn |
|
It does support both DirectGraphics and clipping.
Clipping is just a part of your complete image which you are displaying. Ankur |
|
Hi Ankur,
I think u have not tested any application that uses DirectGraphics & Clipping on 6600 Nokia Device. I really does not work. |
| sharad_unn |
| View Public Profile |
| Find all posts by sharad_unn |
|
I have worked on a game with huge image & clipped the image and use DirectGraphics simultaniously.
I was having the problem very rarely that the clipped image doesnt appear on the phone. the same code properly worked on 3650. But some changes while using the instance of DirectGraphics have solved the problem. Ankur |
|
Hi Sharad,
I have forget to tell you to use ClipRect method. Have you used ClipRect after SetClip? It is useful on 6600. Do use and check. Ankur |
|
The phone i am talking is 6600 its an MIDP 2.0 phone
where the entire strip is displayed instead of one image. I have tried the same code with 3650, 3660 It works absolutely fine. |
| sharad_unn |
| View Public Profile |
| Find all posts by sharad_unn |
|
Thanks for the solution.
You after all that frustation what i did i made 2 image strip for right & left direction. I used the respective image for drawing on the canvas use the Graphics object and not the DirectGraphics object |
| sharad_unn |
| View Public Profile |
| Find all posts by sharad_unn |
|
This is ok if you are using very less images. But if you are using many images and that too very huge then you may have to look at the clipping with DirectGraphics.
Ankur |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|