I assume that you mean 800x600 not 600x800.
Originally Posted by neil_ross
Also the reason they are off the page a bit is because Your screen is set to 800x600, and the RoadRunner bar takes a little bit of resolution. So if the top bar is 75pixels high, then your maximum working area is really 800x525.
And when you press one and they all go down it is because they are all probably set to the same port number! Meaning they all coorespond to the same output. In the output configuration page, change the port number.
Also EUREKA on the rotating images.
It works. Of course only on my copy. :p :D
But here are some screenshots to hold you over.
Here is the main image that all the needles are rotated from:
And then to answer the previous questions on PNG format, if you look at this picture, the checkerboard is "transparent" underneath it. Now you can see that some pixels have a semi-transparent property meaning you can see that checkerboard in varying amounts for different pixels. For instance outside of the main needle area it is all transparent. Inside the needle completely it is 0% transparent. However right on the edge, some are like 50% some are 60% some are 20% and so on. When that is placed over another image, it will blend what is beneath it into it making it look like it belongs. A gif image must be either 0% or 100% in transparency. So all those values inbetween could not be there and that creates akward little artifacts. Make sense now?
Then the following images are of me manually adjusting the values to different formats. I just used whole numbers, but any decimal will work:
The skin section for that is:
#ENABLEROTATEMAINS# tells the program to rotate the image at #IMAGESTATIC#
#ROTATESPINPOINT#153,153 where xxx,yyy are the coordinates to rotate around. For instance, the needle itself is 183px long. The circle bubble is 50px by 50px. I want the rotation to occur from the centre of that circle obviously, so 183-(50/2) = 153. And since I have positioned the needle in the centre of the entire 316px by 316px image, it will be symmetric so also 153 from the y direction.
#ROTATELOWHIGH#x;y where x is the lowest value in the guage and y. So for a speedometer, x would be 0 and y would be the top speed, lets say 200. However for temperature, you might want the lower limit to be 100F and the upper limit to be like 300F. As of now though it cannot accept evaluated data, so you would need to convert 100F and 300F into their repsective voltage numbers such as 2.3 and 3.8 (example only, not actual).
#ROTATEANGLES#20;300 The image will rotate clockwise. So with the picture I have, an angle of 0 is it pointing straight down, an angle of 90 is pointing to the left, an angle of 180 is pointing straight up, an angle of 270 is pointing to the right, and an angle of 360 will point straight down again. As of now there is no looping so any angle over 360 will always act as 360 so straight down. Also negatives are iffy. I havent tested thouroughly yet. Anyways, the 20 in the skin command means that the lowest angle you want is 20degrees clockwise or pointing down and left, and thehighest would be pointing down and to the right, just as a speedometer is. I have never seen a speedometer point vertically down before (without being busted!).
#ROTATESTEPS#360 means that there is a resolution of 360. If that was 4 then the needle would only have 4 positions. If the resolution was 8 then only 8 positions. Obviously the more positions, the less jagged it looks. So the default is set to 360 which is 1 image per angle which is the maximum pretty much because it does integer math to prevent epileptic flashes like on the analogue graphs (I still dunno what to do about that).... You can make it like 10000, but that will just eat up cpu cycles and not look any better.
So there you have it. Needles and any other rotation can now be done. Air pressure, fuel, rpm, anything just like a cluster guage. I will code this into the skin designer and then post both my new designer and main program.
Any suggestions or comments? I will duplicate this in the main thread for everyone to know about as well.
yup i meant 800x600! :D
i didnt think about them being on the same port but your right!!
as for the buttons being off the screen, i didnt have it open in RR, just by itself!
Nice one for that dial!! true genius! although i have no idea how to use any of that code you put down! wouldnt eve know where to start!!
Oh and is the program you have running in your screen shot supposed to be the one i use for skinning?! mine looks nothing like that!!
I do not use the skin editing program because I do it all manually. The program in the first 2 screenshots is Adobe Photoshop CS2 and the other screens is the Main Program up front, and then behind it is Visual Studio, where I code the programs.
Originally Posted by neil_ross
And that code goes into your skin file under an anlogue input. I am updating the skin designer to spew out that code automatically.
And if they are showing up off the screen, then the location must be wrong. Look at the location of those images, and see what it is. Also there is a small border around the application (I think 1 or 2 pixels on each side) that gets hidden. Perhaps a screenshot would be best if you can duplicate it.
ok i will try and do a screen shout in the next few days. :D
Originally Posted by neil_ross
Do you better understand the png vs gif thing now though?
wow, you did rotation through the skin, man, is there anything you CAN'T do???
I'm amazed that every time you just get an idea presented you just run off & pop back in with it done, wow, mad skills there bro' your good, I think microsoft needs you:D
:lol: Thanks. :D
Originally Posted by turbocad6
If you've got anymore suggestions, let me know! And one day maybe I will work for Microsoft! :) It is on my list of places to look at specifically for their Smart House designs. That would be awesome! Hey Microsoft people, look at me!!!!!! :lol:
I have a suggestion. For whoever is designing the skins, could you add a section for an airbag suspension setup? I think I will be ordering this soon and it's just what I need to run my setup.
Originally Posted by 2k1Toaster
yup understand it alot better now, cheers mate!