Static scene ray tracing chessboard rendering method and system based on CPU and storage medium
A ray tracing and chessboard technology, applied in 3D image processing, image data processing, instruments, etc., can solve problems such as high requirements, lack of versatility, and lack of support for dynamic memory allocation, so as to improve efficiency, reduce the amount of calculation, To achieve the effect of rendering acceleration
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] like figure 1 , 2 As shown, the specific steps of the CPU-based static scene ray tracing checkerboard rendering method in this embodiment are as follows:
[0038] Step S1. Construct a 3D scene according to the coordinates of the point light source and the geometric object, and initialize the camera position.
[0039] Wherein, the 3D scene includes all geometric objects such as point light sources, occluders, and scene objects.
[0040] Step S2, setting a historical pixel value buffer for storing pixel color values, the size of which is half of the number of screen pixels, and the initial value is set as the background color of the scene; at the same time, setting a historical collision point coordinate buffer.
[0041] The background color of the scene is selected as pure black; the historical collision point coordinate buffer stores the coordinates of the first collision point between the light and the object in the chessboard ray tracing algorithm, as well as the co...
Embodiment 2
[0070] Based on the same inventive concept as Embodiment 1, this embodiment provides a CPU-based static scene ray tracing checkerboard rendering system, which includes:
[0071] The three-dimensional scene construction module is used to implement step S1 of embodiment 1, constructing a three-dimensional scene according to the coordinates of the point light source and the geometric object, and initializing the camera position;
[0072] The buffer setting module is used to realize the step S2 of embodiment 1, and a historical pixel value buffer and a historical collision point coordinate buffer are set;
[0073] A bounding box calculation module, configured to implement step S3 of Embodiment 1, to calculate the bounding box of each geometric object in the three-dimensional scene;
[0074] The odd-even checkerboard sampling module is used to implement step S4 of Embodiment 1, and uses programming to realize the odd-even checkerboard sampling to obtain sampling pixels;
[0075] T...
Embodiment 3
[0080] Based on the same inventive concept as that of Embodiment 1, this embodiment provides a storage medium on which computer-executable instructions are stored. When the computer-executable instructions are executed by a computer processor, they are used to realize the static scene light of Embodiment 1. Tracks the checkerboard rendering method. A storage medium may be any of various types of memory devices or storage devices.
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