About Store Forum Documentation Contact



Post Reply 
Loading Meshes Dynamically
Author Message
llynx Offline
Member

Post: #1
Loading Meshes Dynamically
How do you load new meshes (not objs) dynamically?
09-12-2011 10:57 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Loading Meshes Dynamically
MeshPtr m="mesh.mesh";
Mesh m2; m2.load("mesh.mesh");
09-12-2011 11:09 PM
Find all posts by this user Quote this message in a reply
llynx Offline
Member

Post: #3
RE: Loading Meshes Dynamically
(09-12-2011 11:09 PM)Esenthel Wrote:  MeshPtr m="mesh.mesh";
Mesh m2; m2.load("mesh.mesh");

Thanks! (I had this before but I didn't see the models because issue was I wasn't updating the active index of an array).


Another question, is the only way to modify vertex positions of a mesh on the GPU through vertex shaders? Or is there a way to modify them through code (thats not horribly slow like modifying the MeshBase then using .setRender())
(This post was last modified: 09-13-2011 05:34 AM by llynx.)
09-13-2011 12:44 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Loading Meshes Dynamically
Set render has additional parameter that can disable mesh optimization
But It's still slow
Direct editing of MeshRender is not currently supported
09-13-2011 07:01 AM
Find all posts by this user Quote this message in a reply
llynx Offline
Member

Post: #5
RE: Loading Meshes Dynamically
(09-13-2011 07:01 AM)Esenthel Wrote:  Set render has additional parameter that can disable mesh optimization
But It's still slow
Direct editing of MeshRender is not currently supported

Without the ability to directly edit the MeshRender, what would be the most efficient way to render a dynamic mesh (in my case 100k+ polygons that all have very specific paths)?
(This post was last modified: 09-15-2011 06:35 PM by llynx.)
09-15-2011 06:34 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Loading Meshes Dynamically
I'll add editing of MeshRender to the roadmap
09-15-2011 06:36 PM
Find all posts by this user Quote this message in a reply
Post Reply