Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 513475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:25:35+00:00 2026-05-13T07:25:35+00:00

This maybe a noob question, however, I haven’t been able to find a suitable

  • 0

This maybe a noob question, however, I haven’t been able to find a suitable answers:

I have an object in OpenGL ES (in fact, an UV mapped export from Blender) and I’d like to apply two textures to it. To be precise, I have a earth-like sphere and I would like to add two textures (a day-side and a night-side) to it.

I had thought through alpha mapping, it should be possible to programmatically fade one texture and display the other during run-time so that my globe becomes a realistic simulation of the earth. I have the math behind it, i.e. creating the alpha-map for each face of the object is not the problem.

Any hints/pointers how this can be achieved?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T07:25:35+00:00Added an answer on May 13, 2026 at 7:25 am

    The effect you’re looking for can be achieved with texture combiners in OpenGL ES 1.1. By default, each texture unit that you enable is set up to multiply the output of the previous stage by the color of the current texture. In the case of the first texture unit, the previous stage is simply the vertex color. By changing the texture combiner state, you can add, subtract, interpolate, or take dot products of your texture samples instead.

    The second and third examples on the linked page, which interpolate between two textures, should be fairly similar to what you’re trying to do. If you compare the source code for the two examples, you should see that they’re nearly identical, except for the configuration for GL_SRC2_RGB/GL_SRC2_ALPHA and GL_OPERAND2_RGB/GL_OPERAND2_ALPHA. What’ll you’ll need to specify here depends on where/how you’re generating the blend factor for the two textures. You can source from the vertex color by specifying GL_PRIMARY_COLOR for GL_SRC2_*, which isn’t shown in the examples.

    (Note: the page I linked to recommends using GLSL instead of texture combiners. This is unfortunately not an option if your software needs to run on older hardware that doesn’t support OpenGL ES 2.0.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.