color picker issue - tvp pixel interpolation affects on color picker

Please use this part to report bugs & errors, ask questions & "How to..."
Post Reply
User avatar
ini
Posts: 131
Joined: 14 Aug 2015, 17:47
Contact:

color picker issue - tvp pixel interpolation affects on color picker

Post by ini »

Hello, My friend is working in japanese animation industry.
and when they put the color on the usual image, they use color without transparency. (not antialiased image)

When Image has many pixels(I think according to magnification rate, like default 150%?), tvpaint put the interpolation on the image.
I think It's same as other program, maybe they have their own interplation on what we see from the screen too.

When the image have only two pixel which has (255,255,255) and (0,0,0).
Incase of that the image is minimized, so the interplation is active,
Tvpaint color picker is picking interplated pixel's color, like (64,64,64) which is not exist on original pixel.
on the other hand, other program which is usually they are using is pick only exist pixel color.

I made him a script which is turning the intelpolation off when the picking the color.
but, I think general users can't use that way if they are not know the scripting on tvp.

I'm wondering that it's intentional thing.
e-mail : ini@7ini.com twitter : @Ain_is_
-----------------------------------------
TVPaint 11 PRO STD (11.7.0 - 64bits) on
AMD Ryzen9 5950x, 3080 &2080ti, 128GB ram, Windows10, Cintiq 27 Pro (DTH-271)
TVPaint 11 PRO WIBU (11.5.1 - 64bits) on
Cintiq Mobile Studio Pro 13 (DTH-W1321H), Windows10
User avatar
ini
Posts: 131
Joined: 14 Aug 2015, 17:47
Contact:

Re: color picker issue - tvp pixel interpolation affects on color picker

Post by ini »

for example,
in this img, there is only black(0,0,0) and grey(121,121,121)
tvp_intepolation.png
tvp_intepolation.png (1.78 KiB) Viewed 2845 times
no Anti-Aliasing, but with tvp interpolation, color picker is picking non exist color like (253,253,253) (52,52,52)

in tvp
tvp_intepolation,colopicker.gif
tvp_intepolation,colopicker.gif (81.31 KiB) Viewed 2843 times
photoshop
tvp_intepolation,photoshop.gif
tvp_intepolation,photoshop.gif (91.6 KiB) Viewed 2845 times
clip studio
tvp_intepolation,clip.gif
tvp_intepolation,clip.gif (80.87 KiB) Viewed 2845 times
e-mail : ini@7ini.com twitter : @Ain_is_
-----------------------------------------
TVPaint 11 PRO STD (11.7.0 - 64bits) on
AMD Ryzen9 5950x, 3080 &2080ti, 128GB ram, Windows10, Cintiq 27 Pro (DTH-271)
TVPaint 11 PRO WIBU (11.5.1 - 64bits) on
Cintiq Mobile Studio Pro 13 (DTH-W1321H), Windows10
User avatar
Hironori Takagi
Posts: 313
Joined: 14 May 2018, 10:15
Location: Tokyo, Japan
Contact:

Re: color picker issue - tvp pixel interpolation affects on color picker

Post by Hironori Takagi »

This matter was requested from our studio in the closed section three years ago.

https://forum.tvpaint.com/viewtopic.php?p=121934
(82)Using the color picker when the zoom window is zoomed out may pick up RGB values ​​mixed with the neighbor value
→Not solved

This is one of the reasons why Japanese painters and animators don't use TVPaint.

I attached the link of this video at that time.
It is an explanation of picking up colors from a small screen.
https://youtu.be/7rrZmwMS0LQ
TVPaint 11.7.2(Nov 14 2023), Windows11 Pro, HP Spectre x360 Convertible 14-ea0xxx / TVPaint 11.7.1(Dec 22 2022) Mac OS 11.6, Apple MacBookPro M1 2020
User avatar
ini
Posts: 131
Joined: 14 Aug 2015, 17:47
Contact:

Re: color picker issue - tvp pixel interpolation affects on color picker

Post by ini »

Hironori Takagi wrote: 28 Nov 2022, 02:16 This matter was requested from our studio in the closed section three years ago.
I see, I didn' know that.

Here is the script that I shared to my friend,
check it out If you want, Takagi-san

ちなみにPixelInterpolation後の数字は画面の倍率によって適用されます。
"tv_display PixelInterpolation 0.5"は画面の倍率50%からPixelInterpolationされます。
"tv_display PixelInterpolation 0"はPixelInterpolationなしになるので、
TPデータだとモニター解像度限界以上の大きい場合、或いはそれ以上縮小するとピクセルが消えます。

Code: Select all


tv_GetActiveShape
parse result Shapebackup								
tv_GetActiveTool 
parse result Toolbackup	

tv_getmodifiers
PARSE result shift ctrl alt


tv_GetAPen
parse result Ar Ag Ab a
tv_GetBPen 
parse result Br Bg Bb a

tv_readUserString PIxelInterpoation InterpoationValue
Value=result
if cmp(Value,"")
Value=150
else
end

tv_readUserString PIxelInterpoation onoff
onoffToggle = result
if cmp(onoffToggle,"")

onoffToggle = on
tv_display PixelInterpolation 0
else
	if cmp(onoffToggle,"on")
		tv_display PixelInterpolation 0
		else
		end
end


tv_PicColor
parse result click r g b a

if click ==0
	if cmp(r,Ar) && cmp(g,Ag) && cmp(b,Ab)
	else
	tv_SetAPen r g b
	tv_SetBpen Ar Ag Ab
	end
else 
	if cmp(r,Br) && cmp(g,Bg) && cmp(b,Bb)
	else
	if click == 1
	tv_SetBPen r g b
	tv_SetAPen Br Bg Bb
	end
	end
end

if cmp(onoffToggle,"on")
		value = Value/100
		tv_display PixelInterpolation value
end

 tv_SetActiveShape Shapebackup
 tv_cmd Toolbackup	
e-mail : ini@7ini.com twitter : @Ain_is_
-----------------------------------------
TVPaint 11 PRO STD (11.7.0 - 64bits) on
AMD Ryzen9 5950x, 3080 &2080ti, 128GB ram, Windows10, Cintiq 27 Pro (DTH-271)
TVPaint 11 PRO WIBU (11.5.1 - 64bits) on
Cintiq Mobile Studio Pro 13 (DTH-W1321H), Windows10
User avatar
Thierry
Site Admin
Posts: 2780
Joined: 07 Jan 2013, 08:28

Re: color picker issue - tvp pixel interpolation affects on color picker

Post by Thierry »

ini wrote: 26 Nov 2022, 04:41 for example,
in this img, there is only black(0,0,0) and grey(121,121,121)
tvp_intepolation.png
no Anti-Aliasing, but with tvp interpolation, color picker is picking non exist color like (253,253,253) (52,52,52)

in tvp
tvp_intepolation,colopicker.gif

photoshop
tvp_intepolation,photoshop.gif

clip studio
tvp_intepolation,clip.gif
Hello ini,

I've run some tests on my side and I did manage to reproduce it:
interpolation.png
interpolation.png (58.67 KiB) Viewed 2792 times
My project's dimensions are 2560x1440, and I was at 78,5% zoom ratio, but I was able to have the issue with 103% zoom ratio.

It won't be fixed for next release (hopefully next week) but we'll see what we can do for the next one.
User avatar
ini
Posts: 131
Joined: 14 Aug 2015, 17:47
Contact:

Re: color picker issue - tvp pixel interpolation affects on color picker

Post by ini »

Thierry wrote: 28 Nov 2022, 09:20 but we'll see what we can do for the next one.
Nice to here that!
e-mail : ini@7ini.com twitter : @Ain_is_
-----------------------------------------
TVPaint 11 PRO STD (11.7.0 - 64bits) on
AMD Ryzen9 5950x, 3080 &2080ti, 128GB ram, Windows10, Cintiq 27 Pro (DTH-271)
TVPaint 11 PRO WIBU (11.5.1 - 64bits) on
Cintiq Mobile Studio Pro 13 (DTH-W1321H), Windows10
Post Reply