Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Loading large Meshes

  1. #11
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    Location
    NRW, Germany
    Posts
    75

    Re: Loading large Meshes

    Do you know how much time it took to create the buffers -- that is, the time to go from having the mesh stored in JavaScript arrays to having it sitting up on the graphics card?
    About 0.015 seconds, fast enough for static meshes. A bit slow for larger dynamic data.

  2. #12
    Member
    Join Date
    Oct 2009
    Location
    London, UK
    Posts
    90

    Re: Loading large Meshes

    So I guess that would be 60fps for that mesh alone, and would scale roughly linearly? (Apologies for my ignorance!)

  3. #13
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    Location
    NRW, Germany
    Posts
    75

    Re: Loading large Meshes

    and would scale roughly linearly?
    yes, at least it should be in O(n) class

  4. #14
    Junior Member
    Join Date
    Nov 2009
    Posts
    1

    Re: Loading large Meshes

    If performance/memory usage is important, you might want to look at the latest XML open source
    parsing lib called vtd-xml

    http://vtd-xml.sf.net

  5. #15
    Member Coolcat's Avatar
    Join Date
    Oct 2009
    Location
    NRW, Germany
    Posts
    75

    Re: Loading large Meshes

    @barriers: Without JavaScript implementation this will not be helpful here...

  6. #16
    Junior Member
    Join Date
    Apr 2011
    Posts
    1

    Re: Loading large Meshes

    Thanks for the effort Coolcat

  7. #17
    Junior Member
    Join Date
    Jul 2011
    Posts
    1

    Re: Loading large Meshes

    Whats the fastest way to load large binary data?
    I have files with up to 2gb binary data with this format:
    float32 float32 float32 uint8 uint8 uint8 uint8 and again from the beginning.

    At the moment I request the binary file content with ajax and then I use jDataView to parse it value by value. This takes about 40 seconds for 353 files with a total size of 20mb. I'm using a local webserver so connection speed shouldn't be the issue.

  8. #18
    Junior Member
    Join Date
    Jun 2010
    Posts
    7

    Re: Loading large Meshes

    Browser support is spotty at this point, but I've been having a good deal of luck lately with requesting binary files using xhr.responseType = "arraybuffer"; and then sending vertex/index data directly to the GPU with sub arrays of that buffer. There's endianness issues to contend with if you want it to be cross-platform, and the data has to already be in the right format/order, but otherwise I can't possibly think of a faster way to move buffers into video memory.

    For binary data that you do need to manipulate, I've found DataViews to be pretty efficient. I even binary parsing utility around them. Again, though, support is a bit spotty.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. multiple meshes
    By giugio in forum Developers Coding:Beginner
    Replies: 0
    Last Post: 03-30-2011, 02:56 AM
  2. compressed meshes?
    By enot in forum WebGL - General
    Replies: 1
    Last Post: 06-04-2010, 05:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •