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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:55:59+00:00 2026-05-26T03:55:59+00:00

Right now I’m using XNA 4.0 with Windows Phone Developer Tools to create a

  • 0

Right now I’m using XNA 4.0 with Windows Phone Developer Tools to create a textured cube using a predefined quad class on MSDN.

The front/back/left/right faces of the cube will draw fine (for every cube that I make), however the top and bottom faces won’t render. The rasterizer state’s cull mode is set to none and the quad that represents the top face exists, and it seems as if it would draw, but for some reason it won’t.

Is there a problem with my code, or is this not happening for some other reason?

Here’s the code:

  • Game1.cs: http://pastebin.com/RHU7jNXA
  • Quad.cs & Cube.cs: http://pastebin.com/P9gz5q4C
  • 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-26T03:55:59+00:00Added an answer on May 26, 2026 at 3:55 am

    It’s because your top and bottom faces have a height to them. They should have 0 height.

    Here you are passing in a value as height:

    Faces[4] = new Quad(topFaceOrigin, Vector3.Normalize(Vector3.Down), Up, Size, Size);
    

    And then here in Quad constructor it’s being used to give incorrect LowerLeft & LowerRight values:

    LowerLeft = UpperLeft - (Up * height);
    LowerRight = UpperRight - (Up * height);
    

    I would recommend changing how you create all your quads; each face really should have different parameters. Right now all your faces are passing in practically the same stuff.

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

Sidebar

Related Questions

Right now to populate my GridViews I'm using a extended BaseAdapter class on each
Right now I am using this code to download files (with a Range header).
Right now I'm using Controller_Template would like to have RESTful URLs though, is it
Right now I've been using GDB to disassemble a binary file and check out
Right now, I have three models Post, Comment and User (using Devise ) associated
Right now any new UIViewController added to my storyboard needs to have a class
right now i m using adobe live media encoder to stream live webcam video
Right now I have a mysql database with a table userphone(id, phone, type,userid) and
Right now, I'm using this to allow a file to be moved to our
right now I'm creating an array and using: render :json => @comments This would

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.