Thread: D3d Rendering?

Results 1 to 10 of 10
  1. #1
    Calebb's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    212
    Reputation
    12
    Thanks
    75

    D3d Rendering?

    Just a quick question, How would you render a image instead of text in D3D?

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Err... I'm not too good at D3D since I just started, but here it goes. Create a vertex buffer, fill your vertex buffer. Then use DrawPrimitive to draw your image to the screen.

    You would use:

    CreateVertexBuffer
    SetStreamSource
    DrawPrimitive

    From what I know.
    Last edited by Void; 01-06-2010 at 08:30 PM.

  3. #3
    de.bug's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    30
    Reputation
    12
    Thanks
    9
    My Mood
    Amused
    You can use D3DXCreateTextureFromFile and then simply render it with a sprite object. If you want to embed the image you can use a resource or store the image data in a byte array and create the texture from memory instead.

  4. The Following User Says Thank You to de.bug For This Useful Post:

    Hell_Demon (01-07-2010)

  5. #4
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    Damn c# made it look so easy lol
    draw a rect and just loadcontent the image RAWR
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  6. #5
    Xlilzoosk8rX's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    the-ville, PA
    Posts
    358
    Reputation
    24
    Thanks
    53
    A little off-topic but at falzarex,
    About your sig.
    VB can do anything that C# can do.
    It's just a matter of how good you are and if you know how to use it right.
    Most people just use the basics and just try to be Epik from that.
    ^^GOOD LUCK GUYS!^^

  7. #6
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by Xlilzoosk8rX View Post
    A little off-topic but at falzarex,
    About your sig.
    VB can do anything that C# can do.
    It's just a matter of how good you are and if you know how to use it right.
    Most people just use the basics and just try to be Epik from that.
    ^^GOOD LUCK GUYS!^^
    C# vs VB
    99% of the people that code in C# use their brains.
    0.01% of the people that code in VB use their brains.

    5% of the people that code in C# are leechers
    99.9% of the people that code in VB are leechers

    C# is 0.0% attractive to 11 y/o kiddies that think copy+pasting=coding
    VB is 100% attractive to 11 y/o kiddies that think copy+pasting=coding

    VB got ruined by 11 year olds, lets pray to god that won't happen to C#...
    Ah we-a blaze the fyah, make it bun dem!

  8. The Following 2 Users Say Thank You to Hell_Demon For This Useful Post:

    falzarex (01-07-2010),Void (01-07-2010)

  9. #7
    Calebb's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    212
    Reputation
    12
    Thanks
    75
    Hell_Demon, I agree with you. I mean, I code VB, C#, and c++. I don't copy and paste at all

  10. #8
    de.bug's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    30
    Reputation
    12
    Thanks
    9
    My Mood
    Amused
    .NET apps do all compile to same managed code though I believe ?
    If MS didn't flavor the coding styles towards what diff coders were used to it probably would have failed in the market.

  11. #9
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    well yeah .NET Framework pretty much is everything C/C++/advanced coding stuff put into a nice neat package for easy coding
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  12. #10
    Calebb's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    212
    Reputation
    12
    Thanks
    75
    The only reason VB is so looked down on is because, most people copy and paste.
    And use It for useless programs.

Similar Threads

  1. Render Pop-Out Tutorial
    By Bull3t in forum Tutorials
    Replies: 15
    Last Post: 07-05-2006, 10:46 PM
  2. C4D renders that Bull3t wanted
    By A7X Oblivian in forum Art & Graphic Design
    Replies: 2
    Last Post: 06-08-2006, 10:28 AM
  3. how do u render
    By darkone1149 in forum Art & Graphic Design
    Replies: 2
    Last Post: 02-07-2006, 12:25 AM
  4. How To Use A Render By Phate
    By Paolo1993 in forum Tutorials
    Replies: 0
    Last Post: 01-27-2006, 08:03 PM
  5. [Help] D3D
    By SpiderByte in forum WarRock - International Hacks
    Replies: 7
    Last Post: 01-18-2006, 09:13 PM