Original Post
Hey all,
So I know that there are a lot of security risks to allowing javascript code in a browser to access the hard drive and thus it isn't allowed. This is a problem for me as I am currently implementing a terrain system for a 3D browser game. Most terrain systems stream data from the hard drive as needed since the entire terrain is too large to fit into DRAM.
I wonder if there is any way around this other than having very small terrain files? Is there some type of virtual memory that can be accessed and isn't sitting in DRAM?
What if user's pre-download a file? Are there ways to read/write to certain local files?
As a third option I suppose the server could send data as needed to the client. This may be the best (or only solution) to this problem. However, for networked games there will already be a strain on what can be sent across the wire, so this may not be the optimal solution.
Any pointers or "thinking outside of the box" is appreciated.
Thanks!
So I know that there are a lot of security risks to allowing javascript code in a browser to access the hard drive and thus it isn't allowed. This is a problem for me as I am currently implementing a terrain system for a 3D browser game. Most terrain systems stream data from the hard drive as needed since the entire terrain is too large to fit into DRAM.
I wonder if there is any way around this other than having very small terrain files? Is there some type of virtual memory that can be accessed and isn't sitting in DRAM?
What if user's pre-download a file? Are there ways to read/write to certain local files?
As a third option I suppose the server could send data as needed to the client. This may be the best (or only solution) to this problem. However, for networked games there will already be a strain on what can be sent across the wire, so this may not be the optimal solution.
Any pointers or "thinking outside of the box" is appreciated.
Thanks!