PR2 / pr2_common

45 stars 79 forks source link

Why is tiff format used in textures of pr2_description? #226

Open KazutoMurase opened 10 years ago

KazutoMurase commented 10 years ago

We want to use pr2_description for web applications, but some kinds of web browser (ex. google chrome, firefox) cannot load tiff format. So textures cannot be displayed in WebGL screen. (We use ros3djs in RobotWebTools). Therefore we suggest that png format (which is compatible with web browser) should be used instead.

I wish to get some opinions.

ahendrix commented 10 years ago

I'm not sure why tiff is used as the image format for textures. I think it would be good to keep the tiff textures around to maintain compatibility with packages that use them.

I have two suggestions on how you can proceed:

  1. Add a build step to pr2_description the converts the tiff textures to png and install them alongside the existing tiff textures. If you submit this as a pull request, it can benefit the rest of the community as well.
  2. Set up your web server to do the tiff to png conversion on the fly whenever a browser requests a texture.