Is there anyway to increase the logo size on the Baseball Cap filter

  • ok so follow my steps open the BaseBallCapController Script

    you should see this if the image is to small just right click and open to a new tab

    after opening in lines 37 and 38

    change it from this


    var uvWidth = remap(script.logoSize, 0, 1, 0.4, 0.8);

    var uvHeight = remap(script.logoSize, 0, 1, 0.2, 0.5);


    to this


    var uvWidth = remap(script.logoSize, 0, 1, 0.4, 1.0);

    var uvHeight = remap(script.logoSize, 0, 1, 0.2, 0.8);


    then adjust the scroller to your preference 



    Comment actions Permalink
  • Thanks for the explanation Samuel!

    Hey norimous , you can also open the logo in photoshop for example , increase the png and remove the gaps to the edges, if there are any.




    Comment actions Permalink
  • norimouscuzimqu3ntin's method won't work because the space will be too small no matter what the resolution of the image is so I'm not sure why he said that.  Just follow samo's guide.  Sorry for the confusion.

    Comment actions Permalink
  • Hey Noah Lupowitz

    I dont exactly know what texture he is using. But by upscaling and reducing the space between the edges, it does indeed work.

    At least for it works perfectly fine 🤔 





    Comment actions Permalink
  • Hey, sorry for the confusion, cuzimqu3ntin, but in the hat template, upscaling in Photoshop will only increase the resolution, and having a higher resolution won't make the logo appear larger on the hat if he plugs it into the example script. This is because the scale is set to "W: 0 - 1, 0.4 - 0.7, H: 0 - 1, 0.2 - 0.4 in the script, which controls how big the logo appears on the hat." The only way to increase the size of the logo on the hat would be to modify that script so the maximum size is higher, just like samo demonstrated, and then increasing it in the "Baseball Cap Controller" scene object. "Upscaling it" in Photoshop will only make the logo appear more pixelated and make the lens size higher, without actually changing the size on the hat at all. Also, if there are spaces on the sides that are a solid color, they can be removed, most of the time, by adjusting the "Logo Blend mode."

    Comment actions Permalink
  • Hey Noah Lupowitz, I think SirQu3ntin was referring primarily to making sure the logo extended to the image bounds, not increasing the image resolution (although this would effectively increase the resolution of the logo itself). Removing any excess gap around the logo would indeed lead to an increase in logo size on the hat because the logo would cover more of the image area. If the logo already extends to the image bounds, then Samuel's method is the best approach.

    Comment actions Permalink
  • Hey modelsbymike3d and Noah Lupowitz

    Its exactly how mike just described. But you are absolutely right, if there are no "gaps" around the logo then he has to take Samuels method! Thanks for letting me know guys :D


    Happy Creating,


    Comment actions Permalink
Have a comment?

Please sign in to leave a comment.

We're here to help! We just need a little bit of information...

What system are you using?

Have you downloaded the latest version of Lens Studio?

Please download the latest version of Lens Studio. If you still run into this issue, please come back and report it!

Is this issue causing Lens Studio to crash?

What system do you run Lens Studio on?



Follow the next steps to help us solve your issue:

  • Copy and paste this text into your TerminalCommand Window
    open ~/Library/Preferences/Snap/Lens\ Studio/ %LOCALAPPDATA%\Snap\Lens Studio Copy Text
  • Press ReturnEnter to run the command. The Lens Studio folder will automatically open
  • Prepare to upload your files: zip the "Log" Folder by right-clicking and choosing "compress."
    Locate the Log.txt file right above it.

    Attach a screenshot of the issue:



What is this most relevant to?

Please enter a brief description of your issue:

Thanks for submitting this issue.

Unfortunately, it's likely due to the operating system or hardware you're using – since they don't meet the system requirements for Lens Studio.

Still, we hear you loud and clear, and are logging the issue in case there's ever a workaround we can provide!

Minimum Requirements

Operating System: Windows 10 (64 bit); MacOS 10.11+

Hardware: Minimum of Intel Core i3 2.5Ghz or AMD Phenom II 2.6Ghz with 4 GB RAM; Intel HD Graphics 4000 / Nvidia GeForce 710 / AMD Radeon HD 6450 or better; screen resolution of 1280x768 or higher

We'll try to resolve this issue as soon as possible. Thanks for letting us know about it!

Keep an eye out for a followup email from us. We may have a couple more questions for you, or we might already have a solution to offer.

Happy creating!