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 (TipmyPip, OptimusPrime, AndrewAMD), 14,882 guests, and 6 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
Building vertices natively? #310512
02/15/10 08:16
02/15/10 08:16
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline OP
Serious User
DJBMASTER  Offline OP
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Hi, is it possible to construct a 3D object programatically by using an array of coordinates, in lite-c (pure)?

I'm trying to build my own blocks in lite-c and I have an array/list of vectors which represent the 8 vertices of the block.

I'm assuming I'll need to use vertex/index buffers but could I use D3DVERTEX structs somehow?

Please don't refer me to ent_setvertex.

Re: Building vertices natively? [Re: DJBMASTER] #310516
02/15/10 08:21
02/15/10 08:21
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Yes, you can build a mesh completely from vertices and triangle lists. Use ent_setmesh. But you need good knowledge about the structure of a DirectX mesh.

Re: Building vertices natively? [Re: jcl] #310520
02/15/10 08:25
02/15/10 08:25
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline OP
Serious User
DJBMASTER  Offline OP
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Thanks, I have a limited knowledge on D3D, but i'll see what I can do.


Moderated by  old_bill, Tobias 

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