question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with displaying textures

See original GitHub issue

Until I commented out line 139 in visualizer.py, textures wouldn’t show and instead, models were covered in stripe-like patterns, whose colors were somewhat like the texture they were supposed to have.

System Details: ARMv7 Quad Core CPU @ 1.4GHz Broadcom Videocore-IV GPU 1GB RAM

OS Details: Debian 9 (Stretch)

Here’s the code in visualizer.py that causes the problem. I found that by commenting-out the last line (glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)), pywavefront rendered textures properly:

def bind_texture(texture):
    """Draw a single texture"""
    if not getattr(texture, 'image', None):
        texture.image = load_image(texture.find())

    glEnable(texture.image.target)
    glBindTexture(texture.image.target, texture.image.id)
    glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)
    #glTexParameterf(texture.image.target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
servusdei2018commented, Oct 27, 2019

Thanks @einarf , it works perfectly.

0reactions
einarfcommented, Oct 22, 2019

Please give the new version a go and close this issue if resolved.

Texture repeat can now be controlled with the clamp texture options.

The texture option is set in the mtl file.

map_Kd -clamp on texture.png

Clamping is now disabled by default and detected in visualization.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Texture Issues and How to Fix Them in Blender
In this video, I will help you troubleshoot some common issues with textures and materials in Blender, as well as give you some...
Read more >
Textures display as classified or as if in low resolution
Problem: Textures display as classified or as if in low resolution. Description. Raster images display rough and pixelated in ArcScene, while they display ......
Read more >
How to fix a distorted texture of coloured strips and dots on ...
Check computer's cables and connections · Reboot computer · Reset monitor to default · Push degauss button · Remove all connected devices ·...
Read more >
Issues with getting textures to display properly
I always have a lot of issues with the materials and textures in Blender. Usually I can eventually figure it out but this...
Read more >
OpenGL3 the wrong texture is displaying
You need to store the texture name and the sampler uniform location separate. You should use better naming conventions than "id"; uniform ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found