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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:34:14+00:00 2026-06-13T19:34:14+00:00

I am using 3d modifiers https://github.com/foo123/MOD3 to bend a cube. After the geometry is

  • 0

I am using 3d modifiers https://github.com/foo123/MOD3 to bend a cube. After the geometry is updated (vertex positions are changed) the lights are not updated, the cube is still shaded as if nothing changed.
So I tried

cube.geometry.computeVertexNormals()

and

cube.geometry.computeFaceNormals()

but after that the cube is not rendered like a cube anymore but like an “ugly sphere”:

enter image description here

On the left is shading after computeVertexNormals(), on the right is the original shading.

How can I update the shading after the geometry changes?

  • 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-13T19:34:15+00:00Added an answer on June 13, 2026 at 7:34 pm

    If you use MOD3 to modify just the geometry, then you are going to have to update the normals yourself.

    geometry.computeVertexNormals();
    

    Each new vertex normal will be the normalized sum of the face normals of the neighboring faces that share that vertex.

    If you don’t like the way that three.js does it, your only choice is to modify the vertex normals yourself.

    three.js r.85

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

Sidebar

Related Questions

I am using https://github.com/PaulSolt/UIImage-Conversion However, it seems to have a problem on the alpha
I'm using the backbone.layoutmanager project: https://github.com/tbranyen/backbone.layoutmanager#readme can some one please post a sample with
I'm using KnoockoutJS and the validation plugin from here, https://github.com/ericmbarnard/Knockout-Validation . By default, validation
I'm using a modified version on juno ( http://github.com/breily/juno/ ) in Google App Engine.
I am using a modified version php-sdk version 3.0.0 sample code at github.com/facebook within
I am using the script from this answer https://stackoverflow.com/a/1681410/22 to insert a launch application
I'm using gviz_api (google-visualization-python) to build some line charts. http://code.google.com/p/google-visualization-python/ I'e edited a line
I've installed RoR in my MacOS X using this guide http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/ Here my versions:
I cannot reproduce the same results as provided at https://www.mercurial-scm.org/wiki/Backout After I performed hg
I am using the Syntax Highlighter built with Javascript by Alex Gorbatchev (http://alexgorbatchev.com/SyntaxHighlighter/download/) 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.