Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › How to make a Mouse cursor in HLSL for LOTRO??
New Posts  All Forums:Forum Nav:

How to make a Mouse cursor in HLSL for LOTRO??

post #1 of 4
Thread Starter 
Hi All,

Because of the nature of this question I will just be upfront as much as I can.. I am using NVidias 3D Vision and I play LOTRO..

Now we have some coders on another Website who made a Program Called 3D Migoto that helps fix 3D for us nVidias 3D vision users..

http://helixmod.blogspot.com/


The website has fixed Tons of games and I put my hat in to help and ended up fixing 4 games to date..
Currently I am on my 4th Title and ran into a Stumper, the problem is the Mouse Cursor in LOTRO is NOT in S3D like the rest of the game and when I need to click something it is hard as the Cursor is in 2D while the rest ofg the game is in 3D..

Now I done some research and the guys at Migoto tell me it would be pretty simple to write up some HLSL code for a Software based Cursor.. I think that is what I need to make the mouse go into Stereoscopic 3D..

Now that is fine and dandy and whilst I looked into how to Code HLSL I just need more time but I am requesting anyone Knowledgable in HLSL code if they could write me up a bit of Code to make a Software Mouse and remove the hardware one..

I would ask would removing the Current Mouse cursor ingame be possible with written up HLSL code??
So hopefully someone here knows what I am wanting and this is really a pretty simple thing to write up..

IF you want I can pay some money for your time or whatever I am sure if you would wantto do this we can work something out wink.gif

I just did not want to request someone do this for free unless you are willing but either way I would figurte offer payment for your service I would greatly appreciate it..


I was just wondering if this would even be possible before I get my hopes up..
Edited by The_Nephilim - 3/14/17 at 10:29pm
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
post #2 of 4
Thread Starter 
WEll I was talking to a friend and he suggested maybe I ask more for help then a handout wink.gif

I have looked into this and tried to find some sample code but I did not find anything. I did also look into the language itself.. While I understand a bit of it and what I read made sense I just do not know what direction to take..

So perhaps instead of asking someone to write it for me maybe someone can help guide me into the way to get this done..

I would be willing to learn I just2 need a direction to go for noobs like myself.. I tried my hand a few years agon in C++ and ended up writing like 4 programs and of couarse the initial Hello World Program which was instructive and gave me a basic understanding of coding abit basic knowledge but it was cool when I wrote the programs and they worked..

So I would be willing to try and learn some HLSL if you would be willing to teach me some tricks and some material I could read to get enough knowledge where I can write the code myself..
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
post #3 of 4
Thread Starter 
OK I found a addon that makes a highligher I am just going t mod that program to suite my needs.. now If I can find out how to omit the hardware cursor ingame.

EDIT I figured out and got it fixed thnx tho wink.gif
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
post #4 of 4
Thread Starter 
Someone in another thread I posted in gave me a link to Auto Hot key and I did find some code to disable a Cursor. While the program worked in Windows when I went ingame it did not..


here is the Code I used:
Code:
Example: Hides the mouse cursor when you press Win+C. To later show the cursor, press Win+C again.
; This script is from www.autohotkey.com/forum/topic6107.html

OnExit, ShowCursor  ; Ensure the cursor is made visible when the script exits.
return

ShowCursor:
SystemCursor("On")
ExitApp

lshift::SystemCursor("Toggle")  ; Win+C hotkey to toggle the cursor on and off.

SystemCursor(OnOff=1)   ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
{
    static AndMask, XorMask, $, h_cursor
        ,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
        , b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13   ; blank cursors
        , h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13   ; handles of default cursors
    if (OnOff = "Init" or OnOff = "I" or $ = "")       ; init when requested or at first call
    {
        $ = h                                          ; active default cursors
        VarSetCapacity( h_cursor,4444, 1 )
        VarSetCapacity( AndMask, 32*4, 0xFF )
        VarSetCapacity( XorMask, 32*4, 0 )
        system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32645,32646,32648,32649,32650
        StringSplit c, system_cursors, `,
        Loop %c0%
        {
            h_cursor   := DllCall( "LoadCursor", "Ptr",0, "Ptr",c%A_Index% )
            h%A_Index% := DllCall( "CopyImage", "Ptr",h_cursor, "UInt",2, "Int",0, "Int",0, "UInt",0 )
            b%A_Index% := DllCall( "CreateCursor", "Ptr",0, "Int",0, "Int",0
                , "Int",32, "Int",32, "Ptr",&AndMask, "Ptr",&XorMask )
        }
    }
    if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
        $ = b  ; use blank cursors
    else
        $ = h  ; use the saved cursors

    Loop %c0%
    {
        h_cursor := DllCall( "CopyImage", "Ptr",%$%%A_Index%, "UInt",2, "Int",0, "Int",0, "UInt",0 )
        DllCall( "SetSystemCursor", "Ptr",h_cursor, "UInt",c%A_Index% )
    }
}

I was wondering why this would work in Windows but when in LOTRO it does not shut off the cursor?? I learned a lot on AutoHoty key Page somme good info there I even learned how to compile the AHK file to an EXE which I did that was pretty cool abit so basic but to me very cool wink.gif
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
intel i5 7600K Asus ROG Strix Z270H eVGA 980 GTX Super Clock Corsair Vengence 16GB DDR4 3000PC 
Hard DriveOptical DriveCoolingOS
Samsung 850EVO Memorex DVD/RW CoolerMAster 212X Windows 10- 64bit 
MonitorKeyboardPowerCase
2 Acer X1261P DLP PRojectors 3D Vision certified.. Thermaltake RGB Gaming Keyboard Corsair CS850W CoolerMAster HAF 932 AMD Edition 
MouseAudio
UTech VEnus MMO Gaming Mouse SoundBlaster Z 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › How to make a Mouse cursor in HLSL for LOTRO??