A method of mapping a regular-range cylindrical image to a spherical surface in an ios application and displaying it on a screen with a spherical body.

Asked 1 years ago, Updated 1 years ago, 104 views

We are developing the ios app with objective-c.
I'd like to map a regular-range cylindrical image to a spherical surface and display it as a sphere on the screen, but I'm worried about how to implement it because I'm not familiar with image conversion.
Could you tell me the details?

objective-c

2022-09-30 21:12

1 Answers

I think it would be easier to get an answer if there were some explanations about what level of response the questioner is looking for and what kind of app configuration they are trying to implement.(Maybe it's because there's no explanation for not being able to answer or comment after a week?)
The term "level" here is similar to the term "level" used to categorize programming languages into low-level (low-level) and high-level (high-level) languages.If it's a low level answer, it's Let's study OpenGLES.OpenGL is a language or device independent 3D graphics API, while Mac OS, iOS and others use OpenGL ES for 3D graphics technology (ES refers to a slightly easier API in OpenGL).The GLKit Framework is provided as a means of implementing OpenGLES within the program.

iOS OpenGLES Programming Guide (PDF Documentation)

If you consider mapping to a sphere as a kind of photo retouching, such as blurring or color adjustment, you may want to check out the CoreImage Framework.You will find that the CIFilter class allows you to process different images.

Core Image Programming Guide

However, there is (probably) no "spherical mapping" filter in the genuine Apple filter.

The highest level of response is to use SceneKit.You can edit 3D graphics without needing (almost) knowledge of OpenGL, which is certainly the best answer.

Mapping Images

Enter a description of the image here

Results of mapping using "normal range cylindrical drawing"

Enter a description of the image here

However, the downside of this response is that SceneKit is a framework for creating games, not purely 3D graphics.If it's graphics, you want it to be printed as a file or NSData object in the end, but I can't do that (it seems that UIImage can take it out).


2022-09-30 21:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.