ozRocker Posted February 27, 2018 Share Posted February 27, 2018 There's a DDS file used in a lot of the skybox examples that's hosted on the Playground host. Its this one http://playground.babylonjs.com/textures/environment.dds I want to view the actual image to see how its laid out but I can't find any free software out there that will open it (desktop and online viewers). They all say it has a corrupt header. Does anyone know how to view this particular image? Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 27, 2018 Share Posted February 27, 2018 PVRTexTool works for me. It is displaying the largest mipmap, which is not very big. See download instructions in compressed textures doc. Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 27, 2018 Share Posted February 27, 2018 Link from Doc, https://community.imgtec.com/developers/powervr/tools/pvrtextool/ Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted February 27, 2018 Share Posted February 27, 2018 In case you have Photoshop (of course it's not free neither open source...), you can install this (old but still working on photoshop CC) Nvidia plugin. I think it allows a better visualization than PVRTextool. I just find this little software, Windows Texture Viewer, which seems very light! Quote Link to comment Share on other sites More sharing options...
ozRocker Posted February 28, 2018 Author Share Posted February 28, 2018 Windows Texture Viewer shows the colours perfectly but for some reason PVRTexTool has some weird highlights in there. I'm trying to create my own .DDS skybox using PVRTexTool but I can't get it working on iPhone, even though environment.dds works. I tried without encoding and with encoding DTX, ETC and PVRTC. I get errors like: Unsupported FourCC code - DX10 Unsupported FourCC code - PTC4 Compressed textures are not supported on this platform Does anyone know how to create a .DDS skybox that works on iOS devices. Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted February 28, 2018 Share Posted February 28, 2018 For cubeTexture I use IBLBaker like said in the doc, it works perfectly (just open an hdr, and then save - don't forget to write the .dds extension while saving) and IBLBaker make its magic, and you get your dds files. Quote Link to comment Share on other sites More sharing options...
efxlab Posted February 28, 2018 Share Posted February 28, 2018 I notify for have dds conversion right, I use cmft command line from GUI app of cmftStudio, Quote Link to comment Share on other sites More sharing options...
JCPalmer Posted February 28, 2018 Share Posted February 28, 2018 Ah, iPhone. That only supports PVRTformat not PXT. BJS only supports DXT in a DDS. You need to use a .ktx container & follow doc I linked above. Edit: cube textures were never tested for .ktx, so might not work. Not sure why this needs to be compressed anyway. It is a tiny file. Maybe just do skyboxes without doing a compressed form. I unfortunately do not know how. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
ozRocker Posted February 28, 2018 Author Share Posted February 28, 2018 4 hours ago, JCPalmer said: Ah, iPhone. That only supports PVRTformat not PXT. BJS only supports DXT in a DDS. You need to use a .ktx container & follow doc I linked above. Edit: cube textures were never tested for .ktx, so might not work. Not sure why this needs to be compressed anyway. It is a tiny file. Maybe just do skyboxes without doing a compressed form. I unfortunately do not know how. environment.dds works on iPhone. Does that mean that it wasn't compressed at all? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 1, 2018 Share Posted March 1, 2018 it is not compressed yep Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.