Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Hybrid View

  1. #1
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy

    [Discussion] 3D Boxes

    //Discussion

    Let your opinions.

    Last edited by Alessandro10; 04-08-2011 at 08:26 PM.

  2. #2
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    @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

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

    Alessandro10 (04-08-2011),urdadboy (04-10-2011)

  4. #3
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    Quote Originally Posted by topblast View Post
    @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
    @topblast Yes I'm studying...........

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

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

    urdadboy (04-10-2011)

  6. #4
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    PlZ post a C0d3 4 3D boxes. I want leech

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  7. #5
    [E]xiled's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Melbourne, Australia.
    Posts
    180
    Reputation
    84
    Thanks
    273
    My Mood
    Breezy
    Quote Originally Posted by CAFlames View Post
    PlZ post a C0d3 4 3D boxes. I want leech
    if(playerisfound)
    {
    if(enemy_box == 1)
    Draw3DBox(enemy, 100, 100, Red)
    }

    Win.
    | Buy Premium MC accounts CHEAP Click here |
    Respected seller.
    Check my vouches in the first post of the above MC account thread ^

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

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

  9. #6
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    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

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

    Alessandro10 (04-08-2011)

  11. #7
    Wilds's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    522
    Reputation
    1
    Thanks
    170
    My Mood
    Relaxed
    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.

  12. #8
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by wolffang0000 View Post
    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.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

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

    markoj (04-09-2011)

  14. #9
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Quote Originally Posted by topblast View Post


    can i say this?

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

  15. #10
    Wilds's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    here
    Posts
    522
    Reputation
    1
    Thanks
    170
    My Mood
    Relaxed
    Quote Originally Posted by topblast View Post


    can i say this?

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

    i kinda just wanted to dum it down a bit more and get into the vertexes, its not a ball of shit, its just it's core

  16. #11
    markoj's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    s
    Posts
    1,064
    Reputation
    60
    Thanks
    407
    My Mood
    Bored
    Quote Originally Posted by wolffang0000 View Post
    i feel appreciated now

    i kinda just wanted to dum it down a bit more and get into the vertexes, its not a ball of shit, its just it's core
    Done with Godmode yet?
    Dont ban me

  17. #12
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,033
    Reputation
    340
    Thanks
    2,792
    My Mood
    Sad
    Quote Originally Posted by topblast View Post


    that will be a waste .. and really i dont think they are much people here with the DirectX skills to do that.




    @Freedomepeace : A cube have 6 faces, 8 points, you dont need all those points to draw a smooth curve because directX does an effect that make things look smooth for you. and you forgot to give the the CustomFVF

    @ who ever cares : Remember i give you a source for Texture Mapping, well that is simular to this, It simply Draws a 2D Rectangle consisting 4 points/vertexes. Then Maps a texture around the using the UV coords.

    I release an effect of a spinning Box with a texture mapped around each face. I also added lighting :P and stuff but we talking about 3d Objects.

    a Textured object requires uv coordinates. to position the texture aroung the face, you can pull it in some places and shrink it in others.

    I have a little example source of a Texture being mapped around a Rectangle in 3D space if you want is MSN me

    finish101@hotmail.com
    topblast, you make good points, but they are irrelevant. I was giving a simplified explanation, not programmatic tutorial.

    "A cube have 6 faces, 8 points, you dont need all those points to draw a smooth curve"
    How do you get a smooth curve out of a square? 0.o

    "you forgot to give the the CustomFVF"
    No I didn't (:

    "Remember i give you a source for Texture Mapping, well that is simular to this, It simply Draws a 2D Rectangle consisting 4 points/vertexes. Then Maps a texture around the using the UV coords."
    I don't remember, but yeah that's all it is. Replace your colour with a texture coordinates, set the texture, and viola :)

  18. #13
    Alessandro10's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    MPGH.NET
    Posts
    6,140
    Reputation
    215
    Thanks
    4,607
    My Mood
    Busy
    @topblast change your nick for TopTheBest "Blast" rsrs

  19. #14
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by Alessandro10 View Post
    @topblast change your nick for TopTheBest "Blast" rsrs
    topblast sounds more epic
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  20. #15
    SNal2F's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    175
    Reputation
    30
    Thanks
    99
    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.

Page 1 of 2 12 LastLast