Code Monkey home page Code Monkey logo

pacmodels's Introduction

3D Models for PacDocs

It's cool to add a 3D model to your own web personal project, but it also faces a memory leak caused by the 3D model, and the memory leak is a very painful thing for me, a rookie, and it can't be investigated at all. Looking at the document example of Three.js, I found that the force is embedded through <iframe />, so this 3D model project for iframe embedding was created by combining Nuxt and three.js. Furthermore, it serves as an exhibitor as well.

How to use ๐Ÿ”ง

You can select the models you want through routing parameters, whether to display the selection, full screen, and color mode buttons. Alternatively, you can consider using it as a showcase or a glTF viewer.

Parameters include:

group (string) (Optional)

Warning

This parameter doesn't need to be filled in! The ?model= you input will automatically recognize its group.

  • Engines (default)
  • Automobiles
  • Misc
  • To be added...

model (string) (โš ๏ธ case-sensitive โš ๏ธ)

  • Engines (See above, no input required)

    • Duramax (default)
    • AudiS8
    • AudiR8
    • AstonMartinV12
    • BugattiW16
    • ChevroletCorvetteV8
    • CumminsX15Truck
    • DodgeChallengerV8
    • DodgeMagnumV10
    • FordMotorEngine
    • IndustrialDiesel
    • MarinePropulsion
    • NissanAltimaHybrid4Cylinder
    • CarEngine1
    • CarEngine2
    • CarEngine3
    • V12CarEngine
    • V8CarEngine
  • Automobiles

    • Batmobile
    • DefenderWorksV8
    • Defender90Prep
    • Defender90V8
    • RangeRover
  • Misc

    • NASAShuttleLaunchPad
    • PacmanArcadePocket

nobutton

This parameter determines whether to display the bottom buttons.

Warning

If the route params includes nobutton the bottom button will not be displayed regardless of its value, unless nobutton=false in which case the bottom button will be shown.

  • false (default)

nozoom

This parameter determines the feasibility of model scaling.

Warning

nozoom the same as stated above: nobutton

  • false (default)

noshadow

This parameter determines whether to render the shadow or not. As previously stated.

  • false (default)

examples ๐Ÿ“ƒ

You can view the model by visiting the website directly. https://model.crybabyaq.love/?model=AudiS8&nobutton

Similarly, you can also embed it in your personal website or web project through <iframe />:

<iframe
  width="100%"
  height="100%"
  src="https://model.crybabyaq.love/?model=audiS8&nobutton"
  title="Audi S8 V8 Engine"
  frameborder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;"
  style="color-scheme: light;"
/>

Credits ๐Ÿ’—

All car engine models are downloaded or purchased from Sketchfab.

Made with Love โค๏ธ

TODO ๐Ÿ“

Features:

  • Supporting the glTF viewer, allowing for the preview of locally uploaded glTF files

  • To enhance individual models, the addition of a ground surface can be incorporated

  • Add a notification to provide an indication when the model file is large in size

  • Display the original author of the model and a Sketchfab link at the top when showcasing the model

Fix:

  • When selecting a model for page navigation, include the existing parameters for a seamless transition.

LICENSE

MIT

pacmodels's People

Contributors

pacmandoh avatar renovate[bot] avatar

Stargazers

 avatar Haowen Zhang avatar AiQing avatar OctaviusDou avatar

Watchers

 avatar

pacmodels's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • @nuxt/ui ^2.16.0
  • @vueuse/components ^10.9.0
  • @vueuse/core ^10.9.0
  • @vueuse/nuxt ^10.9.0
  • three ^0.164.1
  • @iconify-json/carbon ^1.1.32
  • @iconify-json/cbi ^1.1.11
  • @iconify-json/heroicons ^1.1.21
  • @iconify-json/ph ^1.1.13
  • @iconify-json/simple-icons ^1.1.101
  • @nuxt/devtools ^1.2.0
  • @nuxt/eslint ^0.3.12
  • @types/three ^0.164.0
  • eslint ^9.2.0
  • bumpp ^9.4.1
  • changelogithub ^0.13.7
  • nuxt ^3.11.2
  • vue ^3.4.27
  • vue-router ^4.3.2
  • vue-tsc ^2.0.16

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.