|
Post by u9 on Mar 19, 2007 14:41:33 GMT -5
Graphics.create image seems to be living in another resolution or something. In the image below i tried to create a radar background. I created it with the size 800x600. Then i rendered it on screen at 200,200. This is what can be seen in the image below. The "funny" thing is that my entire screen is only 800x600 yet the radar image is far from able to cover the entire screen. I am using Brutus2D v1.7.
|
|
|
Post by Guilect on Mar 19, 2007 19:51:46 GMT -5
Let me understand. You used createimage to make a 800x600 'bitmap'. Then you made a circle on the created image. How big was the radius of the circle?
|
|
|
Post by u9 on Mar 20, 2007 3:09:04 GMT -5
Hmm... good question. Let me get back to you on that
|
|
|
Post by u9 on Mar 21, 2007 2:13:45 GMT -5
Ok, here is another image. Here I create an image size 600x600. I then draw circles on it at 200x200 with a radius ranging from 1 to 200. Then i render my newly created image (with the circles on) onto the display window at position 0,0 and this is what I get. The display window is about 800x600. Note that the circles don't seem to fit onto the image i created (yet their diameter is max 200x2=400 while the image was 600x600). Nor does the image i created fit into the display window. To make the image fit into the display window as you see below, i have to scale the image to half size (0.5 in both x and y direction.) You can also see that my created image seems to be out of proportion yet i assure you the scale is 0.5 in both direction. In my previously image i posted above, i had scaled the image 4/1.3 in x and 3/1.3 in y (to get a 4/3 ratio). That might have led to some confusion, sorry.
|
|
|
Post by Guilect on Mar 22, 2007 9:13:55 GMT -5
Clever way to make a filled circle.
I will look into the 'scaling' issue. I am thinking it might have something to do with a difference in the desktop's resolution vs. the game resolution. ??
A quick look at the code looks straight forward enough. psuedo code:
Set newimage = DX.createimage(device, width, height, bpp)
Will have to spend some time researching.
|
|
|
Post by Guilect on Mar 24, 2007 9:19:22 GMT -5
I spent some time looking at this and... It all seems to work fine on this PC.
Perhaps you could run your program on the school PC where the particle FX worked and see if this one also works.
|
|
|
Post by Guilect on Mar 24, 2007 9:25:41 GMT -5
just out of curiousity what is the resolution of your desktop?
|
|
|
Post by u9 on Mar 24, 2007 9:50:11 GMT -5
My desktop varies between 800x600 and 1280x1024. Maybe my graphics driver is fubar. I can try reinstalling it. I can't try my computer at school for another 2 weeks, but I can try some other computers if I get the chance.
|
|
|
Post by u9 on Apr 5, 2007 4:54:32 GMT -5
I tried the radar on a different computer (with geforce 5600) and it seemed to work... I don't know about the particles because i couldn't activate Brutus on that computer, so i had to run the free version. But now i have changed gfx card to geforce 2 (for Linux reasons ) so i cannot give any more info about this problem. The order in which particles and images are drawn now doesn't matter. However, i have just noticed that now the particles seem to be out of proportion (just like my createimage earlier). Look at the screen shot below. The particles are oval. This is clear to see in the difference when the ship goes horizontal and vertical. To see how they should look, have a look at the screenshots from the show case section. The strange thing is that the particles have right proportion only in 1280x1024 full-screen. All other resolutions, including windowed modes, seem to have disproportionate particles, and it doesn't matter what my desktop resolution is. I am not sure when this happened. Most likely now that i changed the gfx card. The reason i post it in this thread is because it seems to be related to the proportions problems i had with create image. The problem is present in both v1.7 and v1.7.1.
|
|
|
Post by Guilect on Apr 5, 2007 15:59:17 GMT -5
I am running a GeForce 2. And running your Asteroids of Fire v0.7, the particles are perfectly round.
|
|
|
Post by u9 on May 1, 2007 13:15:38 GMT -5
I compiled my game and tried it on my school computer... the particles were perfectly round :S I guess i switched from one crappy gfx card to another.
|
|
|
Post by Guilect on May 1, 2007 18:10:30 GMT -5
Wish I could help. got the latest graphics drivers? Not sure how but, could it be monitor related, refresh rate or something?
|
|
|
Post by u9 on May 2, 2007 10:34:08 GMT -5
I'm thinking it should be driver related, but i just switched gfx card and downloaded the latest drivers from nvidia's site soe But i'll keep my eye open, sooner or later i'm bound to find more clues to the puzzle.
|
|