Mouse picking raycast using DirectX or glm. My result always further than expected (Screen To World) menu

User Tag List

Results 1 to 3 of 3
  1. #1
    GlittPrizes's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    58
    Join Date
    Nov 2019
    Posts
    104
    Thanks G/R
    53/33
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mouse picking raycast using DirectX or glm. My result always further than expected (Screen To World)

    Making a function that takes the x, y of the mouse and shoots a ray forward to return a position under the cursor in world space. I've followed many examples of how to do exactly this, but never able to get the correct result.

    My most recent attempt I call the DirectX unproject twice ( [mouse.x, mouse.y, 0.0] - first pass, [mouse.x, mouse.y, 1.0] - second pass), and then I project forward in world space from the directional vector of these two. Has anyone had similar experience with making a screen to world function that can offer a recipe or pseudo code. I'm going crazy after several days of non-stop trying to figure this out. Thanks.

    Mouse picking raycast using DirectX or glm. My result always further than expected (Screen To World)
  2. #2
    34D's Avatar Member
    Reputation
    4
    Join Date
    May 2020
    Posts
    57
    Thanks G/R
    10/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are you still alive bro

  3. #3
    GlittPrizes's Avatar Active Member CoreCoins Purchaser Authenticator enabled
    Reputation
    58
    Join Date
    Nov 2019
    Posts
    104
    Thanks G/R
    53/33
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 34D View Post
    are you still alive bro
    Alive and well

Similar Threads

  1. Fishing Bots, do they use LEFT or RIGHT-click on mouse???
    By Snorkelen in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 05-16-2016, 12:19 PM
  2. Macro Love - My Collection of useful and/or Space saving Macro's!
    By Anotherfox in forum World of Warcraft Guides
    Replies: 15
    Last Post: 12-28-2008, 12:29 AM
  3. [Problem] I can't use spells or skills on NPC's i make with ADE.
    By Wheeze201 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-04-2008, 10:39 PM
  4. Could use some help making my server public.
    By Zonagle in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 09-18-2007, 07:51 PM
All times are GMT -5. The time now is 06:09 PM. 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