Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to add vertex to a model (entity)? #227340
09/13/08 21:16
09/13/08 21:16
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Hello,

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!

Re: How to add vertex to a model (entity)? [Re: Alessandro] #227351
09/13/08 21:51
09/13/08 21:51
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
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/08 22:30
09/13/08 22:30
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Thank you! But those functions set a new mesh which substitutes the old one.
They do not allow me add vertex to a mesh. :-(

Re: How to add vertex to a model (entity)? [Re: Alessandro] #227363
09/14/08 00:29
09/14/08 00:29
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
yeh i think you will have to write draw calls or something. Either way i assume it's lower level than lite-c.

Re: How to add vertex to a model (entity)? [Re: DJBMASTER] #227369
09/14/08 01:29
09/14/08 01:29
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
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

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1