« first day (4914 days earlier)      last day (39 days later) » 

11:45 AM
i wonder if i could ask opinion on this, i came across this question, i happened to think it was a good question albeit it probably needed some editing, from a new contributor
-2
A: how to solve CORS problem whith local html three.js?

matt richardshere you can try this to get you started, you'll need the internet to load three.js in this model use the file button to select a file from your local harddrive function url_change(e){ texture(e.target.value); } function file_change(e){ ...

basically as i understand he wants a local html file, to play around with three.js, ie have an html saved on the harddrive, press ctrl-o in the browser, select that file and produce a sun/earth/moon etc
but the original poster is having problems with cors
<style>
body {
  display:flex;
  align-items:top;
  gap:20px;
}
input {
  font-size:16px;
  padding:5px;
  width:250px;
  margin-left:20px;
}
span {
  display:inline-block;
}
</style>

<body>
  <span></span>
  <div>
        url<input onchange='url_change(event)'>
        <br>
        <input type=file onchange='file_change(event)'>
        <br>
        <input type=button value=mesh onclick='mesh(event)'>
  </div>
</body>

<script>

      //images.rawpixel.com/image_png_800/…
if you save that file locally and use the file button, you will be able to do just that
if you find a cors enabled server, you will be able to use a url
should i edit the question and improve my answer, or just leave it and move on
also if i could ask, if i do edit it, am i likely to just receive more negative feedback iyo
 

« first day (4914 days earlier)      last day (39 days later) »