Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Ehnn · Apr 29, 2015 at 05:27 AM · webgl

AppEngine and big WebGL.data files

Hey, I'm trying to set up a WebGL export to App Engine. Short version: where does Unity call the WebGL.data file, and can the location of it be changed? And especially can it be done for cross domain items

Longer version: My WebGL.data file is 80 mb in size, or 30 when compressed

The issue is that that App Engine doesn't allow file hosting of files larger than 32 mb, so the 80mb file can't be uploaded, and AEG compresses files itself so you can't flag the 30 mb file as "compressed".

What I've done is set up the file on Cloud Storage and fetch it using blobstore.Send whenever the WebGL.data url is called. This works perfectly for the 80mb file.

 func handleWebGLRequest(w http.ResponseWriter, r *http.Request) {
     c := appengine.NewContext(r)
 
     blobKey, err := blobstore.BlobKeyForFile(c, "/gs/<url>/WebGL.data")
     if err != nil {
         fmt.Fprintf(w, "Problem: cannot find WebGL.data")
         return
     }
 
     blobstore.Send(w, blobKey)
 }

However, bandwidth, and worse, loading times for the 80mb files are very long. I'd like to upload the compressed file and have it sent over. this almost works, the file is on cloud storage marked as compressed.. except sending it through code makes the content-encoding header "disappear" and it doesn't look at the file as a compressed one.

Alternatively if one tries to mark the file as public and simply redirect to the url provided by cloud storage, this again almost works, but a cross-domain policy problem pops up

 http.Redirect(w, r, "http://storage.googleapis.com/<url>/WebGL.datagz", http.StatusMovedPermanently)

So my question is, is there a place I can change where the WebGL.data file is called? maybe if I can make it cross-domain-able this issue will finally be resolved. Or any other suggestions

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Mouse won't unlock in WebGL build but does in the editor 1 Answer

Calling JS WebGL plugins from browser JavaScript 0 Answers

Weird black overlay(look like shadow) in WebGL build 0 Answers

Scrolling WebGL Canvas on Mobile / Tablet 0 Answers

How to clear all the players that have played my games playerprefs? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges