@Alessandro10 Hmm, are you starting to learn DirectX?
well 3D boxes consist of point called vertexes.
Well a Menu background made here consist of 4 vertexes,
each vertex can have its own color
So a 3D box can have as little as 8 vertexes
//Discussion
Let your opinions.
Last edited by Alessandro10; 04-08-2011 at 08:26 PM.
@Alessandro10 Hmm, are you starting to learn DirectX?
well 3D boxes consist of point called vertexes.
Well a Menu background made here consist of 4 vertexes,
each vertex can have its own color
So a 3D box can have as little as 8 vertexes
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
Alessandro10 (04-08-2011),urdadboy (04-10-2011)
@topblast Yes I'm studying...........
I'm thinking how will I do .........
urdadboy (04-10-2011)
boxes are like...well....boxes lol
if u want only a 2d box, as topblast said, then just make a border class for it from the menus, but a 3d box would require many different "vertexes"(as topblast ALSO said). a vertex is basically an angle that can go many different ways, with many different lines connecting to it, actually more like a point for everything to come to.
so u just draw these points around the 8 corners of the player models and then draw lines connecting them.
pretty simple, yet confusing, depending on how u think about it.
| Buy Premium MC accounts CHEAP Click here |
Respected seller.
Check my vouches in the first post of the above MC account thread ^
markoj (04-09-2011)
I will give you some source from me game
the source below allows you to draw 3D objects.
this is just a Structure but everyone kinda have to make structures for them.
[highlight=C++]
struct sVertex3D
{
float x, y, z;
DWORD color;
enum FVF
{
FVF_Flags = (D3DFVF_XYZ | D3DFVF_DIFFUSE)
};
};
[/highlight]
sVertex3D Veri[6] =
{
{0.0f ,0.0f , 0.0f, (0xffff0000)},
{56.0f ,0.0f , 0.0f, (0xffff0000)},
{56.0f ,0.0f , 56.0f, (0xffff0000)},
{0.0f ,0.0f , 56.0f, (0xffff0000)},
};
example of a little 3D square
I just like programming, that is all.
Current Stuff:
- GPU Programmer (Cuda)
- Client/Server (Cloud Server)
- Mobile App Development
Alessandro10 (04-08-2011)
@topblast change your nick for TopTheBest "Blast" rsrs
look for simple d3d mesh examples https://www.codesampler.com/dx9src/dx9src_7.htm
then create the mesh and set the translation world matrix with settransform
really not that difficult
[YOUTUBE]6I-g0Z0-zfw[/YOUTUBE]
Last edited by SNal2F; 04-09-2011 at 12:04 AM.
@SNal2F thats cool as Fuck
Last edited by SNal2F; 04-09-2011 at 12:17 AM.
I have a d3d 3d box source on my laptop but I don have it atm