Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    尘绪呀~
    @Redlnn
    thanks
    尘绪呀~
    @Redlnn
    image.png
    Why is there a black border when I click on the canvas
    尘绪呀~
    @Redlnn
    I solved this problem myself
    I added a css style to canvas. 'outline: none;'
    humboldt123
    @humboldt123
    How do I use this in a website?
    Is there something I put in a script tag?
    Haowei Wen
    @yushijinhun
    humboldt123
    @humboldt123
    Right
    <script type="text/javascript" src="../bundles/skinview3d.bundle.js"></script>
    I need this file but in that html file 2 directories up there isn't a bundle folder.
    humboldt123
    @humboldt123
    Nevermind, I just built the thing wrong. Sorry.
    humboldt123
    @humboldt123
    I get this error: SecurityError: The operation is insecure.
    Haowei Wen
    @yushijinhun
    <script type="text/javascript" src="../bundles/skinview3d.bundle.js"></script>

    I need this file but in that html file 2 directories up there isn't a bundle folder.

    You can use https://unpkg.com/skinview3d@2.0.0-alpha.4/bundles/skinview3d.bundle.js

    Haowei Wen
    @yushijinhun

    I get this error: SecurityError: The operation is insecure.

    If you are using file: protocol, you might have violated the same origin policy

    humboldt123
    @humboldt123

    My site is: https://how-many-pumpkins-has-andres-macroed.glitch.me/

    and the code I'm using is this and its telling me its insecure.

      <script type="text/javascript" src="https://how-many-pumpkins-has-andres-macroed.glitch.me/bundles/skinview3d.bundle.js"></script>
    Haowei Wen
    @yushijinhun

    My site is: https://how-many-pumpkins-has-andres-macroed.glitch.me/

    and the code I'm using is this and its telling me its insecure.

      <script type="text/javascript" src="https://how-many-pumpkins-has-andres-macroed.glitch.me/bundles/skinview3d.bundle.js"></script>

    try

    skinViewer.loadSkin({
        src: "...",
        crossOrigin: "anonymous"
    })
    I will change the default value of crossOrigin to anonymous next alpha release.
    Sorry that I didn't realize this problem.
    Haowei Wen
    @yushijinhun
    Okay, I've released v2.0.0-alpha.5 in which this bug is fixed. Now CORS is on by default, so you don't need to specify crossOrigin manually.
    Sean Boult
    @Hacksore
    @yushijinhun I do have some changes in my branch that I will submit a new PR for, as storybook was using the libs dist'd build
    now I ahve it pointing at the source for hot reloads
    however, I do see that we had .js extensions referenced in the code for imports. What that a feature or a bug :)
    image.png
    Haowei Wen
    @yushijinhun
    @Hacksore I'd like to discuss whether we really need storybook. IMO, https://bs-community.github.io/skinview3d is enough for demonstration and testing.
    Haowei Wen
    @yushijinhun
    The most useful feature I found in storybook is that, the configuration can be stored in a URL and shared.
    We can add this feature to the demo page, and it shouldn't cost much effort.
    Sean Boult
    @Hacksore
    Well, another good reason for storybook is we can use it to develop as well. Our current demo we only use to statically (pushed to gh-pages) show how to use features.
    Haowei Wen
    @yushijinhun
    @Hacksore deployment can be done easily using GitHub Actions
    I will open a PR (hopefully tonight) to solve all these things
    Haowei Wen
    @yushijinhun

    Well, another good reason for storybook is we can use it to develop as well. Our current demo we only use to statically (pushed to gh-pages) show how to use features.

    Now the demo page is in examples/ on master branch. And it is deployed to gh-pages on every push.

    Sean Boult
    @Hacksore
    @yushijinhun can you publish the latest changes on npm?
    Haowei Wen
    @yushijinhun
    okay. skinview3d@2.0.0-alpha.9 is published.
    Sean Boult
    @Hacksore
    Ty
    Haowei Wen
    @yushijinhun
    @Hacksore I decompiled Minecraft using yarn, and found that the model we have been using is wrong
    Sean Boult
    @Hacksore
    @yushijinhun nice! Maybe add cape to that doc as well?
    Haowei Wen
    @yushijinhun
    currently working on it
    MFeldpausch
    @MFeldpausch
     WARN  Compiled with 1 warnings
    
    
     WARN  in ./pages/index.vue?vue&type=script&lang=js&
    
    "export 'default' (imported as 'skinview3d') was not found in 'skinview3d'
    Trying to use SkinView3d using Nuxt.js, and getting this error. The code I have is
    import skinview3d from "skinview3d/bundles/skinview3d.bundle.js";
        this.sv = new skinview3d.SkinViewer({
          canvas: this.$refs.skinCanvas,
          width: 300,
          height: 400,
          skin: "../media/skin.png",
        });
    MFeldpausch
    @MFeldpausch
    Well, I think I fixed it with
    const skinview3d = require("skinview3d");
    Haowei Wen
    @yushijinhun
    @MFeldpausch You can also use import * as skinview3d from "skinview3d";
    Ricardo
    @RicardormDev
    Is there a way to add armor?
    Sean Boult
    @Hacksore
    @RicardormDev Armor has not been implemented but PR's are welcomed
    Gaming1111
    @Gaming1111
    kép.png
    Hi all! I can't build this project. I got this error
    Binrate
    @binrate:matrix.org
    [m]
    Hey everyone can this be used with node canvas
    Sean Boult
    @Hacksore
    @binrate:matrix.org see bs-community/skinview3d#52
    Faav
    @ignGrudges_twitter
    Yo anyway to flip the character upside down and the controls I want to make people like Dinnerbone upside down but when I use css the controls don’t get flipped.