How is your calling stuff from EndScene concept? menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Viano's Avatar Active Member
    Reputation
    37
    Join Date
    May 2008
    Posts
    172
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    K, thanks for all your answers.

    One last question: what 3D/Vector library do you guys use for 3D calculation? I for example would like to calculate a point for ClickToMove that is X yards away from the next target in direction of the player. In my opinion that is easily done with vectors but I never used vector calculation in C#.

    System.Windows.Media.Media3D namespace seems to be what I need.
    Last edited by Viano; 03-09-2010 at 06:49 AM.
    Viano

    How is your calling stuff from EndScene concept?
  2. #17
    adaephon's Avatar Active Member
    Reputation
    76
    Join Date
    May 2009
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'd recommend XNA and the associated namespaces. The main benefit it has over WPF is that WPF is all based on doubles as the primary data type (i.e. a 3D vector contains 3 doubles, which is 3 fields by 8bytes). XNA's 3D vector, however, is backed by floats which makes it align properly with WoW's position data (which also uses floats).

    As the struct is marked with LayoutKind.Sequential, you can easily read the position data from WoW with Marshal.PtrToStructure(). It provides all the methods you would need for calculations, dot and cross products, angle between etc.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 0
    Last Post: 04-12-2011, 05:44 PM
  2. Replies: 0
    Last Post: 05-30-2010, 12:05 AM
  3. How to make a movie from what u see on your monitor?
    By markons in forum Community Chat
    Replies: 4
    Last Post: 04-08-2008, 11:10 AM
All times are GMT -5. The time now is 08:18 AM. 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