Git Product home page Git Product logo

Comments (3)

mvaligursky avatar mvaligursky commented on July 17, 2024

Hi @AlexAPPi .. could please provide more details of what you're trying to do? I'm not sure I understand this issue.

from engine.

AlexAPPi avatar AlexAPPi commented on July 17, 2024

Hi @AlexAPPi .. could please provide more details of what you're trying to do? I'm not sure I understand this issue.

Hi! I use the same buffer for the model, and modify it, every time it is unloaded to the GPU, the engine makes a copy of the same buffer, although there is no point in doing this, because this is the same buffer.

from engine.

mvaligursky avatar mvaligursky commented on July 17, 2024

The Mesh has two possible ways to use it, see here: https://api.playcanvas.com/classes/Engine.Mesh.html

  • a simple way - see example at that link
  • a more manual way of using Vertex and Index buffer directly

What you can do is to create Vertex and Index buffer yourself and upload data to them as needed. In this case, you would not use mesh.setIndices() and mesh.update(), but manage buffers yourself.

I'll close this as I believe this is what you need, but please re-open if I missed something.

from engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.