VIewMatrix for WorldToScreen menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    NoxiaZ's Avatar Active Member
    Reputation
    23
    Join Date
    May 2019
    Posts
    101
    Thanks G/R
    21/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    VIewMatrix for WorldToScreen

    Hi,

    Anyone found the pointer for the viewmatrix? - I struggle finding the pointer and the information about the ViewMatrix so I can create WorldToScreen.
    Any idea on how to find it?

    Was much easier in WoW where you could spin the camera around

    VIewMatrix for WorldToScreen
  2. #2
    ejt's Avatar Contributor
    Reputation
    210
    Join Date
    Mar 2008
    Posts
    166
    Thanks G/R
    3/112
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Isometric view...

  3. #3
    NoxiaZ's Avatar Active Member
    Reputation
    23
    Join Date
    May 2019
    Posts
    101
    Thanks G/R
    21/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ejt View Post
    Isometric view...
    See I would lie if I said that makes any sense for me

    Beside just knowing that 1 tile in D2 should be 15 px, i would like to get that from the game, without hardcoding it - If possible.
    Also I have been trying to find the zoom scale, havent been able to do that.

    Might have another name then "ViewMatrix"

  4. #4
    ejt's Avatar Contributor
    Reputation
    210
    Join Date
    Mar 2008
    Posts
    166
    Thanks G/R
    3/112
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NoxiaZ View Post
    Might have another name then "ViewMatrix"
    Yes, isometric projection, or isometric view.

  5. #5
    NoxiaZ's Avatar Active Member
    Reputation
    23
    Join Date
    May 2019
    Posts
    101
    Thanks G/R
    21/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah okay, thanks ill remember that

    Do you have any information about where or how i can find it ?

  6. #6
    NoxiaZ's Avatar Active Member
    Reputation
    23
    Join Date
    May 2019
    Posts
    101
    Thanks G/R
    21/12
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I seem to have figured it out, without using any memory information.
    I came up with this code:


    Code:
       public Vector2 WorldToScreen(Size windowSize, Vector2 playerLocation, Vector2 targetLocation)
            {
                var tileToPxSize = 15;
                var height = windowSize.Height;
                var width = windowSize.Width;
                var center = new Vector2(width / 2, height / 2);
                var subtract = Vector2.Subtract(playerLocation, targetLocation);
                subtract = Vector2.Transform(subtract, Matrix3x2.CreateRotation(45));
                var data = new Vector2(subtract.X * -tileToPxSize, subtract.Y * -tileToPxSize);
                var data1 = Vector2.Add(center, data);
                return data1;
            }

  7. Thanks prrovoss (1 members gave Thanks to NoxiaZ for this useful post)

Similar Threads

  1. Play World of Warcraft for Free
    By Matt in forum World of Warcraft Exploits
    Replies: 22
    Last Post: 10-26-2006, 04:25 PM
  2. 3 marks for every wsg/ab
    By Matt in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 08-18-2006, 01:39 AM
  3. ZF Witch Doctor Hunting for Hunter (with video)
    By Matt in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 06-21-2006, 07:39 PM
  4. I'm flying without wings! FOR 20 SECONDS WHOAZERZ!
    By janzi9 in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 05-17-2006, 08:00 PM
  5. World of Warcraft WoW!Bot (GetALifeBot) 0.61 for WoW 1.9.4 + FishBot
    By Matt in forum World of Warcraft Bots and Programs
    Replies: 43
    Last Post: 04-18-2006, 04:55 AM
All times are GMT -5. The time now is 05:00 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search