Screenshot Thread menu

User Tag List

Page 36 of 116 FirstFirst ... 32333435363738394086 ... LastLast
Results 526 to 540 of 1734
  1. #526
    wraithZX's Avatar Active Member
    Reputation
    43
    Join Date
    May 2007
    Posts
    122
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha awesome.

    I've always been meaning to sort out the WorldToScreen stuff. Looks like I need to do a bit of a refresher on matrix math...

    Screenshot Thread
  2. #527
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think it's anything on his part really, just using D3D functions. Surely there's a function in the API that draws a 3D line :P

    EDIT: On second thought, nevermind.
    Last edited by lanman92; 11-22-2009 at 11:15 PM.

  3. #528
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    I don't think it's anything on his part really, just using D3D functions. Surely there's a function in the API that draws a 3D line :P

    EDIT: On second thought, nevermind.
    You need to do your own WorldToScreen stuff.

  4. #529
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    You need to do your own WorldToScreen stuff.
    You don't have to. If you can find WoW's matrices and whatnot, you can just use D3D to unproject it.

  5. #530
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1356
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    You don't have to. If you can find WoW's matrices and whatnot, you can just use D3D to unproject it.
    Okay, well at any rate, you can't just use D3D's built in transformation functions without doing a lot of extra work.

    My point was that extra work is required, how you choose to do that work is another story entirely as there are several alternatives.

  6. #531
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It wouldn't be too much work..

    Code:
    public static Vector2 WorldToScreen(Vector3 world)
    {
       Vector3 Project = GraphicsDevice.Viewport.Project(world, Projection, View, Matrix.Identity);
    
       // Check our Z, otherwise return a huge Vector off-screen because I'm Lazy.
       if (Project.Z < 1.0f)
          return new Vector2((float)Math.Floor(Project.X), (float)Math.Floor(Project.Y));
       else
          return new Vector2(GraphicsDevice.Viewport.Width * 4, GraphicsDevice.Viewport.Height * 4);
    }
    Now all you need to create the Projection and View matrices is the Camera Position, your 'Target' Position (which can be easily calculated), Your FieldOfView (90?), and Aspect ratio.

    That leaves you really with only Two things you need to find (Camera position/Camera Angle or 'Target' Position), because the rest can be calculated or found with simpler methods.

    Then all you would have to do to create the matrices is a couple lines of code.
    Code:
    float AspectRatio = GraphicsDevice.Viewport.Width / GraphicsDevice.Viewport.Height;
    
    Matrix View = Matrix.CreateLookAt(CameraPosition, Target, Vector.Up);
    Matrix Projection = Matrix.CreatePerspectiveFieldOfView(90.0f, AspectRatio, 0.01f, 8192.0f);
    Simple. Easy. Plus it works.


  7. #532
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What Matrix library do you recommend for simple things like this? Custom?

  8. #533
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Old code, new face!

    Bots using waypoint graphs instead of the more advanced polygons mesh suffer badly from the "on rails"-syndrome though


    [ame=http://www.youtube.com/watch?v=A33aO9bF3Q0]YouTube - Wannabe NavMesh Generation[/ame]

    Edit: Looks like the embedded version doesn't have the audio removed. How awesome. Watch in HD!
    Edit2: Nvm they deleted the music. Hf with this -,-
    Last edited by Robske; 11-25-2009 at 05:47 PM.
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  9. #534
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Very cool!

  10. #535
    paradoxial's Avatar Active Member
    Reputation
    22
    Join Date
    Apr 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks nice Robske.
    I'm widely known as TheUltimateParadox

  11. #536
    complxor's Avatar Member
    Reputation
    1
    Join Date
    Aug 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    very nice robske, looks amazing

  12. #537
    Apoc's Avatar Angry Penguin
    Reputation
    1387
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    The yellow is the WMO (Orgrimmar in this case)

    The pink is our nav mesh. And yes; pathfinding works.

  13. #538
    Akira123's Avatar Member
    Reputation
    4
    Join Date
    Jul 2007
    Posts
    38
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Omg , i'm , i'm ...ahhhh *crying*

  14. #539
    -Ryuk-'s Avatar Elite User CoreCoins Purchaser Authenticator enabled
    Reputation
    529
    Join Date
    Nov 2009
    Posts
    1,028
    Thanks G/R
    38/51
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post


    The yellow is the WMO (Orgrimmar in this case)

    The pink is our nav mesh. And yes; pathfinding works.
    Apoc that is awesome! Keep up the good work
    |Leacher:11/2009|Donor:02/2010|Established Member:09/2010|Contributor:09/2010|Elite:08/2013|

  15. #540
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post


    The yellow is the WMO (Orgrimmar in this case)

    The pink is our nav mesh. And yes; pathfinding works.
    That is SO hawt.
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

Similar Threads

  1. Screenshot Thread for Diablo 3
    By UnknOwned in forum Diablo 3 Memory Editing
    Replies: 136
    Last Post: 09-03-2018, 01:06 PM
  2. Aion Screenshot Thread
    By JD in forum Aion Exploits|Hacks
    Replies: 0
    Last Post: 11-17-2009, 11:19 AM
  3. Screenshot Thread for AoC
    By Cryt in forum Age of Conan Exploits|Hacks
    Replies: 0
    Last Post: 05-23-2008, 07:32 AM
  4. Why my server is better than yours (a screenshots thread)
    By Liania in forum World of Warcraft General
    Replies: 15
    Last Post: 02-14-2007, 11:00 PM
All times are GMT -5. The time now is 08:15 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search