Skip to content

Commit

Permalink
minor fixes for up and run
Browse files Browse the repository at this point in the history
  • Loading branch information
ramHruday committed May 21, 2024
1 parent bbbfec9 commit 0ea6016
Show file tree
Hide file tree
Showing 8 changed files with 10,893 additions and 5,598 deletions.
16,471 changes: 10,884 additions & 5,587 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Header() {
>
<SidePanelBtn />
<img
src="https://d1io3yog0oux5.cloudfront.net/_095300291fa1e4b626a3ffdcc5fc423f/propetroservices/files/theme/images/header-logo.svg"
src="https://www.propetroservices.com/wp-content/uploads/2023/11/rsz_propetro_blackred.png"
alt="ProPetro logo"
style={{ width: "13.5rem" }}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/site-canvas/site-lights.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function SiteLights(props) {
<>
{/* <pointLight position={[10, 10, 10]} intensity={0.5} />
<spotLight position={[0, -1, -5]} intensity={1} castShadow /> */}
<Environment preset="apartment" />
{/* <Environment preset="city"/> */}
<pointLight position={[10, 10, 10]} intensity={0.5} />
<GizmoHelper alignment="top-right" renderPriority={99}>
<GizmoViewcube />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function SitePlayGround(props) {
const { scene } = useGLTF(MODELS.TRUCK);
const cam = useThree(({ camera }) => camera);
const cont = useThree(({ controls }) => controls);
const PUMPS = props.pumpsData.length ? props.pumpsData : HARD_CODED_PUMPS;
const PUMPS = props.pumpsData.length ? props.pumpsData : HARD_CODED_PUMPS.slice(0,10);
const { copiedScene } = useMemoisedScene(scene);
const invalidate = useThree(({ invalidate }) => invalidate);
const isOnFocus = (pump) =>
Expand Down
1 change: 0 additions & 1 deletion src/components/site-canvas/site-playground/site-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const useMemoisedScene = (scene, isFast) => {
const smallObj = [];
scene.traverse((o) => {
if (!o.isMesh) {
console.log(o);
return;
}
var prevMaterial = o.material;
Expand Down
10 changes: 5 additions & 5 deletions src/config/azure-gltf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export const MODELS = {
TRUCK: "https://site3d.blob.core.windows.net/site3d-models/pmpRed.glb",
MISSILE: "https://site3d.blob.core.windows.net/site3d-models/missileRed.glb",
WELL_HEAD: "https://site3d.blob.core.windows.net/site3d-models/threeWell.glb",
DATA_VAN: "https://site3d.blob.core.windows.net/site3d-models/dVan.glb",
BLENDER: "https://site3d.blob.core.windows.net/site3d-models/blenderVan.glb",
TRUCK: "https://s3.tebi.io/blobs/pump.glb",
MISSILE: "https://s3.tebi.io/blobs/missile_p.glb",
WELL_HEAD: "https://s3.tebi.io/blobs/well_head.glb",
DATA_VAN: "https://s3.tebi.io/blobs/data_van.glb",
BLENDER: "https://s3.tebi.io/blobs/blender_p.glb",
};
// gltf-pipeline -i scene.glb --draco.compressionLevel 3
2 changes: 1 addition & 1 deletion src/shared/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Html, useProgress } from "@react-three/drei";

function Loader(props) {
const { progress, item, errors, loaded } = useProgress();
console.log(errors, item, loaded);
// console.log(errors, item, loaded);
const text = progress >= 97 ? "Almost Loaded" : Math.round(progress) + " %";
return (
<Html style={{ color: "white", width: "3.5rem", textAlign: "center" }}>
Expand Down
1 change: 0 additions & 1 deletion src/shared/truck-cloud-gtlf/truck-cloud-gtlf-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export function TruckCloudGTLFGroup({ ...props }) {

const onClick = (e) => {
e.stopPropagation();
console.log(props.node.name);
if (!props.show) {
return;
}
Expand Down

0 comments on commit 0ea6016

Please sign in to comment.