If I check a radio button for the first time I'm getting a short freezing. Checking them a second time everything runs super smooth. I think because they are now in the browser-cache. Any chance of a preload here?
var insideMap1 = THREE.ImageUtils.loadTexture( 'insideMap1.jpg' ); var insideMap2 = THREE.ImageUtils.loadTexture( 'insideMap2.jpg' ); var insideMap3 = THREE.ImageUtils.loadTexture( 'insideMap3.jpg' ); $("input[name='opt1']").change(function() { if ($("#radio1").is(":checked")) { material[ "inside" ].map = insideMap1; } if ($("#radio2").is(":checked")) { material[ "inside" ].map = insideMap2; } if ($("#radio3").is(":checked")) { material[ "inside" ].map = insideMap3; } });