About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
adding meshes
Author Message
RedcrowProd Offline
Bronze Supporter

Post: #1
adding meshes
hey,

pretty simple question, can you create a Mesh in the EE and set it up in the meshes cache manually ? if so, how ?

i am trying to manually set up a mesh for an animatable object with custom mesh, but it seems that it requires a meshptr and its not using my mesh ?

thanks smile
(This post was last modified: 11-10-2019 04:07 AM by RedcrowProd.)
11-10-2019 03:14 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: adding meshes
Mesh mesh;
MeshPtr mesh_ptr=&mesh; // this is OK
11-10-2019 04:27 AM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Bronze Supporter

Post: #3
RE: adding meshes
oh yeah ok i was doing it this way, i just didnt read the comment correctly ^^'

// get object file name ID (this will return ID of the object file name assuming that the object is stored in the cache and its file name was created using 'EncodeFileName')

so it doesnt generate a UID by itself, and only populate with encodefilename smile

thanks !
11-10-2019 03:59 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: adding meshes
No, this doesn't set any ID, just remembers pointer.
The object will not be stored inside cache.
MeshPtr is a pointer, it can point to elements inside cache and outside.
11-10-2019 05:28 PM
Find all posts by this user Quote this message in a reply
Post Reply