Javascript functions that can be used to create planet models from equirectangular projection images
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
planet_view.js

README.md

planet_view

Javascript functions that can be used to create planet models from equirectangular projection images

Functions use tree.js library

Usage

controling_planet function usage

<html>
<head>
<meta charset=utf-8>
<style>
    #planet_view {margin: 0 auto; width: 350px;	height: 350px;}
</style>

<script src="js/three.min.js"></script>
<script src="js/OrbitControls.js"></script>
<script src="js/planet_view.js"></script>
</head>
<body>

<div id="planet_view"></div>

<script>
controling_planet(
	'planet_view',
	'imgs/equirectangular.png',
	{axis_angle: 0.25, background: 0xffffff}
).start();
</script>

</body> 
</html>

rotating_planet function usage

<html>
<head>
<meta charset=utf-8>
<style>
    #planet_view {margin: 0 auto; width: 350px;	height: 350px;}
</style>

<script src="js/three.min.js"></script>
<script src="js/planet_view.js"></script>
</head>
<body>

<div id="planet_view"></div>

<script>
rotating_planet(
	'planet_view',
	'imgs/equirectangular.png',
	{axis_angle: 0.25, background: 0xffffff}
).animate();
</script>

</body> 
</html>