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

Pending Publication Date: 2022-04-19
宝宝巴士股份有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the 2D camera cannot achieve near-large and far-small, the scene preview display of the current products on the market is just a simple mobile screen display of the content in the scene, which cannot create a three-dimensional effect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for realizing 3D preview effect based on cocos2dx
  • Method and device for realizing 3D preview effect based on cocos2dx
  • Method and device for realizing 3D preview effect based on cocos2dx

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

According to the method and the device for realizing the 3D preview effect based on cocos2dx provided by the invention, virtual scenes are spliced into a box shape to form a sky box; a camera is placed in front of the sky box, so that the camera can only shoot one side of the sky box; the camera is rotated according to the preset rule, the 3D preview effect is achieved, the three-dimensional preview effect is achieved, the preview effect is good, and the method is simple and easy to achieve.

Description

technical field [0001] The invention relates to the technical field of animation rendering, in particular to a method and device for realizing 3D preview effect based on cocos2dx. Background technique [0002] Since the cocos2dx engine is a 2D game engine, it uses a 2D camera by default, that is, a parallel projection camera for view and projection transformation, and the rendered sprites are all 2D effects. Since the 2D camera cannot achieve near-large and far-small, the scene preview display of products currently on the market is simply a mobile screen display of the content in the scene, which cannot create a three-dimensional effect. Contents of the invention [0003] (1) Technical problems to be solved [0004] In order to solve the above-mentioned problems in the prior art, the present invention provides a method and device for realizing a 3D preview effect based on cocos2dx, which can realize a three-dimensional preview effect. [0005] (2) Technical solutions ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T13/20G06T13/80
CPCG06T13/20G06T13/80
Inventor 黄新伟唐光宇闫乃永卢学明
Owner 宝宝巴士股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products