Jump to content

  • Log In with Google      Sign In   
  • Create Account

Nik02

Member Since 18 Dec 2002
Online Last Active Today, 09:50 AM

Posts I've Made

In Topic: Working with animated GIFs

16 June 2016 - 04:49 AM

Note that GIF is a paletted format.

 

A complication arises if you try to combine multiple gifs with different palettes. What colors should you choose then? You could, of course, combine using a generic palette (for example, "web 216"), but the quality is likely to suffer a lot as a consequence if the sources used custom palettes.

 

Aside from the palette issue, Frob's link is useful in your task.


In Topic: alpha value of texture always be 1.0f

09 June 2016 - 05:02 AM

You're also not unlocking the rect so the data would never go to the texture anyway.

I gave him the benefit of doubt on this issue :)


In Topic: alpha value of texture always be 1.0f

08 June 2016 - 11:13 PM

That code does not set the texel values, because you are using a read-only lock.


In Topic: Shape interpolation?

04 June 2016 - 08:44 PM

Two completely arbitrary meshes cannot be smoothly interpolated between. The minimum common attribute is the topology (number of holes and/or open edges). When you do have the same topology, you can try to parametrize the surfaces in 2 dimensions to establish the common mapping between them. After you have that, it is relatively easy to actually interpolate between the geometries.

In Topic: Detection of blurred vs. sharp image areas (in-focus/out-of-focus distinction)

31 May 2016 - 02:35 PM

Also note that if you have, for example, a flat-colored surface, neither the human eye nor any algorithm can distinguish whether or not it is in focus :)

The DCT approach would determine the image to be fully blurred in this case, since the low-frequency coefficients would get the most contribution.

PARTNERS