Bonjour Kévin,

I try to create a cubeMap on a sphere. It works but all my images (.bmp) on 
cubemap's faces are flip ...

You can flip images with osg::Image::flipHorizontal() or osg::Image::flipVertical(). I don't know why they come out that way by default though. Perhaps your BMPs assume (0,0) is at the top-left corner instead of the bottom-left? I don't know if there's something in the format that specifies this.

In addition, with .dds files I have this error for each file :

I have no idea about these errors, I've used other tools to convert images to .dds compressed files and could use them without problems. I'll let others help with this part.

And, last question : someone has succeed to load one file .dds which contains the cubemap ???

Well, I've loaded one image that contained a cube map (both in .dds and in .png format) but that's because it was a vertical cross cube map and I extracted each face manually from the image. I don't know if there's some special format for .dds files containing cube maps, I just used it as a normal image and did whatever I wanted with it just like any other image file.

If there *is* a special format for a cube map contained in a .dds file, perhaps the OSG .dds loader doesn't handle it correctly? I don't know, but you could investigate by checking the code. Again, perhaps someone else has more insight into this.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to