TWI777801B - Augmented reality display method - Google Patents

Augmented reality display method Download PDF

Info

Publication number
TWI777801B
TWI777801B TW110136832A TW110136832A TWI777801B TW I777801 B TWI777801 B TW I777801B TW 110136832 A TW110136832 A TW 110136832A TW 110136832 A TW110136832 A TW 110136832A TW I777801 B TWI777801 B TW I777801B
Authority
TW
Taiwan
Prior art keywords
value
augmented reality
dispersion
equal
pixel
Prior art date
Application number
TW110136832A
Other languages
Chinese (zh)
Other versions
TW202316853A (en
Inventor
吳雲中
Original Assignee
邦鼎科技有限公司
香港商艾裴吉國際貿易有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 邦鼎科技有限公司, 香港商艾裴吉國際貿易有限公司 filed Critical 邦鼎科技有限公司
Priority to TW110136832A priority Critical patent/TWI777801B/en
Application granted granted Critical
Publication of TWI777801B publication Critical patent/TWI777801B/en
Publication of TW202316853A publication Critical patent/TW202316853A/en

Links

Images

Abstract

一種擴增實境的顯示方法藉由一行動裝置實施,並包含:儲存對應一物體表面的一預定區域的一法線貼圖,及一個彩色色譜;對該物體表面的該預定區域的每一畫素,計算一觀察位置與該畫素的一觀察者視角;將該法線貼圖在該預定區域上時的該等法線向量轉換為相對於該觀察位置的一世界空間的多個世界法線向量;計算該預定區域的每一該畫素的該世界法線向量與該觀察者視角的內積,以獲得一色散數值,並根據該彩色色譜獲得一色散結果;以擴增實境的方式在該物體表面的該預定區域的每一該畫素上顯示對應的該色散結果,以產生彩色炫光。An augmented reality display method is implemented by a mobile device, and includes: storing a normal map corresponding to a predetermined area on an object surface, and a color spectrum; each drawing of the predetermined area on the object surface pixel, calculate a viewing position and an observer's perspective of the pixel; convert the normal vectors when the normal map is on the predetermined area into a plurality of world normals in a world space relative to the viewing position vector; calculate the inner product of the world normal vector of each pixel of the predetermined area and the viewing angle of the observer to obtain a dispersion value, and obtain a dispersion result according to the color spectrum; in an augmented reality manner The corresponding dispersion result is displayed on each pixel of the predetermined area on the surface of the object to generate colored glare.

Description

擴增實境的顯示方法Augmented reality display method

本發明是有關於一種顯示方法,特別是指一種擴增實境的顯示方法。The present invention relates to a display method, especially an augmented reality display method.

在真實世界 中,部分遊戲卡、球員卡或其他類似的卡片會在卡片表面以多層鍍膜的方式,使得卡片表面在光線照射時,隨著觀賞者的觀察角度不同,而產生鑽石或七彩炫光的效果。然而,在虛擬世界如擴增實境(AR)的顯示環境中,如何在卡片或其他物體表面產生相同或相似的炫光效果,便成為一個待解決的問題。In the real world, some game cards, player cards or other similar cards will be coated with multiple layers on the surface of the card, so that when the surface of the card is illuminated, diamonds or colorful glare will be produced according to the viewing angle of the viewer. Effect. However, in a virtual world such as an augmented reality (AR) display environment, how to generate the same or similar glare effect on the surface of cards or other objects has become a problem to be solved.

因此,本發明的目的,即在提供一種在物體表面產生炫光效果的擴增實境的顯示方法。Therefore, the purpose of the present invention is to provide an augmented reality display method that produces a glare effect on the surface of an object.

於是,本發明提供一種擴增實境的顯示方法,適用於一行動裝置且藉由該行動裝置實施,並包含步驟(A)~(G)。Therefore, the present invention provides an augmented reality display method, which is suitable for and implemented by a mobile device, and includes steps (A) to (G).

於步驟(A),儲存對應一物體表面的一預定區域的一法線貼圖,及一個彩色色譜。該法線貼圖包括該預定區域的每一畫素在一切線空間所對應的一法線向量,該彩色色譜包括多個顏色與多個終端色散值之間的對應關係。In step (A), a normal map corresponding to a predetermined area of an object surface and a color spectrum are stored. The normal map includes a normal vector corresponding to each pixel of the predetermined area in the tangent space, and the color spectrum includes the correspondence between a plurality of colors and a plurality of terminal dispersion values.

於步驟(B),對該物體表面的該預定區域的每一該畫素,計算自該行動裝置的一觀察位置與該畫素的一觀察者視角。In step (B), each pixel of the predetermined area on the surface of the object is calculated from a viewing position of the mobile device and an observer's viewing angle of the pixel.

於步驟(C),將該法線貼圖在該預定區域上時的該等法線向量轉換為相對於該觀察位置的一世界空間的多個世界法線向量。In step (C), the normal vectors when the normal map is on the predetermined area are converted into a plurality of world normal vectors in a world space relative to the viewing position.

於步驟(D),計算在該預定區域的每一該畫素的該世界法線向量與該觀察者視角的內積,以獲得一色散數值,並根據該彩色色譜判斷該終端色散值等於該色散數值時所對應的該顏色,並定義該顏色為一色散結果。In step (D), calculate the inner product of the world normal vector of each pixel in the predetermined area and the viewing angle of the observer to obtain a dispersion value, and determine that the terminal dispersion value is equal to the color spectrum according to the color spectrum. The color corresponding to the dispersion value, and define the color as a dispersion result.

於步驟(E),以擴增實境的方式在該物體表面的該預定區域的每一該畫素上顯示對應的該色散結果,以產生彩色炫光。In step (E), the corresponding dispersion result is displayed on each pixel of the predetermined area on the surface of the object in an augmented reality manner to generate color glare.

在一些實施態樣中,其中,在步驟(A)中,該等終端色散值介於一第一數值及一第二數值之間,該第一數值及該第二數值都是正數,且該第一數值小於該第二數值。In some implementation aspects, wherein, in step (A), the terminal dispersion values are between a first value and a second value, the first value and the second value are both positive numbers, and the The first value is less than the second value.

在一些實施態樣中,其中,在步驟(A)中,該第一數值等於0,該第二數值等於1,該等終端色散值分別等於0、0.166、0.332、0.498、0.664、0.830、及1所對應的該等顏色分別是紅色、橙色、黃色、綠色、藍色、靛色、及紫色。In some implementation aspects, wherein, in step (A), the first value is equal to 0, the second value is equal to 1, and the terminal dispersion values are respectively equal to 0, 0.166, 0.332, 0.498, 0.664, 0.830, and The colors corresponding to 1 are red, orange, yellow, green, blue, indigo, and violet, respectively.

在另一些實施態樣中,其中,在步驟(A)中,該第一數值等於0,該第二數值等於1,該等終端色散值在0與一第三數值,及一第四數值與1之間所對應的都是灰色,該等終端色散值在該第三數值與該第四數值之間所對應的該等顏色包括紅色、橙色、黃色、綠色、藍色、靛色、及紫色。In other embodiments, wherein, in step (A), the first value is equal to 0, the second value is equal to 1, the terminal dispersion values are between 0 and a third value, and a fourth value and The corresponding colors between 1 are all gray, and the colors corresponding to the terminal dispersion values between the third value and the fourth value include red, orange, yellow, green, blue, indigo, and violet .

在一些實施態樣中,其中,在步驟(A)中,該第三數值是0.056,該第四數值是0.944,該等終端色散值分別等於0.167、0.278、0.389、0.5、0.612、0.723、及0.834所對應的該等顏色分別是紅色、橙色、黃色、綠色、藍色、靛色、及紫色。In some implementation aspects, wherein, in step (A), the third value is 0.056, the fourth value is 0.944, and the terminal dispersion values are respectively equal to 0.167, 0.278, 0.389, 0.5, 0.612, 0.723, and The colors corresponding to 0.834 are red, orange, yellow, green, blue, indigo, and violet.

在另一些實施態樣中,其中,在步驟(D)中,當所計算的該色散數值大於等於該第二數值時,則該色散數值等於該第二數值,而當所計算的該色散數值小於等於該第一數值時,則該色散數值等於該第一數值。In some other implementations, in step (D), when the calculated dispersion value is greater than or equal to the second value, the dispersion value is equal to the second value, and when the calculated dispersion value is When less than or equal to the first value, the dispersion value is equal to the first value.

在另一些實施態樣中,其中,在步驟(B)中,該觀察位置是該行動裝置的一攝影鏡頭位置,對應每一該畫素的該觀察者視角=normalize(該攝影鏡頭位置-該畫素的位置),normalize是一標準化函數。In some other implementations, in step (B), the observation position is a camera lens position of the mobile device, and the observer angle of view corresponding to each pixel=normalize(the camera lens position−the pixel position), normalize is a normalization function.

在另一些實施態樣中,其中,在步驟(A)中,該法線貼圖包括多個子區域,每一該子區域的該等畫素所對應的該等法線向量都相同,且相鄰的任何兩個該子區域的該等畫素所對應的兩個該法線向量不同。In other embodiments, in step (A), the normal map includes a plurality of sub-regions, and the normal vectors corresponding to the pixels of each sub-region are the same and adjacent to each other. The two normal vectors corresponding to the pixels of any two of the sub-regions are different.

在一些實施態樣中,其中,在步驟(A)中,相鄰的任何兩個該子區域的該等畫素所對應的兩個該法線向量僅在三個維度之其中一個維度不相同。In some implementation aspects, in step (A), the two normal vectors corresponding to the pixels of any two adjacent sub-regions are only different in one of the three dimensions .

本發明的功效在於:藉由該行動裝置根據該法線貼圖,先計算該物體表面的該預定區域的每一該畫素所對應的該世界法線向量,再計算每一該畫素所對應的該色散數值,並根據該彩色色譜決定每一該畫素所對應的該色散結果,而能夠以擴增實境的方式在該物體表面的該預定區域產生彩色炫光的視覺效果。The effect of the present invention is that: according to the normal map, the mobile device firstly calculates the world normal vector corresponding to each pixel in the predetermined area of the object surface, and then calculates the corresponding world normal vector for each pixel. The dispersion value is determined according to the color spectrum, and the dispersion result corresponding to each pixel is determined according to the color spectrum, and the visual effect of color glare can be generated in the predetermined area of the surface of the object in an augmented reality manner.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。Before the present invention is described in detail, it should be noted that in the following description, similar elements are designated by the same reference numerals.

參閱圖1與圖2,本發明擴增實境的顯示方法之一實施例,適用於一行動裝置1,並包含步驟S1~S5。該行動裝置1具備擴增實境的功能,並例如是一智慧型手機,且包括一處理單元11,及電連接該處理單元11的一攝影鏡頭12、一儲存單元14、與一顯示單元13。該儲存單元14例如儲存一應用程式(APP),當該處理單元11執行該應用程式時,控制該攝影鏡頭12對一物體攝影,並採用擴增實境的方式顯示於該顯示單元13。在本實施例中,該物體是一卡片,如遊戲卡片。Referring to FIG. 1 and FIG. 2 , an embodiment of an augmented reality display method of the present invention is applicable to a mobile device 1 and includes steps S1 to S5 . The mobile device 1 has an augmented reality function, and is, for example, a smart phone, and includes a processing unit 11 , a camera lens 12 , a storage unit 14 , and a display unit 13 electrically connected to the processing unit 11 . . The storage unit 14 stores, for example, an application program (APP). When the processing unit 11 executes the application program, the processing unit 11 controls the photographing lens 12 to photograph an object, and displays it on the display unit 13 in an augmented reality manner. In this embodiment, the object is a card, such as a game card.

於步驟S1,該儲存單元14儲存對應該物體的一物體表面的一預定區域的一法線貼圖,及一個彩色色譜。該法線貼圖包括該預定區域的每一畫素在一切線空間(Tangent space)所對應的一法線向量,該彩色色譜包括多個顏色與多個終端色散值之間的對應關係。In step S1, the storage unit 14 stores a normal map corresponding to a predetermined area of an object surface of the object, and a color spectrum. The normal map includes a normal vector corresponding to each pixel of the predetermined area in a tangent space, and the color spectrum includes correspondences between a plurality of colors and a plurality of terminal dispersion values.

再參閱圖3,舉例來說,該儲存單元14還儲存在擴增實境中對應該物體的一卡片三維模型8,該卡片三維模型8包含一第一部份模型81及一第二部分模型82,圖3僅顯示該卡片三維模型8的正視圖,該物體表面的該預定區域是該第二部分模型82在圖3中所顯示的可見區域。該預定區域例如包含180*64畫素,則該法線貼圖對應該預定區域的該180*64畫素就有180*64個該法線向量。Referring to FIG. 3 again, for example, the storage unit 14 also stores a card 3D model 8 corresponding to the object in the augmented reality. The card 3D model 8 includes a first part model 81 and a second part model 82 , FIG. 3 only shows a front view of the three-dimensional model 8 of the card, and the predetermined area of the surface of the object is the visible area of the second part of the model 82 shown in FIG. 3 . For example, the predetermined area includes 180*64 pixels, and the normal map corresponding to the 180*64 pixels in the predetermined area has 180*64 normal vectors.

該等終端色散值介於一第一數值及一第二數值之間,該第一數值及該第二數值都是正數,且該第一數值小於該第二數值。在本實施例中,該第一數值等於0,該第二數值等於1,該等終端色散值分別等於0、0.166、0.332、0.498、0.664、0.830、及1所對應的該等顏色分別是紅色、橙色、黃色、綠色、藍色、靛色、及紫色。且該等終端色散值例如在0~0.166之間是分別對應顏色由紅色漸漸改變至橙色。The terminal dispersion values are between a first value and a second value, the first value and the second value are both positive numbers, and the first value is smaller than the second value. In this embodiment, the first value is equal to 0, the second value is equal to 1, the terminal dispersion values are respectively equal to 0, 0.166, 0.332, 0.498, 0.664, 0.830, and the colors corresponding to 1 are red respectively , orange, yellow, green, blue, indigo, and purple. And the terminal dispersion values are, for example, between 0 and 0.166, and the corresponding colors gradually change from red to orange.

而在其他的實施例中,該等終端色散值在0與一第三數值,及一第四數值與1之間所對應的都是灰色。該等終端色散值在該第三數值與該第四數值之間所對應的該等顏色包括紅色、橙色、黃色、綠色、藍色、靛色、及紫色。該第三數值例如是0.056,該第四數值例如是0.944,但不以此為限。該等終端色散值分別等於0.167、0.278、0.389、0.5、0.612、0.723、及0.834所對應的該等顏色分別是紅色、橙色、黃色、綠色、藍色、靛色、及紫色。In other embodiments, the terminal dispersion values between 0 and a third value, and between a fourth value and 1 are all gray. The colors corresponding to the terminal dispersion values between the third value and the fourth value include red, orange, yellow, green, blue, indigo, and violet. The third numerical value is, for example, 0.056, and the fourth numerical value is, for example, 0.944, but not limited thereto. The colors corresponding to the terminal dispersion values equal to 0.167, 0.278, 0.389, 0.5, 0.612, 0.723, and 0.834 are red, orange, yellow, green, blue, indigo, and violet, respectively.

此外,在其他的實施例中,該第一數值及該第二數值也可以是其他數值,且該彩色色譜所包含的各種顏色也可以不包括紅色、橙色、黃色、綠色、藍色、靛色、及紫色這七種顏色之其中部分者,亦即該彩色色譜所包含的顏色種類並不以本實施例為限。In addition, in other embodiments, the first numerical value and the second numerical value may also be other numerical values, and the various colors included in the color spectrum may also not include red, orange, yellow, green, blue, and indigo. , and some of the seven colors of purple, that is, the types of colors included in the color spectrum are not limited to this embodiment.

於步驟S2,該處理單元11根據該攝影鏡頭12對該物體所拍攝的影像,對該物體表面的該預定區域的每一該畫素,計算自該行動裝置的一觀察位置與該畫素的一觀察者視角。更具體地說,該觀察位置是該行動裝置1的該攝影鏡頭12的一攝影鏡頭位置,而對應每一該畫素的該觀察者視角=normalize(該攝影鏡頭位置-該畫素的位置),normalize是一標準化函數。舉例來說,該攝影鏡頭位置的空間坐標是(0,0,0),其中一個該畫素的空間坐標是(3,3,3),則該觀察者視角= normalize(-3,-3,-3)=(-0.6,-0.6,-0.6)。In step S2, the processing unit 11 calculates an observation position of the mobile device and the distance of the pixel for each pixel of the predetermined area on the surface of the object according to the image captured by the photographic lens 12 of the object. An observer's point of view. More specifically, the observation position is a camera lens position of the camera lens 12 of the mobile device 1, and the observer angle of view corresponding to each pixel=normalize(the camera lens position−the position of the pixel) , normalize is a normalization function. For example, the spatial coordinate of the camera lens position is (0, 0, 0), and one of the spatial coordinates of the pixel is (3, 3, 3), then the observer's angle of view = normalize(-3,-3 ,-3)=(-0.6,-0.6,-0.6).

於步驟S3,該處理單元11將該法線貼圖在該預定區域上時的該等法線向量轉換為相對於該觀察位置的一世界空間(World space)的多個世界法線向量。已知的圖形學已定義該切線空間及該世界空間,也就是說,每一該世界法線向量就是每一該法線向量由該切線空間的坐標系轉換至該世界空間的坐標系的坐標轉換結果。In step S3, the processing unit 11 converts the normal vectors when the normal map is on the predetermined area into a plurality of world normal vectors in a world space relative to the viewing position. Known graphics have defined the tangent space and the world space, that is, each of the world normal vectors is the coordinate of each of the normal vectors transformed from the coordinate system of the tangent space to the coordinate system of the world space conversion result.

於步驟S4,該處理單元11計算在該預定區域的每一該畫素的該世界法線向量與該觀察者視角的內積,以獲得一色散數值。此外,當所計算的該色散數值大於等於該第二數值時,則該色散數值等於該第二數值,例如算出是1.1時,則等於1,而當所計算的該色散數值小於等於該第一數值時,則該色散數值等於該第一數值。該處理單元11再根據該彩色色譜判斷該終端色散值等於該色散數值時所對應的該顏色,並定義該顏色為一色散結果。In step S4, the processing unit 11 calculates the inner product of the world normal vector of each pixel in the predetermined area and the viewing angle of the observer to obtain a dispersion value. In addition, when the calculated dispersion value is greater than or equal to the second value, the dispersion value is equal to the second value, for example, when the calculated dispersion value is 1.1, it is equal to 1, and when the calculated dispersion value is less than or equal to the first value When it is a value, the dispersion value is equal to the first value. The processing unit 11 then determines the color corresponding to when the terminal dispersion value is equal to the dispersion value according to the color spectrum, and defines the color as a dispersion result.

於步驟S5,該處理單元11以擴增實境的方式藉由該顯示單元13在該物體表面的該預定區域的每一該畫素上顯示對應的該色散結果,以產生彩色炫光。更詳細地說,承續前例,該處理單元11是將該卡片三維模型8以擴增實境的方式顯示於該物體上,且在該卡片三維模型8的該第二部分模型82在圖3中所顯示的可見區域(即該預定區域)的每一該畫素上顯示對應的該色散結果,以產生彩色炫光。此外,該處理單元11還能夠在該卡片三維模型8的該第一部分模型81在圖3中所顯示的可見區域作其他影像效果的顯示,例如該卡片的一角色的圖像或頭像等等。In step S5, the processing unit 11 displays the corresponding dispersion result on each pixel in the predetermined area of the object surface through the display unit 13 in an augmented reality manner to generate color glare. More specifically, following the previous example, the processing unit 11 displays the three-dimensional card model 8 on the object in an augmented reality manner, and the second part of the model 82 of the three-dimensional card model 8 is shown in FIG. 3 The corresponding dispersion result is displayed on each pixel of the visible area (ie, the predetermined area) displayed in , so as to generate colored glare. In addition, the processing unit 11 can also display other image effects in the visible area of the first part model 81 of the card 3D model 8 shown in FIG. 3 , such as an image or avatar of a character of the card.

參閱圖1、圖3、與圖4,圖4舉例說明對應圖3中所顯示的該預定區域的該法線貼圖83。該法線貼圖83例如包含相同大小的20個子區域,則每一該子區域包含與畫素數量相同的36*16的該法線向量。此外,每一該子區域的該等畫素所對應的該等法線向量都相同,即同一個該子區域的36*16個該法線向量都相同,且相鄰的任何兩個該子區域的該等畫素所對應的兩個該法線向量不同,例如該子區域831的該法線向量與相鄰的該等子區域832~835的四個法線向量不相同。且相鄰的任何兩個該子區域的該等畫素所對應的兩個該法線向量僅在三個維度(如X軸、Y軸、Z軸)之其中一個維度不相同,例如該子區域831與該子區域832的兩個該法線向量分別是(0,0,1)及(0,0,0.7)。如此一來,該處理單元11能夠在相對兩個或三個維度不同的情況下以較少的運算量,在擴增實境中該卡片的該預定區域顯示出20個矩形方塊的彩色眩光效果。Referring to FIGS. 1 , 3 , and 4 , FIG. 4 illustrates the normal map 83 corresponding to the predetermined area shown in FIG. 3 . The normal map 83 includes, for example, 20 sub-regions of the same size, and each of the sub-regions includes the same 36*16 normal vector as the number of pixels. In addition, the normal vectors corresponding to the pixels of each sub-region are the same, that is, the 36*16 normal vectors of the same sub-region are the same, and any two adjacent sub-regions have the same normal vectors. The two normal vectors corresponding to the pixels of the region are different. For example, the normal vector of the sub-region 831 is different from the four normal vectors of the adjacent sub-regions 832 to 835 . And the two normal vectors corresponding to the pixels of any two adjacent sub-regions are only different in one of the three dimensions (such as X-axis, Y-axis, Z-axis). The two normal vectors of the region 831 and the sub-region 832 are (0, 0, 1) and (0, 0, 0.7), respectively. In this way, the processing unit 11 can display the color glare effect of 20 rectangular squares in the predetermined area of the card in the augmented reality with less computation when the two or three dimensions are different. .

參閱圖1、圖5、與圖6,舉例說明該卡片所要顯現的另一種視覺效果,其中,圖5是對應該物體的另一卡片三維模型9,該卡片三維模型9包含一第一部份模型91、及一第二部分模型92、及一第三部分模型93。圖5僅顯示該卡片三維模型9的正視圖,該物體表面的該預定區域是該第二部分模型92及該第三部分模型93在圖5中所顯示的可見區域。圖6說明對應圖5中所顯示的該預定區域的兩個該法線貼圖94、95,該法線貼圖94例如包含乳牛斑形狀的12個子區域,該法線貼圖95例如包含相同大小的16個子區域,則該處理單元11在擴增實境中該卡片的該預定區域顯示出位於邊框位置的12個乳牛斑形狀的彩色眩光效果,及16個矩形方塊的彩色眩光效果。也就是說,本發明擴增實境的顯示方法也能夠應用於多數個不同的法線貼圖的實施態樣。Referring to Figure 1, Figure 5, and Figure 6, another visual effect to be displayed by the card is illustrated, wherein Figure 5 is another three-dimensional model 9 of the card corresponding to the object, and the three-dimensional model of the card 9 includes a first part Model 91 , a second partial model 92 , and a third partial model 93 . FIG. 5 only shows a front view of the three-dimensional model 9 of the card, and the predetermined area of the surface of the object is the visible area of the second partial model 92 and the third partial model 93 shown in FIG. 5 . FIG. 6 illustrates two of the normal maps 94, 95 corresponding to the predetermined area shown in FIG. 5, the normal map 94 includes, for example, 12 sub-regions in the shape of a cow spot, and the normal map 95 includes, for example, 16 sub-regions of the same size sub-areas, the processing unit 11 displays 12 cow spot-shaped colored glare effects and 16 rectangular square colored glare effects at the frame position in the predetermined area of the card in the augmented reality. That is to say, the augmented reality display method of the present invention can also be applied to a plurality of different normal map implementations.

綜上所述,本發明藉由該行動裝置1根據該法線貼圖,先計算該物體表面的該預定區域的每一該畫素所對應的該世界法線向量,再計算每一該畫素所對應的該色散數值,並根據該彩色色譜決定每一該畫素所對應的該色散結果,而能夠以擴增實境的方式在該物體表面的該預定區域產生七彩炫光、鑽石炫光、或其他各種顏色炫光的視覺效果,故確實能達成本發明的目的。To sum up, the present invention uses the mobile device 1 to first calculate the world normal vector corresponding to each pixel in the predetermined area of the object surface according to the normal map, and then calculate each pixel The corresponding dispersion value, and the dispersion result corresponding to each pixel is determined according to the color spectrum, so that colorful glare and diamond glare can be generated in the predetermined area on the surface of the object in an augmented reality manner , or other visual effects of various color glare, so it can indeed achieve the purpose of the present invention.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above are only examples of the present invention, and should not limit the scope of implementation of the present invention. Any simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the contents of the patent specification are still included in the scope of the present invention. within the scope of the invention patent.

1:行動裝置 11:處理單元 12:攝影鏡頭 13:顯示單元 14:儲存單元 8、9:卡片三維模型 81、91:第一部份模型 82、92:第二部份模型 83、94、95:法線貼圖 831~835:子區域 93:第三部份模型 S1~S5:步驟1: Mobile device 11: Processing unit 12: Camera Lens 13: Display unit 14: Storage unit 8, 9: 3D model of the card 81, 91: The first part of the model 82, 92: The second part of the model 83, 94, 95: normal maps 831~835: Sub area 93: The third part of the model S1~S5: Steps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一方塊圖,說明本發明擴增實境的顯示方法所適用的一行動裝置; 圖2是一流程圖,說明本發明擴增實境的顯示方法的一實施例; 圖3是一示意圖,說明該實施例的一卡片三維模型; 圖4是一示意圖,輔助圖3說明一法線貼圖; 圖5是一示意圖,說明該實施例的另一卡片三維模型;及 圖6是一示意圖,輔助圖5說明另外兩個法線貼圖。 Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, wherein: FIG. 1 is a block diagram illustrating a mobile device to which the augmented reality display method of the present invention is applicable; FIG. 2 is a flow chart illustrating an embodiment of the display method of augmented reality of the present invention; Figure 3 is a schematic diagram illustrating a three-dimensional model of a card of this embodiment; FIG. 4 is a schematic diagram to assist FIG. 3 to illustrate a normal map; Fig. 5 is a schematic diagram illustrating another three-dimensional model of the card of this embodiment; and FIG. 6 is a schematic diagram that assists FIG. 5 to illustrate two other normal maps.

S1~S5:步驟 S1~S5: Steps

Claims (9)

一種擴增實境的顯示方法,適用於一行動裝置且藉由該行動裝置實施,並包含: (A)儲存對應一物體表面的一預定區域的一法線貼圖,及一個彩色色譜,該法線貼圖包括該預定區域的每一畫素在一切線空間所對應的一法線向量,該彩色色譜包括多個顏色與多個終端色散值之間的對應關係; (B)對該物體表面的該預定區域的每一該畫素,計算自該行動裝置的一觀察位置與該畫素的一觀察者視角; (C)將該法線貼圖在該預定區域上時的該等法線向量轉換為相對於該觀察位置的一世界空間的多個世界法線向量; (D)計算在該預定區域的每一該畫素的該世界法線向量與該觀察者視角的內積,以獲得一色散數值,並根據該彩色色譜判斷該終端色散值等於該色散數值時所對應的該顏色,並定義該顏色為一色散結果;及 (E)以擴增實境的方式在該物體表面的該預定區域的每一該畫素上顯示對應的該色散結果,以產生彩色炫光。 A display method of augmented reality, applicable to and implemented by a mobile device, comprising: (A) store a normal map corresponding to a predetermined area of an object surface, and a color spectrum, the normal map includes a normal vector corresponding to each pixel of the predetermined area in the tangent space, the color The color spectrum includes the correspondence between a plurality of colors and a plurality of terminal dispersion values; (B) for each pixel of the predetermined area on the surface of the object, calculate from a viewing position of the mobile device and an observer's viewing angle of the pixel; (C) converting the normal vectors when the normal map is on the predetermined area into a plurality of world normal vectors in a world space relative to the viewing position; (D) Calculate the inner product of the world normal vector of each pixel in the predetermined area and the viewing angle of the observer to obtain a dispersion value, and determine that the terminal dispersion value is equal to the dispersion value according to the color spectrum corresponds to the color, and defines the color as a dispersion result; and (E) displaying the corresponding dispersion result on each pixel of the predetermined area of the object surface in an augmented reality manner to generate colored glare. 如請求項1所述的擴增實境的顯示方法,其中,在步驟(A)中,該等終端色散值介於一第一數值及一第二數值之間,該第一數值及該第二數值都是正數,且該第一數值小於該第二數值。The method for displaying augmented reality as claimed in claim 1, wherein, in step (A), the terminal dispersion values are between a first value and a second value, the first value and the first value Both values are positive, and the first value is less than the second value. 如請求項2所述的擴增實境的顯示方法,其中,在步驟(A)中,該第一數值等於0,該第二數值等於1,該等終端色散值分別等於0、0.166、0.332、0.498、0.664、0.830、及1所對應的該等顏色分別是紅色、橙色、黃色、綠色、藍色、靛色、及紫色。The method for displaying augmented reality according to claim 2, wherein, in step (A), the first value is equal to 0, the second value is equal to 1, and the terminal dispersion values are respectively equal to 0, 0.166, and 0.332 The colors corresponding to , 0.498, 0.664, 0.830, and 1 are red, orange, yellow, green, blue, indigo, and violet, respectively. 如請求項2所述的擴增實境的顯示方法,其中,在步驟(A)中,該第一數值等於0,該第二數值等於1,該等終端色散值在0與一第三數值,及一第四數值與1之間所對應的都是灰色,該等終端色散值在該第三數值與該第四數值之間所對應的該等顏色包括紅色、橙色、黃色、綠色、藍色、靛色、及紫色。The method for displaying augmented reality as claimed in claim 2, wherein, in step (A), the first value is equal to 0, the second value is equal to 1, and the terminal dispersion values are between 0 and a third value , and between a fourth value and 1 are all gray, and the colors corresponding to the terminal dispersion values between the third value and the fourth value include red, orange, yellow, green, blue color, indigo, and purple. 如請求項4所述的擴增實境的顯示方法,其中,在步驟(A)中,該第三數值是0.056,該第四數值是0.944,該等終端色散值分別等於0.167、0.278、0.389、0.5、0.612、0.723、及0.834所對應的該等顏色分別是紅色、橙色、黃色、綠色、藍色、靛色、及紫色。The method for displaying augmented reality according to claim 4, wherein, in step (A), the third numerical value is 0.056, the fourth numerical value is 0.944, and the terminal dispersion values are respectively equal to 0.167, 0.278, and 0.389 The colors corresponding to , 0.5, 0.612, 0.723, and 0.834 are red, orange, yellow, green, blue, indigo, and violet, respectively. 如請求項2所述的擴增實境的顯示方法,其中,在步驟(D)中,當所計算的該色散數值大於等於該第二數值時,則該色散數值等於該第二數值,而當所計算的該色散數值小於等於該第一數值時,則該色散數值等於該第一數值。The method for displaying augmented reality according to claim 2, wherein, in step (D), when the calculated dispersion value is greater than or equal to the second value, the dispersion value is equal to the second value, and When the calculated dispersion value is less than or equal to the first value, the dispersion value is equal to the first value. 如請求項1所述的擴增實境的顯示方法,其中,在步驟(B)中,該觀察位置是該行動裝置的一攝影鏡頭位置,對應每一該畫素的該觀察者視角=normalize(該攝影鏡頭位置-該畫素的位置),normalize是一標準化函數。The method for displaying augmented reality as claimed in claim 1, wherein, in step (B), the observation position is a camera lens position of the mobile device, and the observer's angle of view corresponding to each pixel=normalize (the camera lens position - the pixel position), normalize is a normalization function. 如請求項1所述的擴增實境的顯示方法,其中,在步驟(A)中,該法線貼圖包括多個子區域,每一該子區域的該等畫素所對應的該等法線向量都相同,且相鄰的任何兩個該子區域的該等畫素所對應的兩個該法線向量不同。The method for displaying augmented reality as claimed in claim 1, wherein, in step (A), the normal map includes a plurality of sub-regions, and the normals corresponding to the pixels in each sub-region The vectors are the same, and the two normal vectors corresponding to the pixels of any two adjacent sub-regions are different. 如請求項8所述的擴增實境的顯示方法,其中,在步驟(A)中,相鄰的任何兩個該子區域的該等畫素所對應的兩個該法線向量僅在三個維度之其中一個維度不相同。The method for displaying augmented reality according to claim 8, wherein, in step (A), the two normal vectors corresponding to the pixels of any two adjacent sub-regions are only within three One of the dimensions is not the same.
TW110136832A 2021-10-04 2021-10-04 Augmented reality display method TWI777801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110136832A TWI777801B (en) 2021-10-04 2021-10-04 Augmented reality display method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110136832A TWI777801B (en) 2021-10-04 2021-10-04 Augmented reality display method

Publications (2)

Publication Number Publication Date
TWI777801B true TWI777801B (en) 2022-09-11
TW202316853A TW202316853A (en) 2023-04-16

Family

ID=84958140

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110136832A TWI777801B (en) 2021-10-04 2021-10-04 Augmented reality display method

Country Status (1)

Country Link
TW (1) TWI777801B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012051040A1 (en) * 2010-10-13 2012-04-19 Qualcomm Incorporated Text-based 3d augmented reality
CN105051792A (en) * 2012-12-26 2015-11-11 英特尔公司 Apparatus for enhancement of 3-D images using depth mapping and light source synthesis
US20190035159A1 (en) * 2015-07-17 2019-01-31 Bao Tran Systems and methods for computer assisted operation
TW201915944A (en) * 2017-10-11 2019-04-16 香港商阿里巴巴集團服務有限公司 Image processing method, apparatus, and storage medium
CN111133365A (en) * 2017-05-01 2020-05-08 奇跃公司 Matching of content to a spatial 3D environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012051040A1 (en) * 2010-10-13 2012-04-19 Qualcomm Incorporated Text-based 3d augmented reality
CN105051792A (en) * 2012-12-26 2015-11-11 英特尔公司 Apparatus for enhancement of 3-D images using depth mapping and light source synthesis
US20190035159A1 (en) * 2015-07-17 2019-01-31 Bao Tran Systems and methods for computer assisted operation
CN111133365A (en) * 2017-05-01 2020-05-08 奇跃公司 Matching of content to a spatial 3D environment
TW201915944A (en) * 2017-10-11 2019-04-16 香港商阿里巴巴集團服務有限公司 Image processing method, apparatus, and storage medium

Also Published As

Publication number Publication date
TW202316853A (en) 2023-04-16

Similar Documents

Publication Publication Date Title
CN107564089B (en) Three-dimensional image processing method, device, storage medium and computer equipment
CN109076172B (en) Method and system for generating an efficient canvas view from an intermediate view
US10096157B2 (en) Generation of three-dimensional imagery from a two-dimensional image using a depth map
Raskar et al. Table-top spatially-augmented realty: bringing physical models to life with projected imagery
US11004267B2 (en) Information processing apparatus, information processing method, and storage medium for generating a virtual viewpoint image
US20170309075A1 (en) Image to item mapping
CN105513112A (en) Image processing method and device
CN110070621A (en) Electronic device, the method and computer readable media for showing augmented reality scene
Ledda et al. A wide field, high dynamic range, stereographic viewer
CN106940897A (en) A kind of method that real shadow is intervened in AR scenes
CN108509173A (en) Image shows system and method, storage medium, processor
US20180213215A1 (en) Method and device for displaying a three-dimensional scene on display surface having an arbitrary non-planar shape
KR102143319B1 (en) How to render an omnidirectional spherical light field
US9897806B2 (en) Generation of three-dimensional imagery to supplement existing content
TWI777801B (en) Augmented reality display method
US11043019B2 (en) Method of displaying a wide-format augmented reality object
CN106846449B (en) Rendering method and device for visual angle material or map
US11688150B2 (en) Color space mapping for intuitive surface normal visualization
WO2014119555A1 (en) Image processing device, display device and program
JP7125847B2 (en) 3D model display device, 3D model display method and 3D model display program
Lai et al. Exploring manipulation behavior on video see-through head-mounted display with view interpolation
CN110853147B (en) Three-dimensional face transformation method
CN110913198B (en) VR image transmission method
CN108921097A (en) Human eye visual angle detection method, device and computer readable storage medium
CN110390686A (en) Naked eye 3D display method and system

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent