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

  • Home
  • SEARCH
  • 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 8296689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:07:06+00:00 2026-06-08T15:07:06+00:00

PRoblem: i’m trying to create (just for fun) a simple poker card (with a

  • 0

PRoblem: i’m trying to create (just for fun) a simple poker card (with a card back and a card front).
I have two different images, for back and front.
I easily created a Plane geometry with a single texture for both sides, but i really don’t know how to assign a texture for a side and the other texture for the other side…
i tried this (without success 🙁 ):

var textureBack = new THREE.ImageUtils.loadTexture( 'images/cardBack.png' );
var textureFront = new THREE.ImageUtils.loadTexture( 'images/cardFront.png' );      

var material1 = new THREE.MeshBasicMaterial( { map: textureBack } );
var material2 = new THREE.MeshBasicMaterial( { map: textureFront } );

var geometry = new THREE.PlaneGeometry( 90, 110, 1, 1 );            
geometry.faces[ 0 ].materials.push( material1 );
geometry.faces[ 1 ].materials.push( material2 );

var card = new THREE.Mesh( geometry, new THREE.MeshFaceMaterial());

any help, please? 🙂

  • 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-08T15:07:14+00:00Added an answer on June 8, 2026 at 3:07 pm

    You need to place two plane geometries back-to-back.

    First, create a geometry for the front.

    var geometry1 = new THREE.PlaneGeometry( 90, 110, 1, 1 );
    

    Now create another geometry for the back.

    var geometry2 = new THREE.PlaneGeometry( 90, 110, 1, 1 );
    

    Spin it 180 degrees.

    geometry2.applyMatrix( new THREE.Matrix4().makeRotationY( Math.PI ) );
    

    After you load the materials, create the meshes, and add them as children of a “card” object.

    // textures
    var textureFront = new THREE.ImageUtils.loadTexture('images/cardFront.png' );      
    var textureBack = new THREE.ImageUtils.loadTexture('images/cardBack.png' );
    
    // material
    var material1 = new THREE.MeshBasicMaterial( { color: 0xffffff, map: textureFront } );
    var material2 = new THREE.MeshBasicMaterial( { color: 0xffffff, map: textureBack } );
    
    // card
    card = new THREE.Object3D();
    scene.add( card );
    
    // mesh
    mesh1 = new THREE.Mesh( geometry1, material1 );
    card.add( mesh1 );
    mesh2 = new THREE.Mesh( geometry2, material2 );
    card.add( mesh2 );
    

    You’ll have an easier time with this if you use WebGLRenderer.

    Fiddle: http://jsfiddle.net/mdAb7/11/

    Updated to three.js r.69

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

Sidebar

Related Questions

Problem, simple and annoying. Im just trying to print a list of names, collected
Problem: I have two spreadsheets that each serve different purposes but contain one particular
Problem: I have two array where one produce a category and the second produce
Problem PHP session in different folder. I have problem with PHP session. There are
?Problem is pretty simple, I extend Button to create ImageButton, and I extend ButtonSkin
Problem is like this: I have two winapi application's. There is only one way
Problem description I have 6 databases from 6 different machines, and having one cloud
Problem: Trying to create a Mix that is applied to the AVPlayerItem, but it
Problem is I have a very simple WCF REST service, which I wrote starting
Problem: I have a struct of a fixed size that I'm trying to marshal.

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.