Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
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
0 registered members (), 1,280 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Dynamically Add Vertex #154478
09/16/07 09:16
09/16/07 09:16
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Hello all,

Does anyone know if it is possible to dynamically add/delete vertices at runtime? I know there is vec_to_mesh and vec_for_mesh, but these only move around existing ones.

Thanks,
Adoado.


Visit our development blog: http://yellloh.com
Re: Dynamically Add Vertex [Re: adoado] #154479
09/16/07 12:07
09/16/07 12:07
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
i guess no
i'd like to be proven wrong

Re: Dynamically Add Vertex [Re: Shadow969] #154480
09/16/07 12:12
09/16/07 12:12
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Hmm, you could achieve this by rendering your vertex data with DX. I'm not skilled with this stuff, so I can't give you any example but maybe someone else can.

Re: Dynamically Add Vertex [Re: TWO] #154481
09/16/07 13:08
09/16/07 13:08
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
To do this you would need access to the mesh; specifically the ability to lock the vertex and index buffers. you could then add or destroy vertices. If you can modify the mesh in memory, you probably wont need need to render it yourself.

you do need to use Direct3D commands, so you need a either a dll or lite-C (I think lite-C gives this ability).


Sphere Engine--the premier A6 graphics plugin.
Re: Dynamically Add Vertex [Re: Matt_Aufderheide] #154482
09/17/07 06:49
09/17/07 06:49
Joined: Jul 2006
Posts: 503
Australia
A
adoado Offline OP

User
adoado  Offline OP

User
A

Joined: Jul 2006
Posts: 503
Australia
Ah awesome thanks, I thought I would need to use DirectX functions rather than any "native" functions in 3dgs. I have never had any experience with straight Direct3D code though, does anyone know of any way to do this? (I think Lite-C can)

Thanks,
Adoado.


Visit our development blog: http://yellloh.com

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