3D picture cutting method and terminal
A picture and 3D technology, applied in the field of image processing, can solve problems such as poor user experience, users cannot preview, and pictures cannot be restored, and achieve the effect of convenient restoration.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0078] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0079] A 3D image clipping method, specifically comprising:
[0080] S1. Receive a picture cropping instruction, and generate a cropping shape object and a cropping frame object;
[0081] Generate a clipped shape object specifically as:
[0082] Generate a 2D vector graphic of the same size as the 3D image to be cropped;
[0083] Specifically, use the SVGImporter open source library to generate a 2DShape graphic (two-dimensional vector graphics) with the same size as the original image;
[0084] changing the shader that renders the 2D vector graphics to a texture that can display the 3D image to be cropped;
[0085] Adding thickness information to the two-dimensional vector graphics, generating the same three-dimensional vector graphics as the 3D picture to be cropped, as a cropping shape object;
[0086] Specifically, add the same thickness information as the 3D picture to be cropped for the 2D...
Embodiment 2
[0103] Please refer to image 3 , the second embodiment of the present invention is:
[0104] Apply the above 3D image cropping method to the actual scene:
[0105] E1. Use DevIL to read image texture array information, and use Unity's Image component to display in 3D, specifically:
[0106] Read the texture array information of the 3D picture to be cropped based on DevIL (a graphics open source library), and save the 3D picture to be cropped as a Texture2D (a picture format) that can be recognized by Unity (a development tool) )information;
[0107] Load the Texture2D information of the locally stored 3D image to be cropped in Unity, and display it in 3D through the Image component;
[0108] E2. Generate a cropping shape object and cropping frame, specifically:
[0109] The user sends a crop command, and the material rendering shader (shader) of the 3D image to be cropped is replaced with a shader with a lower brightness value;
[0110] Generate 2DShape graphics (two-dim...
Embodiment 3
[0133] Please refer to figure 2 , Embodiment three of the present invention is:
[0134] A 3D picture cropping terminal 1, the terminal 1 includes a processor 2, a memory 3, and a computer program stored on the memory 3 and operable on the processor 2, when the processor 2 executes the computer program Each step in Embodiment 1 or Embodiment 2 is realized.
[0135] To sum up, the present invention provides a 3D image clipping method and terminal. By setting the clipping shape object, when clipping, the shader rendering the 3D image to be cropped is replaced with a low-brightness shader, and the rendering clipping The shader of the shape object is set to display the texture of the 3D image to be cropped, and the cropping frame object is set on the cropping shape object, and the shader for rendering the 3D image to be cropped in the cropping frame object is set to normal brightness, so that the clipping process can be realized In addition, the cropping frame object can perfor...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com