Problem with size texture and interpolation

asked 2020-01-20 09:47:38 -0500

dregner gravatar image

updated 2020-01-20 10:01:34 -0500


I am using gazebo to develop some optical measurement system and I have to get a good proportion for textures in the object. I made a pyramid of 25 x 12.5 mm and unwrapped a texture in order to have 1 square per millimeter, so I made a texture with a resolution of 25 x 200 (doesn't matter the height for unwrap) and using blender I set the position as the images below. image description

When I open the object in Gazebo 7 it appears blurred, as the image below. Resolution of the image is 25 x 200 pixels.

image description Image width 25 pixel
Object width 25 mm
Final Resolution 1 px//mm.

When I rescale the image for 250 x 2000 pixels (10 times), I get the result I wanted but I don't understand why.

image description Image width 250 pixel
Object width 25 mm
Final Resolution 10 px/mm.

As it is possible to count, the height of object has 25 squares in both images, but the first case gets blured. Anyone can help me explaining why this happens?

edit retag flag offensive close merge delete


excuse me, i don't have answer to your request, but i have a question for you . how you configure your camera to 10 pixel per millimetre.

aliloz gravatar imagealiloz ( 2020-10-02 13:02:06 -0500 )edit

Knowing the focal length and distance from camera to object you know the size of your camera's field of view and you can express the size of a pixel in meters or millimetres like this website explain to you: Ground Sample Distance

dregner gravatar imagedregner ( 2020-11-18 17:44:25 -0500 )edit