« first day  last day (15 days later) » 

7:12 AM
Yeah....an I'm more than willing to give upvotes and accept the answer. You're one such a good guy...:-)
Yeah....and I'm more than willing to give upvotes and accept the answer. You're one such a good guy...:-)
Is this the HTML code that works?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My first three.js app</title>
<style>
body { margin: 0; }
</style>
</head>
<body>

<script src="https://cdn.jsdelivr.net/npm/three@0.143/build/three.min.js"></script>
<script src=".\three.js-master\three.js-master\examples\js\controls\OrbitControls.js"></script>
<script>


// import * as THREE from 'three'
// import { OrbitControls } from "./three.js-master/three.js-master/examples/jsm/controls/OrbitControls.js"


const scene = new THREE.Scene();
 
 
1 hour later…
8:44 AM
Well, does it work for you? I can try it a bit later
 
9:08 AM
Holy shiiiit!...I got it working!.....OrbitControl.js is sure very hard to use!
This is the code I used to make it work:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My first three.js app</title>
<style>
body { margin: 0; }
</style>
</head>
<body>

<script src="https://cdn.jsdelivr.net/npm/three@0.143/build/three.min.js"></script>
<script src=".\three.js-master\three.js-master\examples\js\controls\OrbitControls.js"></script>
<script>


const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
camera.position.set( 0, 0, 50 );
I really thank you brother, for your service, help and guidance. I really thank you. I'm so ecstatic!....
But damn...importing OrbitControl.js is so hard to do.....
 
 
3 hours later…
12:09 PM
My pleasure :)
 

« first day  last day (15 days later) »