Re: [osg-users] Problem with my cubemap

2009-05-15 Thread Robert Osfield
HI Roland, On Fri, May 15, 2009 at 4:40 PM, Roland Smeenk wrote: > I've originally contributed the .dds cubemap loading capability that you > rejected. From that time I've been merging my changes with the latest head. > Cubemaps can still be loaded succesfully, but I agree that it may be better

Re: [osg-users] Problem with my cubemap

2009-05-15 Thread Roland Smeenk
Hello Robert, I've originally contributed the .dds cubemap loading capability that you rejected. From that time I've been merging my changes with the latest head. Cubemaps can still be loaded succesfully, but I agree that it may be better to split osg::Image into multiple classes for the differ

Re: [osg-users] Problem with my cubemap

2009-05-15 Thread Jason Daly
Robert Osfield wrote: A template for an ImageArray class could be the ImageSequence class that already holds a list of images internally. Others are welcome to dive in an add this ImageArray class ;-) I thought about it while I was writing the .vtf loader, but I was under time pressure, an

Re: [osg-users] Problem with my cubemap

2009-05-15 Thread Robert Osfield
On Fri, May 15, 2009 at 3:34 PM, Jason Daly wrote: > Jean-Sébastien Guay wrote: >> >> 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

Re: [osg-users] Problem with my cubemap

2009-05-15 Thread Jason Daly
Jean-Sébastien Guay wrote: 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. DDS files can co

Re: [osg-users] Problem with my cubemap

2009-05-14 Thread Ümit Uzun
Hi Kevin; If you have problem creation on cubeMap you can use Cube Map Generater to create your dds file on http://developer.amd.com/gpu/cubemapgen/pages/default.aspx But as Jean said I don't know you can success on loading dds formated cubemap on OSG, it might not be supported. HTH, Regards.

Re: [osg-users] Problem with my cubemap

2009-05-14 Thread Chris 'Xenon' Hanson
Jean-Sébastien Guay wrote: > 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 i

Re: [osg-users] Problem with my cubemap

2009-05-14 Thread Jean-Sébastien Guay
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

[osg-users] Problem with my cubemap

2009-05-14 Thread Kévin FAURE
Hi, I try to create a cubeMap on a sphere. It works but all my images (.bmp) on cubemap's faces are flip ... In addition, with .dds files I have this error for each file : notify(WARN)<<"Texture::getCompressedSize(...) : cannot compute correct size of compressed format ("