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 9047263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:52:08+00:00 2026-06-16T11:52:08+00:00

I am attempting to create a X by Y checkerboard (by this, I simply

  • 0

I am attempting to create a X by Y checkerboard (by this, I simply mean that I could set any size for X and Y) using OpenGL ES 2.0, but I’m wondering how I go about creating the pattern.

I have already got the MVP matrix working well (presently I’m just using a solid colored rectangle), it correctly renders appropriate to the screen, centered and in full view (and each box [-created a couple test boxes] is square, regardless of the over-all size). The world coordinates are simple 1×1 spaces for each grid space, and the view and projection matrices bring it into perfect view.

What I can’t work out is applying that checkerboard pattern. I considered first using a single rectangle as I am now, and applying a fragment shader, but I couldn’t work out how to make that work given that the grid could be any number of spaces in either direction (and no longer in world coordinates by that point). I also considered creating a background and then adding a colored square every other space, but that seemed resource intensive for what should be a pretty simple job.

What would be the best way to go about this?

  • 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-06-16T11:52:09+00:00Added an answer on June 16, 2026 at 11:52 am

    I would use mod function and remainder to select the white or black
    and poke this into the color.

    Look for some examples at the famous GLSL Sandbox site.

    See also figure 1.2
    http://webstaff.itn.liu.se/~stegu/TNM084-2012/proceduraltextures.pdf

    mod(floor(10.0*s) + floor(10.0*t), 2.0)

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

Sidebar

Related Questions

I attempting to create custom tabs using this . But when I try to
I'm attempting to create an xquery expression that will return selected nodes but will
I'm attempting to create a table for monitoring purposes using the following script: $w3wppriv
I am attempting to create a report, utilizing a matrix, that only displays columns
I'm attempting to create a single Controller class to handle all foreseeable surveys that
I'm attempting to create a cascading dropdown based on the Knockout.js Cart example but
I am attempting to create an unwind segue but nothing will connect to it
I'm attempting to create a url with a query string using a route, like
I'm attempting to create a modal on a form that calls a CFC to
I'm attempting to create a column in css that is 100% height of the

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.