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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:06:05+00:00 2026-06-13T08:06:05+00:00

I am trying to draw a cube that uses 6 different images for textures,

  • 0

I am trying to draw a cube that uses 6 different images for textures, one for each face. I would like to illuminate the cube with a point light source.

I’m using the canvas renderer because that is the platform available on iOS.

I understood that the Lambert was the way to go. I built my materials array using MeshLambertMaterial.

I managed to get the cube with different faces to render, but without illumination working, see this link.

Here I used:

cube = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial());

(You need to use Firefox to view this, it looks horrendous in Safari on the Mac (but that’s a different issue), but it’s fine in the iPhone simulator.)

I also got a version working where the illumination works, but the faces all have the same colour, the texture images appearing to be lost, see this link.

Here I used

cube = new THREE.Mesh(geometry, new THREE.MeshLambertMaterial());

Unfortunately I can’t get textured faces and lighting working together.

The code differs on only that one line.

I must be doing something wrong, but I can’t figure out what it is, all my googling has been to no avail. I’d be grateful if somebody could point me in the right direction.

BTW thanks to the author for this brilliant software.

  • 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-13T08:06:06+00:00Added an answer on June 13, 2026 at 8:06 am

    Unfortunately, it turns out that MeshLambertMaterial isn’t supported by the CanvasRenderer.

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

Sidebar

Related Questions

im trying to make a cube with a different texture on each face. I
I'm trying to make a method that will draw a cube with a specified
I am trying to draw a textured cube using just 8 vertices and one
I am trying to draw a cube of size 5*5*5 with six diffrent face
I'm trying to render a colored cube after rendering other cubes that have textures.
[SOLVED - See answer in bottom] I'm trying to draw a cube with perspective,
I'm trying to draw a simple line graph which would use values from the
I'm trying to draw a few images on a canvas, to make sure the
Hi I am trying to draw a cube of size 5*5*5 with six diffrent
I'm trying to draw PNGs onto BitmapData that is transparent. I create my BitmapData

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.