0

Elevators (white) between Earth and a Tethered Ring

I'm developing a Three.js model of the Tethered Ring, which is a space access and transportation infrastructure project. I would like to add elevator cables (white) between the Tethered Ring and Earth only where there is land. I'd like to do this by:

  1. Retrieving the color of the Earth's texture where the elevator cable's "ray" intersects the front face of the Earth's texture,
  2. Comparing that color to blue, and
  3. Adding the cable object only where the color is "not blue".

I would be very appreciative if someone could provide sample code for step 1!

(Note: This earlier post from 6 years ago gives clues but doesn't go into sufficient detail. ref: ThreeJS How to pick the intersection point color of an object)

phil1008
  • 39
  • 4
  • please provide a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) so we can run and test it. – Parisa.H.R Nov 10 '21 at 19:30
  • 1
    I could put the project on GitHub, and provide a link. Would that work for you? – phil1008 Nov 10 '21 at 20:38
  • Yes , I will clone it. – Parisa.H.R Nov 10 '21 at 20:48
  • Can you try this link: https://github.com/philipswan/TetheredRing? Note that there were file size limits that prevented me from uploading a texture and the contents of the node_modules folder. – phil1008 Nov 10 '21 at 22:08
  • you should use `gitignore` which means that ignore that folder. because each person by the command `npm install` can create that. I will see your repo. – Parisa.H.R Nov 11 '21 at 00:35
  • Thanks! BTW, I added some instructions on how to use keyboard shortcuts to help with navigation. – phil1008 Nov 11 '21 at 19:10
  • 1
    I also uploaded the right Earth texture to my website and provided instructions on how to retrieve it. – phil1008 Nov 14 '21 at 23:29

0 Answers0