Adjusted 3D model scales and swapped Indica for MAA_Bottle
This commit is contained in:
@@ -8,7 +8,7 @@ export function Models() {
|
|||||||
|
|
||||||
// Load the actual FBX models from the public folder
|
// Load the actual FBX models from the public folder
|
||||||
const heroFBX = useFBX('/3dmodels/MANUAL/Cavins/GEE_TIN.fbx');
|
const heroFBX = useFBX('/3dmodels/MANUAL/Cavins/GEE_TIN.fbx');
|
||||||
const featureFBX = useFBX('/3dmodels/Full_AI/Indica/Indica_easy.fbx');
|
const featureFBX = useFBX('/3dmodels/MANUAL/MAA_Bottle/MAA_Bottle.fbx');
|
||||||
const ctaFBX = useFBX('/3dmodels/MANUAL/Fairever/Carton.fbx');
|
const ctaFBX = useFBX('/3dmodels/MANUAL/Fairever/Carton.fbx');
|
||||||
|
|
||||||
// Clone them so we don't mutate the cached originals
|
// Clone them so we don't mutate the cached originals
|
||||||
@@ -29,8 +29,8 @@ export function Models() {
|
|||||||
heroRef.current.position.y = THREE.MathUtils.lerp(0, 10, offset * 3);
|
heroRef.current.position.y = THREE.MathUtils.lerp(0, 10, offset * 3);
|
||||||
heroRef.current.position.x = THREE.MathUtils.lerp(3, -5, offset * 3);
|
heroRef.current.position.x = THREE.MathUtils.lerp(3, -5, offset * 3);
|
||||||
|
|
||||||
// Auto-scale down based on typical FBX sizing
|
// GEE_TIN increased by 50% (0.05 -> 0.075)
|
||||||
const scaleBase = 0.05;
|
const scaleBase = 0.075;
|
||||||
heroRef.current.scale.setScalar(THREE.MathUtils.lerp(scaleBase, 0, offset * 3));
|
heroRef.current.scale.setScalar(THREE.MathUtils.lerp(scaleBase, 0, offset * 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,7 +58,8 @@ export function Models() {
|
|||||||
ctaRef.current.position.y = THREE.MathUtils.lerp(-10, -1, ctaProgress);
|
ctaRef.current.position.y = THREE.MathUtils.lerp(-10, -1, ctaProgress);
|
||||||
ctaRef.current.position.x = THREE.MathUtils.lerp(5, 2, ctaProgress);
|
ctaRef.current.position.x = THREE.MathUtils.lerp(5, 2, ctaProgress);
|
||||||
|
|
||||||
const scaleBase = 0.05;
|
// Carton decreased by 70% (0.05 -> 0.015)
|
||||||
|
const scaleBase = 0.015;
|
||||||
ctaRef.current.scale.setScalar(scaleBase);
|
ctaRef.current.scale.setScalar(scaleBase);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user