Giter Club home page Giter Club logo

Comments (10)

soundofjw avatar soundofjw commented on July 20, 2024

I develop primarily on Mac 64 bit and have not seen this problem. Can you send more details or a screenshot?

from monocle-engine.

JoeOsborn avatar JoeOsborn commented on July 20, 2024

The only detail is that I did a fresh 64-bit build in Xcode 4 on Mac OS 10.6. Here's the behavior: http://joe.lt3.us/me_bug.png

from monocle-engine.

soundofjw avatar soundofjw commented on July 20, 2024

Curious. Are you running through the TestSelector app? Also, any details on your machine?

http://ploader.net/files/f41e8e6547ab2960b43dd6739ee0dcd5.png

from monocle-engine.

JoeOsborn avatar JoeOsborn commented on July 20, 2024

Yep, I am. The machine is a 13" MacBook Air without any unusual modifications. Text also shows up as white rectangles (though they are of the appropriate sizes, etc, and render fine in 32-bit mode). I think this is because they're drawing as white-on-alpha, which comes out to white-on-white.

from monocle-engine.

soundofjw avatar soundofjw commented on July 20, 2024

Hmm - I am on a MacBook Pro myself.

The only place I can see that it would cause that issue is OpenGL/OpenGLTextureAsset.cpp or stb_image.

The code here is:
unsigned char* data = stbi_load(filename.c_str(), &w, &h, &n, STBI_rgb_alpha);

If I replace that to STBI_rgb and tell OpenGL it's just an RGB, I can recreate your screenshot. So the alpha channel isn't being loaded properly for you in 64bit... winces

from monocle-engine.

soundofjw avatar soundofjw commented on July 20, 2024

Oh! Wait a minute, did the TestSelector screen render text render, telling you "Press 1 for ..." etc?

from monocle-engine.

JoeOsborn avatar JoeOsborn commented on July 20, 2024

It shows as white rectangles of varying sizes -- white on alpha, thus white on white.

Could it have to do with the switch statement at OpenGLCraphics.cpp:88? It's missing a case for BLEND_NONE. A long shot, I guess. Or could it have to do with some ignored 64-bit size/precision/signedness warnings?

from monocle-engine.

soundofjw avatar soundofjw commented on July 20, 2024

Oh, there we go.

REPRODUCE: Build as Release configuration and run on XCode4. (You can do this quickly by attempting to profile)

from monocle-engine.

soundofjw avatar soundofjw commented on July 20, 2024

Fixed with commit 73cabbb

from monocle-engine.

JoeOsborn avatar JoeOsborn commented on July 20, 2024

Awesome! Just wanted to let you know this fix worked a trick for me as well. Good detective work!

from monocle-engine.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.