GLB ViewerGLB Viewer
Glb Viewer: Why glTF Textures Flip After OBJ Conversion

Glb Viewer: Why glTF Textures Flip After OBJ Conversion

Glb Viewer, Gltf to Obj, Supavoxel

If you use a glb viewer to inspect converted models, this guide explains why textures may appear upside down and how to determine whether the converter or importer caused it.

An upside-down texture does not necessarily mean the image or mesh is broken. I check the exported OBJ before touching its UVs, because the flip may already have happened during conversion.

Why glTF Textures Look Upside Down After OBJ Conversion

The short version

  • glTF and OBJ measure the vertical texture coordinate from opposite ends of an image. A converter must account for that difference.
  • SupaVoxel’s glTF to OBJ converter flips the vertical UV coordinate for OBJ, so do not flip those UVs again on import.
  • Check the OBJ with its MTL and texture images before deciding where the error occurred. An OBJ opened alone cannot tell you whether its texture mapping is right.
  • If the export looks correct in a viewer but wrong in your target app, investigate that app’s import settings before editing the mesh or image.

Why a texture can turn upside down

A texture is an image; UV coordinates tell a mesh which part of that image to show on each face. The horizontal coordinate is U, and the vertical coordinate is V. glTF measures V from the top of the image, while OBJ uses the bottom as its origin. If a converter copies the UV numbers without adjusting them, the image maps vertically in the wrong direction.

The necessary fix is to reverse V during export. That is a coordinate conversion, not an image edit. It leaves the source texture useful for the original glTF while writing UVs that make sense to an OBJ reader.

The tricky part comes afterward. If the converter has already reversed V and an importer applies another flip, the texture can look wrong again. Seeing an upside-down label on a model is therefore not enough evidence to justify flipping its UVs by hand. First establish how the exported OBJ appears outside the app where you noticed the problem.

Convert without adding another flip

For this check, I keep the source files and the first OBJ export unchanged. That gives me a reference if I later need to compare an importer setting or a manual UV edit.

  1. Supply the complete glTF asset to the converter. A separate .gltf may refer to a .bin and image files; a .glb or an embedded .gltf can stand on its own. If the source has side files, select them together or provide a zip of the export folder.
  2. Leave Include materials & textures on. The download then contains an OBJ, an MTL and PNG texture files. Turning that option off produces geometry, normals and UVs, but no material-and-texture package to inspect.
  3. Extract the download into a folder and leave the exported names intact. The OBJ names its MTL file, and the MTL names its PNGs. Renaming an image can make a correct UV layout appear untextured.
  4. Open the OBJ as exported, before applying an importer’s UV or image-orientation options.

The glTF to OBJ converter page

The converter accepts glTF assets and exports an OBJ package with materials and textures when that option is enabled.

This converter already adjusts V for OBJ. I would not select a second “flip UVs” option merely because the source was glTF. I would test the exported package first, then change one setting at a time if the target app displays it incorrectly.

Inspect the OBJ before changing its UVs

SupaVoxel’s OBJ viewer lets you open the exported OBJ with its MTL and images, or supply them as a zip, to judge the texture outside your target application. That makes it a useful checkpoint: you are looking at the converted files, not at the source glTF or an importer’s interpretation of them.

The OBJ viewer page

The viewer shows the OBJ with its supplied material files and offers wireframe and clay views for inspecting the mesh.

Pick a recognizable feature in the texture: lettering, an asymmetric mark, or a patch that clearly belongs near the top of the object. Orbit the model and check whether that feature lands where expected. Then use the result to narrow the problem:

  • Correct in the viewer, wrong in the target app: Keep the exported OBJ untouched for now. Look for an import option that reverses texture orientation or modifies UVs, and compare the result with that option disabled.
  • Gray in the viewer: Do not diagnose a UV flip yet. Supply the MTL and images with the OBJ. The viewer can open an OBJ without them, but it shows missing side files in an amber note.
  • Wrong in both places: Confirm that you supplied the intended image and the MTL from the same export. Compare against the source asset before editing UVs; a mismatched texture can resemble a mapping fault.

You can also switch to a neutral clay view to separate the shape from the material. If the silhouette looks right but a printed label is inverted, the issue concerns the texture path or mapping, not the basic mesh shape. Wireframe helps you inspect topology, but it does not, by itself, prove that an image is oriented correctly.

Check what the OBJ package can actually carry

A successful conversion does not mean every glTF material property has an OBJ equivalent. Here is what matters when troubleshooting the appearance of this export:

  • UV coordinates — kept, with V adjusted to OBJ’s convention.
  • Base color — written through the MTL’s Kd value and map_Kd texture reference.
  • Normal texture — written through map_Bump when present.
  • Alpha — written as d.
  • Metallic-roughness, occlusion and emissive data — dropped.

If the color image is positioned correctly but the surface still looks different from the glTF, check which property changed before blaming UV orientation. Missing roughness or metallic behavior is not an upside-down texture. Likewise, a normal-map difference can alter the apparent lighting without moving a label or painted edge on the base-color image.

An OBJ also depends on external files for its materials. The mesh can open while the expected image is absent. Keep the OBJ, MTL and PNGs together when passing the result to another app, and check what that app reports as missing before making a new conversion.

Keep packaging separate from mapping

A .gltf file may be readable JSON accompanied by a buffer and images; a .glb puts the scene data in one binary file. SupaVoxel’s GLB vs glTF guide is useful if you need to identify which package you received before converting it. That distinction tells you which source files to supply. It does not change the glTF-to-OBJ UV issue: the destination still needs OBJ-style texture coordinates.

This is why I treat missing source files and inverted textures as different diagnoses. A missing .bin can stop a separate-file glTF conversion. A missing image can leave a model without its intended texture. Neither is fixed by flipping UVs. Gather the source asset, make a fresh export, inspect the complete OBJ package, and only then consider an importer-specific correction.

The practical rule is simple: make the converted OBJ your checkpoint. If it displays correctly with its MTL and textures, preserve it and troubleshoot the next app. Editing a known-good export makes it harder to tell which step introduced the flip.

FAQ

Should I flip the PNG image instead of the UVs?

Not as a first fix. The converter adjusts the vertical UV coordinate for OBJ while exporting the texture files. Inspect the complete OBJ package first; otherwise, flipping the image may compensate for one app while breaking another.

Why does the OBJ open but show no texture?

OBJ materials and images are separate files. Open the OBJ together with its MTL and texture PNGs, or use a zip containing them. A gray preview alone does not establish that the UVs are wrong.

Does converting a GLB instead of a glTF avoid this problem?

No. GLB and glTF are ways to package glTF scene data. When the destination is OBJ, the converter still has to account for the difference in vertical texture-coordinate convention.