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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:23:30+00:00 2026-06-14T11:23:30+00:00

I am displaying three objects on the screen and I am able to select

  • 0

I am displaying three objects on the screen and I am able to select (click) these objects (right now I am just changing the color of the objects on click). All I want to do is when a user left clicks on one of the objects that object should come in front of camera (also want to rotate and scale it when coming to front in a nice animation). And when user right clicks on screen the object goes back to its place (default object position).
I have searched web for terms like zoom object, focus object, but couldn’t find any help regarding the scenario I explained above.

Please help me with the basic concepts How I can achieve this using THREE.js.

Regards
ZB

  • 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-14T11:23:31+00:00Added an answer on June 14, 2026 at 11:23 am

    Your problem is that you can’t zoom the object, you could zoom-in the camera or bring the object to be in front of the camera.
    First Approach “zoom-in camera”:

    if ( intersects.length > 0 ) {
        // set camera in with some gap;
        camera.position.z = intersects[0].object.position.z - 100;
        camera.position.x = intersects[0].object.position.x;
        camera.position.y = intersects[0].object.position.Y;
    }
    

    Second approach “bring object to the front of the camera”:

    if ( intersects.length > 0 ) {
        // bring object;
        intersects[0].object.position.z = camera.position.z - 100;
        intersects[0].object.position.x = camera.position.x;
        intersects[0].object.position.y = camera.position.y;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am displaying some objects on my page using THREE.js. I am able to
I have a DataTemplate that is displaying objects with three fields, e.g.: Name =
Is there a tool or trick for displaying all the connections between objects in
I am displaying my array objects in a pickerview. My array contains {one,two,three,four,five} When
I am having trouble in creating and displaying multiple game objects on the screen
I have one query. Through while loop I am displaying three random songs from
I just want to do a simple animation (for example in C++ using OpenGL)
I have three buttons (button1, button2, button3), displaying respectively 1, 2 and 3 on
I've got about 5000-7000 objects in my core data store that I want to
I have a List box that I want to display a list of objects,

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.