PDA

View Full Version : dx and dy not zero??


Rovastar
8th January 2002, 15:01
dx and dy are not zero when set as zero.

It seems that dx and dy are not actually zero even though in the preset milk file they are set to 0. They seem to be off my about 0.0005. Have a look at these two test files both the same dx and dy set to 0. But Test2 has in the per_frame -0.0005 toi the dx and dy variables.

In Test1 there is motion in the dx and dy the image move slightly to the right and down. Whaereas in Test2 the image stays static.

I noticed this (and probably a few others) sometime back but would it be possible to change it for a future release. Or do we want it changed as some presets may be effected by it but surely it is more effecint then correcting it in the per_frame code each time. I suppose I could set the preset milk files to these small negative amounts but would it not be better to change to actual MilkDrop plug-in. Is it not confusing to newbies when the image move yet the preset is blank or am I just being a pain as normal?

What do you authors think?

Rovastar

Krash
24th January 2002, 15:53
It's a video driver issue. Some drivers refer to the top left corner of the top left pixel as (0,0), while some others refer to the center of that pixel as (0,0). It's a small difference, but that's all it is.

- Krash

Rovastar
24th January 2002, 17:46
OK that explains a bit more. But what is the norm Nvidia driver? therefore I should keep puting the -0.0005 in the code.

Ummm

Krash
27th January 2002, 13:21
standard detonator drivers require the -0.0005 to be still.
I think Matrox, and possibly ATi, don't.
Some third-party drivers for nvidia cards may not either, I haven't looked into it