3D

By: Stas Melnikov

Email: melnik909@ya.ru

Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, please write on mail. Also leave feedback! Your opinion is very valuable for me! You help me to improve my work!Thanks so much!

Settings

Parameter Description
Parameter renderElement Descriptionelement for creation of canvas
Parameter canvasW Description width canvas(px or 'fullwidth')
Parameter canvasH Description height canvas(px or 'fullheight')
Parameterleft Description path to the left texture
Parameterright Description path to the right texture
Parametertop Description path to the top texture
Parameterbottom Description path to the bottom texture
Parameterfront Description path to the front texture
Parameterback Description path to the back texture
Parametermsg Descriptionthe message about mistakes (string)
Parameterresponsive Descriptiontrue or false(default: false)
Parametercallback Description the function working after loading of model (false or function)
ParameterMethod init Description initilization method
ParameterMethod supportWebGL Descriptioncheck of the browser on support of WebGl

Init code:

var options = {

	renderElement : document.body.querySelector("#block"),

	canvasW: 600,
	canvasH: 300,
	wheel: 0.3,

	left: "textures/left.jpg",
	right: "textures/right.jpg",
	front: "textures/front.jpg",
	back: "textures/back.jpg",
	top: "textures/top.jpg",
	bottom: "textures/bottom.jpg",	
	responsive: false
}

Panoarma3d.init(options);