Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When adding new technologies, I am missing the 3d model of the computer. #161

Open
nothing9537 opened this issue Aug 30, 2024 · 4 comments

Comments

@nothing9537
Copy link

nothing9537 commented Aug 30, 2024

image
image
image
image

The problem will lie in adding new technologies. The maximum of technologies that I managed to find out by “poking” method is 15 balls. When adding more than 15 (16 or more), my computer model turns white. I don't understand why...

The problem goes away if you keep the list of technology balls at 15.

@nothing9537
Copy link
Author

Same thing with Earth Canvas. Seems like ThreeJS not allow to render some amount of canvases. My PC, by the way, is quite powerful. So it's problem in a code

@akarshan2602
Copy link

The reason is that chrome supports only 15 (at most 16) canvases on the desktop version, I myself am trying to figure out a way to display them on mobile as it shows just white box

@akarshan2602
Copy link

akarshan2602 commented Oct 2, 2024 via email

@akarshan2602
Copy link

akarshan2602 commented Oct 2, 2024

const Map = (isMobile, technologies) => {
if (isMobile) {
return technologies.slice(0, 4).map((technology) => (
<div className="w-28 h-28" key={technology.name}>
<BallCanvas icon={technology.icon} />
<p className="flex justify-center text-white font-bold">
{technology.name}
</p>
</div>
));
} else {
return technologies.map((technology) => (
<div className="w-28 h-28" key={technology.name}>
<BallCanvas icon={technology.icon} />
<p className="flex justify-center text-white font-bold">
{technology.name}
</p>
</div>
));
}
};

Link to the file-[https://github.com/akarshan2602/portfolio/blob/main/src/components/Tech.jsx]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants