Method and device for realizing 3D preview effect based on cocos2dx
A 3D, one-sided technology, applied in the field of 3D preview effect based on cocos2dx, can solve the problems of not being able to create a three-dimensional effect, and 2D cameras can't realize the near-large and far-small, etc., to achieve good preview effect, easy to implement, and simple methods
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Please refer to figure 1 , a method for realizing 3D preview effect based on cocos2dx, including steps:
[0029] S1. Stitching the virtual scene into a box shape to form a sky box;
[0030] Step S1 is specifically:
[0031] The virtual scene is spliced into a box shape using three-dimensional coordinates to form a sky box.
[0032] S2. Place the camera in front of the skybox so that the camera can only capture one side of the skybox;
[0033] S3. Rotate the camera according to a preset rule to realize a 3D preview effect.
[0034] Step S3 is specifically:
[0035] Rotate the viewing angle of the camera so that it starts from the left midpoint of the skybox to the front midpoint and the right midpoint of the skybox in order to achieve a 3D preview effect.
Embodiment 2
[0037] Please refer to figure 2 , a device 1 for realizing 3D preview effects based on cocos2dx, including a memory 2, a processor 3, and a computer program stored in the memory 2 and operable on the processor 3, the processor 3 implements the program when executing the program Each of Example 1.
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