I need to add, at runtime, some vertex to an entity. I need it since I want to create (similar to a simple 3D editor) the possibility to extrude an object in my game. Can I add vertex or polygons to an entity? How? Thank you!
Ive never used it myself but check out the manual on ent_getmesh() and ent_setmesh() If you are capable of understanding the D3DXMESH structures that is. Its way beyond me at this stage.
Best of luck.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
Re: How to add vertex to a model (entity)?
[Re: EvilSOB]
#227356 09/13/0822:3009/13/0822:30
But cant you use it to ent_getmesh(), then change it (ie add the vertex you want), and then ent_setmesh() to replace the old one with your modified one.
Remember Im going just off the manual's description, Ive never played with meshes.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial