Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for realizing page turning effect based on cocos2d-x

A page-turning effect and page-turning technology, which is applied in the computer field, can solve the problems that the page-turning effect is not three-dimensional, the sprite shape cannot be freely deformed, and the user experience is poor. Effect

Pending Publication Date: 2021-07-30
宝宝巴士股份有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the prior art, the sprite shape cannot be freely deformed, and can only be fixed and zoomed, and the page turning effect is not three-dimensional enough, resulting in poor user experience

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 page turning effect based on cocos2d-x
  • Method and device for realizing page turning effect based on cocos2d-x

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] Please refer to figure 1 , a method for realizing page turning effect based on cocos2d-x, including steps:

[0028] S1. By taking pictures, use the picture of the page that needs to be turned as the rendering picture of the grid sprite, and set the grid sprite;

[0029] Step S1 is specifically:

[0030] By taking a photo, save the screenshot of the page that needs to be turned as the rendered image of the grid sprite, select an icon node on the page, and set the node as the grid sprite.

[0031] S2. When the page turning starts, hide all the ordinary sprite nodes on the page and replace them with the set grid sprites;

[0032] Step S2 also includes:

[0033] According to the ratio between the sliding distance and the sliding distance needed to complete the page turning, set the texture coordinates of the grid sprite, change the shape of the picture, and complete the page turning.

[0034] According to the ratio between the sliding distance and the sliding distance r...

Embodiment 2

[0039] Please refer to figure 2 , a device 1 based on cocos2d-x for realizing the page turning effect, including a memory 2, a processor 3 and a computer program stored in the memory 2 and operable on the processor 3, when the processor 3 executes the program, it realizes Each step in the first embodiment.

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

The invention provides a method and a device for realizing a page turning effect based on cocos2d-x. Taking a picture of a page needing to be turned as a rendering picture of the grid elf in a photographing mode, and setting the grid elf; when page turning is started, all common elf nodes on the page are hidden and replaced by the arranged grid elf; after page turning is completed, the hidden common elf nodes are displayed, the grid elf is hidden, the page turning effect is achieved, the picture shape can be changed more randomly in the page turning process, the page turning effect is more stereoscopic, and the user experience is excellent.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for realizing page turning effects based on cocos2d-x. Background technique [0002] The current page turning effect is realized by using orbitCamera (trajectory animation). Each sprite node has a camera. Due to the different angles of the camera, the rendered graphics of the sprites presented are also different. By rotating the angle of the camera, the Change the rendering position of the sprite to achieve the effect of changing the shape of the sprite, and make the sprite rotate from the horizontal direction to the vertical direction to achieve the page-turning effect. [0003] However, in the prior art, the sprite shape cannot be deformed freely, but can only be fixed and zoomed, and the page turning effect is not three-dimensional enough, resulting in poor user experience. Contents of the invention [0004] (1) Technical problems to be solved [0005...

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
IPC IPC(8): G06F3/0484G06F3/0481
CPCG06F3/0484G06F3/0481Y02D10/00
Inventor 黄昕唐光宇闫乃永卢学明
Owner 宝宝巴士股份有限公司