Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,578 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | chip programmers | 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