An interactive method and system based on direct3d shared texture
An interactive method and texture technology, applied in the computer field, can solve problems such as long delay and inability to accurately locate the target window, and achieve the effect of avoiding screen tearing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment 1
[0023] An interactive system based on Direct3D shared textures, an image drawing and control module injected into a game process and an independently running client rendering component; the client rendering component includes:
[0024] a. The rendering module is used to render the content of the client's visible area into the shared texture;
[0025] b. The remote operation analysis module is used to receive and analyze various user operation control commands transmitted from the game client to the client;
[0026] c. The operation execution module is used to convert the received control command into the corresponding operation of the client;
[0027] d. The injection module is used to inject the image drawing and control module into the game process.
[0028] The image drawing and control module includes: an image drawing module, which is used to draw the visible area of the client in the shared texture into the game window; a control module, which is used to convert the o...
Embodiment 2
[0030] An interactive method based on Direct3D shared texture, using the above system for interaction:
[0031] When the client is started, the main window is created and a message hook is registered. The function of this message hook is to inject the image drawing and control module into the game process;
[0032] Create a remote operation analysis module, start the interface for receiving control commands, and create a resource management interface;
[0033] Initialize the rendering module, create the necessary Direct3D devices and resources, register the shared texture to the GPU, and register the obtained texture handle to the shared resource management interface, so that the modules in the game process can obtain the shared texture handle;
[0034] During the running of the client, all visible areas will be directly drawn to the shared texture, and the modules in the game can obtain this texture through the GPU memory.
[0035] When the game starts, the message hook inje...
Embodiment 3
[0045] This embodiment is optimized on the basis of Embodiment 2. In order to realize the Chinese input method of the client in the game window, the following methods are implemented:
[0046] Forward the corresponding input method message to the client program. This method converts the input method switching request of the game window into a corresponding control command and forwards it to the client program. The client can load the input method module of the system for input;
[0047] Due to the operating principle of the Windows system, the program that must obtain the keyboard focus can be used for input, but because it is displayed in the game, the game window cannot be covered by other windows, so the method for the client to obtain the keyboard focus without interfering with the display of the game window is realized. ;
[0048] In the client process, it is necessary to render the candidate word window of the input method to the shared texture, process IME-related messa...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More