1. [Discussion] 3D Boxes

//Discussion

2. @Alessandro10 Hmm, are you starting to learn DirectX?

well 3D boxes consist of point called vertexes.
each vertex can have its own color
So a 3D box can have as little as 8 vertexes

3. The Following 2 Users Say Thank You to topblast For This Useful Post:

4. Originally Posted by topblast
@Alessandro10 Hmm, are you starting to learn DirectX?

well 3D boxes consist of point called vertexes.
each vertex can have its own color
So a 3D box can have as little as 8 vertexes
@topblast Yes I'm studying...........

I'm thinking how will I do .........

5. The Following User Says Thank You to LionelMessi10 For This Useful Post:

6. PlZ post a C0d3 4 3D boxes. I want leech

7. 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.

8. Originally Posted by CAFlames
PlZ post a C0d3 4 3D boxes. I want leech
if(playerisfound)
{
if(enemy_box == 1)
Draw3DBox(enemy, 100, 100, Red)
}

Win.

9. The Following 2 Users Say Thank You to [E]xiled For This Useful Post:

NOOBJr (04-08-2011),topblast (04-08-2011)

10. Originally Posted by wolffang0000
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.
can i say this?

you just talked a WHOLE ball of SHIT!
you just said what i said .... only made it hurt people head.

11. The Following User Says Thank You to topblast For This Useful Post:

markoj (04-09-2011)

12. Originally Posted by topblast

can i say this?

you just talked a WHOLE ball of SHIT!
you just said what i said .... only made it hurt people head.
Im also ButtHurt by it

13. 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

14. The Following User Says Thank You to topblast For This Useful Post:

LionelMessi10 (04-08-2011)

15. @topblast change your nick for TopTheBest "Blast" rsrs

16. Originally Posted by Alessandro10
@topblast change your nick for TopTheBest "Blast" rsrs
topblast sounds more epic

17. 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

18. @SNal2F thats cool as Fuck

19. Originally Posted by whit
@SNal2F thats cool as Fuck
ya i would have never done it either if it wasnt for the anticheat hooking ssdts GDI functions for some reason DrawTextA would get detected because it was calling one of those functions.

it will also be better to find a the players yaw for the boxes

20. I have a d3d 3d box source on my laptop but I don have it atm

Page 1 of 2 12 Last