Jump to content

How to view this .DDS file from playground


ozRocker
 Share

Recommended Posts

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?

Link to comment
Share on other sites

  • 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.

                          rON2MwE.png

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...