platform/core/uifw/dali-toolkit.git
20 months agoDALi Version 2.2.22 98/291398/1 dali_2.2.22
Adam Bialogonski [Fri, 14 Apr 2023 09:25:24 +0000 (10:25 +0100)]
DALi Version 2.2.22

Change-Id: I90e8a14b7422a708cedfd860a4676ad2153bc596

20 months agoMerge "Change public member variable to private" into devel/master
Seungho BAEK [Fri, 7 Apr 2023 01:32:05 +0000 (01:32 +0000)]
Merge "Change public member variable to private" into devel/master

20 months agoChange public member variable to private 59/290759/7
seungho baek [Sat, 1 Apr 2023 14:21:08 +0000 (23:21 +0900)]
Change public member variable to private

Change-Id: I8ba514c1dfcbd7e5f82aaa898b37d83e2ece890d
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
20 months agoMerge "Fix svace/coverity issue (initialize value at Material)" into devel/master
David Steele [Thu, 6 Apr 2023 15:37:05 +0000 (15:37 +0000)]
Merge "Fix svace/coverity issue (initialize value at Material)" into devel/master

20 months agoFix svace/coverity issue (initialize value at Material) 19/291019/2
Eunki, Hong [Thu, 6 Apr 2023 12:25:32 +0000 (21:25 +0900)]
Fix svace/coverity issue (initialize value at Material)

Change-Id: Ic0b4643e848704d3e60a527b1d5bbe524bb68ee1
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
20 months agoMerge "DALi Version 2.2.21" into devel/master
David Steele [Thu, 6 Apr 2023 13:57:38 +0000 (13:57 +0000)]
Merge "DALi Version 2.2.21" into devel/master

20 months agoDALi Version 2.2.21 32/291032/1 dali_2.2.21
David Steele [Thu, 6 Apr 2023 13:47:57 +0000 (14:47 +0100)]
DALi Version 2.2.21

Change-Id: I34160b58b5717dac53282a0804ab52a1e1a5d6bb

20 months agoMerge "Use c-style string when webview loads contents." into devel/master
dongsug song [Thu, 6 Apr 2023 05:41:35 +0000 (05:41 +0000)]
Merge "Use c-style string when webview loads contents." into devel/master

20 months agoMerge "Use ModelNode / ModelPrimitive / Material instead of Actor / Renderer" into...
Seungho BAEK [Thu, 6 Apr 2023 04:17:56 +0000 (04:17 +0000)]
Merge "Use ModelNode / ModelPrimitive / Material instead of Actor / Renderer" into devel/master

20 months agoUse ModelNode / ModelPrimitive / Material instead of Actor / Renderer 88/289588/61
seungho baek [Fri, 10 Mar 2023 04:38:01 +0000 (13:38 +0900)]
Use ModelNode / ModelPrimitive / Material instead of Actor / Renderer

 - This patch is based on the previous patch
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/288075/

Change-Id: I93f61a18dd06bc8fa7c08fc65ef9c42d62b510e2
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
20 months agoFix skybox type auto issue 62/290862/4
seungho baek [Tue, 4 Apr 2023 08:19:51 +0000 (17:19 +0900)]
Fix skybox type auto issue

Change-Id: I5e59773428f598393d3b30070dbdeb1067f71448
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
20 months agoUse c-style string when webview loads contents. 50/290850/2
huayong.xu [Tue, 4 Apr 2023 07:49:47 +0000 (15:49 +0800)]
Use c-style string when webview loads contents.

Change-Id: I541be6fddab140561f16af339adfe82bf05ecd2e

20 months agoMerge "Fix UTC error for TextSpannable" into devel/master
Eunki Hong [Fri, 31 Mar 2023 13:22:35 +0000 (13:22 +0000)]
Merge "Fix UTC error for TextSpannable" into devel/master

20 months agoDALi Version 2.2.20 34/290734/1 dali_2.2.20
Adam Bialogonski [Fri, 31 Mar 2023 09:19:48 +0000 (10:19 +0100)]
DALi Version 2.2.20

Change-Id: I74c1ab2b815533c17807c701613725aea7cf4cca

20 months agoFix UTC error for TextSpannable 30/290730/1
Eunki, Hong [Fri, 31 Mar 2023 09:09:47 +0000 (18:09 +0900)]
Fix UTC error for TextSpannable

FontDescriptionRun is not null-terminate string

Change-Id: I5f8704c850f2fb3ad213b54a7a23897efe2cdeb6
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoAllow to use premultiplied external texture 55/290455/7
Eunki Hong [Sat, 25 Mar 2023 12:26:04 +0000 (21:26 +0900)]
Allow to use premultiplied external texture

FrameBuffer result colortexture is premultiplied always.
So make we always use premultiplied texture.

And make a way to user determine native image source is premultiplied or not.

+

Since FBO texture always premultiplied, revert scene view's trick
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/285486

Change-Id: I72bfe4a04a69c259d983e9dc74086cefcdd4cc7d
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
21 months agoMerge "DALi Version 2.2.19" into devel/master
David Steele [Fri, 24 Mar 2023 11:27:24 +0000 (11:27 +0000)]
Merge "DALi Version 2.2.19" into devel/master

21 months agoDALi Version 2.2.19 29/290429/1 dali_2.2.19
Adeel Kazmi [Fri, 24 Mar 2023 10:54:37 +0000 (10:54 +0000)]
DALi Version 2.2.19

Change-Id: Ic8c61de8472023dbf1245d3b049fe070f738c857

21 months agoFix coverity issue (no POSITION attribute + use after move) 18/290418/1
Eunki, Hong [Fri, 24 Mar 2023 07:58:03 +0000 (16:58 +0900)]
Fix coverity issue (no POSITION attribute + use after move)

Change-Id: Ib2239f847ebe9606a331e5d2148cc38c36445ad7
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoMerge "Reset AsyncTask what we don't need anymore" into devel/master
Eunki Hong [Fri, 24 Mar 2023 04:43:29 +0000 (04:43 +0000)]
Merge "Reset AsyncTask what we don't need anymore" into devel/master

21 months agoMerge "Ensure BaseHandle class move noexcept (toolkit public-api)" into devel/master
Eunki Hong [Fri, 24 Mar 2023 04:42:38 +0000 (04:42 +0000)]
Merge "Ensure BaseHandle class move noexcept (toolkit public-api)" into devel/master

21 months agoMake equirectangular environment also use mipmap + Fix brdf error 33/290333/2
Eunki, Hong [Thu, 23 Mar 2023 07:31:45 +0000 (16:31 +0900)]
Make equirectangular environment also use mipmap + Fix brdf error

Change-Id: Iaa303a31c4223197b295a6f722dee3c0ebaa6216
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoReset AsyncTask what we don't need anymore 96/290396/1
Eunki, Hong [Fri, 24 Mar 2023 03:24:15 +0000 (12:24 +0900)]
Reset AsyncTask what we don't need anymore

Change-Id: Iffdf810c296f793fd6b0bb437e995baa5a1d2009
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoEnsure BaseHandle class move noexcept (toolkit public-api) 29/289929/8
Eunki Hong [Wed, 15 Mar 2023 17:05:28 +0000 (02:05 +0900)]
Ensure BaseHandle class move noexcept (toolkit public-api)

Add noexcept keyward on public-api

Change-Id: I234920fcb0c661e10940a08f0a78e84a85b4e5cb
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
21 months agoMerge "Fix svace issue (strerror -> strerror_r)" into devel/master
Eunki Hong [Fri, 24 Mar 2023 02:08:08 +0000 (02:08 +0000)]
Merge "Fix svace issue (strerror -> strerror_r)" into devel/master

21 months agoAdd public header files to dali-toolkit.h 48/290348/1
Heeyong Song [Thu, 23 Mar 2023 09:48:43 +0000 (18:48 +0900)]
Add public header files to dali-toolkit.h

Change-Id: I05cd67275014800ea3d3014c9040a3c0d4e3ec83

21 months agoMerge "Use Mipmap level to sample specular texture" into devel/master
Eunki Hong [Thu, 23 Mar 2023 07:04:25 +0000 (07:04 +0000)]
Merge "Use Mipmap level to sample specular texture" into devel/master

21 months agoMerge "Change scope of GlyphBufferData" into devel/master
Eunki Hong [Thu, 23 Mar 2023 06:11:18 +0000 (06:11 +0000)]
Merge "Change scope of GlyphBufferData" into devel/master

21 months agoMerge "Add a condition to ensure FontClient" into devel/master
Bowon Ryu [Thu, 23 Mar 2023 05:47:58 +0000 (05:47 +0000)]
Merge "Add a condition to ensure FontClient" into devel/master

21 months agoFix svace issue (strerror -> strerror_r) 02/290302/2
Eunki, Hong [Thu, 23 Mar 2023 03:16:42 +0000 (12:16 +0900)]
Fix svace issue (strerror -> strerror_r)

SVACE say to us that Don't use strerror.

Change-Id: Ib0a884b23e4278e86189a7ca727b150b24d26a06
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoChange scope of GlyphBufferData 31/289931/5
Eunki Hong [Wed, 15 Mar 2023 17:36:16 +0000 (02:36 +0900)]
Change scope of GlyphBufferData

Let we don't make GlyphBufferData as subclass of FontClient

Change-Id: I70233c29e878f0e3ea344a849917ffc7f4eda19f
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
21 months agoMerge "Make sure that global variables are initialized lazily in scene3d." into devel...
dongsug song [Wed, 22 Mar 2023 07:31:18 +0000 (07:31 +0000)]
Merge "Make sure that global variables are initialized lazily in scene3d." into devel/master

21 months agoAdd a condition to ensure FontClient 54/290154/2
Bowon Ryu [Tue, 21 Mar 2023 02:15:12 +0000 (11:15 +0900)]
Add a condition to ensure FontClient

https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/290153/

Change-Id: Ic67e9d870a12456fe4023d23377d90b753b1e431
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoMerge "Revert "Adjust text fit condition"" into devel/master
joogab yun [Tue, 21 Mar 2023 04:26:12 +0000 (04:26 +0000)]
Merge "Revert "Adjust text fit condition"" into devel/master

21 months agoMerge "Let we can use emissiveFactor without Texture" into devel/master
Eunki Hong [Mon, 20 Mar 2023 15:58:16 +0000 (15:58 +0000)]
Merge "Let we can use emissiveFactor without Texture" into devel/master

21 months agoLet we can use emissiveFactor without Texture 57/289957/2
Eunki, Hong [Thu, 16 Mar 2023 06:49:45 +0000 (15:49 +0900)]
Let we can use emissiveFactor without Texture

Change-Id: Ibd8a991f45099aad1be1f2cf97c9812e39bd4969
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoRemove unused header file - pixel-data-devel.h 40/290140/1
Eunki, Hong [Mon, 20 Mar 2023 13:03:55 +0000 (22:03 +0900)]
Remove unused header file - pixel-data-devel.h

Current text-visual don't use it, and... Now dali-core remove that file.

Change-Id: Iab994c2685350e57f43bed94dad3914b8264183a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoMake sure that global variables are initialized lazily in scene3d. 33/290133/2
huayong.xu [Mon, 20 Mar 2023 11:08:48 +0000 (19:08 +0800)]
Make sure that global variables are initialized lazily in scene3d.

Change-Id: Iad6bb2e4f10c18141a8a0c2f92eaf2d5b68abd9d

21 months agoRevert "Adjust text fit condition" 30/290130/1
joogab.yun [Mon, 20 Mar 2023 10:41:13 +0000 (19:41 +0900)]
Revert "Adjust text fit condition"

This reverts commit 52b3a0d3057c239c2ca75321864d687d09a9f01f.

Change-Id: Ibfda60c4f6a509a9febf63fa9ed3752b6758ffcb

21 months agoMerge "Remove svg task" into devel/master
Heeyong Song [Mon, 20 Mar 2023 06:38:24 +0000 (06:38 +0000)]
Merge "Remove svg task" into devel/master

21 months agoRemove svg task 73/290073/1
Heeyong Song [Mon, 20 Mar 2023 04:59:52 +0000 (13:59 +0900)]
Remove svg task

Change-Id: I802d0070707a36aa7997d2d100ceceeb1b5c101b

21 months agoMerge "remove logic for comparing clipped state." into devel/master
Wonsik Jung [Mon, 20 Mar 2023 04:33:56 +0000 (04:33 +0000)]
Merge "remove logic for comparing clipped state." into devel/master

21 months agoAdd trace log to check text performance 20/289920/3
Bowon Ryu [Wed, 15 Mar 2023 11:02:05 +0000 (20:02 +0900)]
Add trace log to check text performance

Change-Id: Id001ff9d537794c8f1a0fce125d71be6566378b2
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoUse Mipmap level to sample specular texture 53/290053/6
seungho baek [Fri, 17 Mar 2023 14:02:17 +0000 (23:02 +0900)]
Use Mipmap level to sample specular texture

Change-Id: If1f4346b22571600d490150bd05bf851eefe1a24
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
21 months agoRemove Duplicated code in gltf2-util using template 57/290057/2
seungho baek [Sat, 18 Mar 2023 04:29:20 +0000 (13:29 +0900)]
Remove Duplicated code in gltf2-util using template

Change-Id: I5e181ef0925eb5151151849be3dbcef0f888c5f3
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
21 months agoMerge "DALi Version 2.2.18" into devel/master
Adeel Kazmi [Fri, 17 Mar 2023 12:49:39 +0000 (12:49 +0000)]
Merge "DALi Version 2.2.18" into devel/master

21 months agoDALi Version 2.2.18 39/290039/1 dali_2.2.18
David Steele [Fri, 17 Mar 2023 12:43:36 +0000 (12:43 +0000)]
DALi Version 2.2.18

Change-Id: I508166915b11339b6554571edcbba145209f56fb

21 months agoMerge "Fix heap-buffer-overflow & use-after-free issue." into devel/master
dongsug song [Fri, 17 Mar 2023 05:35:20 +0000 (05:35 +0000)]
Merge "Fix heap-buffer-overflow & use-after-free issue." into devel/master

21 months agoMerge "Minor optimize for Text (Add API for length of text + Cache DPI)" into devel...
Eunki Hong [Thu, 16 Mar 2023 02:27:51 +0000 (02:27 +0000)]
Merge "Minor optimize for Text (Add API for length of text + Cache DPI)" into devel/master

21 months agoWhen TextFit operates, it operates based on the initially set LineSize. 10/289710/4
joogab.yun [Tue, 14 Mar 2023 01:01:34 +0000 (10:01 +0900)]
When TextFit operates, it operates based on the initially set LineSize.

You may need to add LineSize to TextFit items.

It is currently based on the TextLabel LineSize at the time the TextFit property is set.

Change-Id: I0d4661da7b653e8e765c2b029ce06749e01c8bd4

21 months agoMinor optimize for Text (Add API for length of text + Cache DPI) 40/289840/6
Eunki, Hong [Tue, 14 Mar 2023 12:00:30 +0000 (21:00 +0900)]
Minor optimize for Text (Add API for length of text + Cache DPI)

Since we don't need whole text information at UpdateRenderer,
just get length of text.
(Actually, we only need whether text is empty or not)

+

When we use PIXEL_SIZE instead of POINT_SIZE, FontClient::Get() give some overhead.
To avoid singletone service access, get DPI only one time, and cache it.

TODO : Should we consider DPI changed case?

Change-Id: If1e5b29b8c0b243753c19be20fbef432e6f62f15
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoFix heap-buffer-overflow & use-after-free issue. 30/289230/12
huayong.xu [Tue, 14 Mar 2023 06:01:42 +0000 (14:01 +0800)]
Fix heap-buffer-overflow & use-after-free issue.

Change-Id: Ic3ca8eba0eb795566159aa6ab105ae5a58c4ec61

21 months agoIgnore non-exist property reanimated 80/289780/1
Eunki, Hong [Tue, 14 Mar 2023 08:30:32 +0000 (17:30 +0900)]
Ignore non-exist property reanimated

Change-Id: Ia3681f333e63f7c9f72cd910fb58a805e7be71ef
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoChange namings of gltf-util 67/289667/1
seungho baek [Mon, 13 Mar 2023 06:30:44 +0000 (15:30 +0900)]
Change namings of gltf-util

Change-Id: I833fd223c58ace2da4f6528542356909d88fb0ff
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
21 months agoMerge "Coverity issue fixes" into devel/master
Adeel Kazmi [Fri, 10 Mar 2023 10:54:42 +0000 (10:54 +0000)]
Merge "Coverity issue fixes" into devel/master

21 months agoMerge "DALi Version 2.2.17" into devel/master
Adeel Kazmi [Fri, 10 Mar 2023 10:36:55 +0000 (10:36 +0000)]
Merge "DALi Version 2.2.17" into devel/master

21 months agoDALi Version 2.2.17 19/289619/1 dali_2.2.17
Adeel Kazmi [Fri, 10 Mar 2023 10:29:49 +0000 (10:29 +0000)]
DALi Version 2.2.17

Change-Id: I7deb53256547432686a2d4d8eb4b29455a3b67b6

21 months agoremove logic for comparing clipped state. 91/289591/1
Hosang Kim [Mon, 6 Mar 2023 10:24:39 +0000 (19:24 +0900)]
remove logic for comparing clipped state.

A child can be visible even if clip mode outside of parent.
So a object is actually shown on screen but SHOWING state is false.

Change-Id: I74b59f99783c6ade8029a3be5166cf9a8de36011

21 months agoMerge "Fix text autoscroll issue" into devel/master
Bowon Ryu [Fri, 10 Mar 2023 03:43:35 +0000 (03:43 +0000)]
Merge "Fix text autoscroll issue" into devel/master

21 months agoCoverity issue fixes 39/289539/5
Adam Bialogonski [Thu, 9 Mar 2023 11:39:25 +0000 (11:39 +0000)]
Coverity issue fixes

Change-Id: I6aa1f1ead1a27ee1c4ab3d7dd0fff762e16a2e9c
Signed-off-by: Adam Bialogonski <adam.b@samsung.com>
21 months agoFix text autoscroll issue 41/289541/1
Bowon Ryu [Thu, 9 Mar 2023 09:19:42 +0000 (18:19 +0900)]
Fix text autoscroll issue

This patch fixes the side effect of the previous condition and
prevents useless meassge in multiline case.

Change-Id: I7314903b8f0395578954d49459aa134180580c3b
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
21 months agoDetermine priority type for each task 43/289443/5
Eunki, Hong [Tue, 7 Mar 2023 23:32:57 +0000 (08:32 +0900)]
Determine priority type for each task

For example, remote image loading might be heavy process.
So let we give some hints for this tasks priority as LOW.
If we set priority as low, Remote image loading didn't use
whole AsyncTaskManager's threads.

Change-Id: Ife22517deff47b7f4da769bad2b97f472fa8efef
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoMerge "Remove useless uniform register" into devel/master
Eunki Hong [Thu, 9 Mar 2023 06:15:50 +0000 (06:15 +0000)]
Merge "Remove useless uniform register" into devel/master

21 months agoMake safe conversion from uint32_t to streamsize 65/289465/1
seungho baek [Wed, 8 Mar 2023 06:23:52 +0000 (15:23 +0900)]
Make safe conversion from uint32_t to streamsize

Change-Id: I575d11e330723fe53528a72b3abfaccef4c39523
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
21 months agoRemove useless uniform register 36/289436/2
Eunki, Hong [Tue, 7 Mar 2023 17:17:32 +0000 (02:17 +0900)]
Remove useless uniform register

Current image visual didn't use uPixelAlign. We can remove this property.

Change-Id: Ie61e299e77c8ff1ccce8edcea7575640dd863e91
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoClean up Scene3D namespace and header definition 32/289432/3
Eunki, Hong [Tue, 7 Mar 2023 16:17:01 +0000 (01:17 +0900)]
Clean up Scene3D namespace and header definition

Change-Id: I28f91a4fb9af661ff61a12f00c1f6fd900cbdeec
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoMerge changes I048d8903,Ib84dd28c into devel/master
Adeel Kazmi [Tue, 7 Mar 2023 14:06:14 +0000 (14:06 +0000)]
Merge changes I048d8903,Ib84dd28c into devel/master

* changes:
  Add glb-loader to load gltf2-binary
  Add model-loader to abstract gltf2-loader and dli-loader

21 months agoAdd glb-loader to load gltf2-binary 71/288871/20
seungho baek [Fri, 24 Feb 2023 01:40:25 +0000 (10:40 +0900)]
Add glb-loader to load gltf2-binary

 - extract gltf2-util to share it in gltf2-loader and glb-loader

Change-Id: I048d8903d27fea47a322dcf4d4cc56a16c10acec

21 months agoAdd model-loader to abstract gltf2-loader and dli-loader 07/288607/30
seungho baek [Mon, 20 Feb 2023 08:19:39 +0000 (17:19 +0900)]
Add model-loader to abstract gltf2-loader and dli-loader

 - Like glb, we need to add some new type of model.
 - This abstraction can make easy to add new model file format.

Change-Id: Ib84dd28c082903295ff1295a5c2d4da9a74ef8ca

21 months agoGet NaturalSize only if required 93/289393/2
Eunki, Hong [Tue, 7 Mar 2023 04:35:49 +0000 (13:35 +0900)]
Get NaturalSize only if required

Since "GetClosestImageSize" spend a lot of time,
let we setup fitting mode only if we use it.

Change-Id: Id08c0d08c1784b60f4c3bccecf9affecdda8fc61
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
21 months agoMerge "Enable automated tests that load the exercise DLI model" into devel/master
Adeel Kazmi [Fri, 3 Mar 2023 11:20:00 +0000 (11:20 +0000)]
Merge "Enable automated tests that load the exercise DLI model" into devel/master

21 months agoDALi Version 2.2.16 65/289265/1 dali_2.2.16
Adam Bialogonski [Fri, 3 Mar 2023 10:25:48 +0000 (10:25 +0000)]
DALi Version 2.2.16

Change-Id: I2e65a45440d0296de4748e3a10b1b1031557df7f

21 months agoEnable automated tests that load the exercise DLI model 03/289203/1
Richard [Thu, 2 Mar 2023 11:04:45 +0000 (11:04 +0000)]
Enable automated tests that load the exercise DLI model

Change-Id: Ife30d9c271d28589b52e3f0079638bd612cce3f6

21 months agoMake multiple roots model share the resources. 01/289101/2
Eunki Hong [Wed, 1 Mar 2023 10:22:55 +0000 (19:22 +0900)]
Make multiple roots model share the resources.

Previous code generate new refcounts per each scene roots.
If one model file has multiple roots, then each root didn't share there
resouces each other.

And also, due to the resource cache patch block multiple RawResouces loaded,
multiple roots scene was not works well.

This patch make we use only one refcounter per one model,
So we can assume that we only load just one times if
multi scene use same resources

Change-Id: I752f8a4ed352d4c328b1f48791bf0fee4fc8adcb
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
21 months agoMake sure that global variables are initialized lazily in scene3d. 02/289102/1
huayong.xu [Wed, 1 Mar 2023 10:18:13 +0000 (18:18 +0800)]
Make sure that global variables are initialized lazily in scene3d.

Global variables are initialized when scene3d so is loaded firstly.
This would allocate more memory in some cases.
This patch is to make the variables be initialized lazily.

Change-Id: I317c04b7d04c74d84a44be8c603ddcdaacdabf83

21 months agoCache manager for 3D models 98/287698/18
Richard [Thu, 2 Feb 2023 15:07:37 +0000 (15:07 +0000)]
Cache manager for 3D models

Change-Id: I6cd522b2ee5c2dc33fa7740d2421d9220ee058de

21 months agoMerge "Allow to load uint32_t as indices" into devel/master
David Steele [Mon, 27 Feb 2023 11:09:45 +0000 (11:09 +0000)]
Merge "Allow to load uint32_t as indices" into devel/master

22 months agoMerge "DALi Version 2.2.15" into devel/master
David Steele [Fri, 24 Feb 2023 12:31:07 +0000 (12:31 +0000)]
Merge "DALi Version 2.2.15" into devel/master

22 months agoDALi Version 2.2.15 23/288923/1 dali_2.2.15
Richard Huang [Fri, 24 Feb 2023 12:24:26 +0000 (12:24 +0000)]
DALi Version 2.2.15

Change-Id: I0155a4d6a971a46f3930dc3a6c6f6fd0782c9d60

22 months agoMerge "Generate Camera from loaded model" into devel/master
Eunki Hong [Fri, 24 Feb 2023 06:30:30 +0000 (06:30 +0000)]
Merge "Generate Camera from loaded model" into devel/master

22 months agoAllow to load uint32_t as indices 37/288537/11
Eunki Hong [Sat, 18 Feb 2023 10:22:52 +0000 (19:22 +0900)]
Allow to load uint32_t as indices

Dali's default indices use uint16_t. But if heavy 3D model who need more than
65536 indexes loaded, It will break index.

This patch make Scene3D can allow to use uint32_t type indeces load
and generete Geometry by it.

Change-Id: I6b8096df3fcf855443e6b407342121b9374d9ff8
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
22 months agoGenerate Camera from loaded model 30/288530/9
Eunki Hong [Fri, 17 Feb 2023 14:15:35 +0000 (23:15 +0900)]
Generate Camera from loaded model

Add API to generete (or apply) the camera what 3D model has.

Note that model cannot have ownership of camera
since we have to add camera into SceneView or whatever we want.
So GenerateCamera create new CameraActor everytime.
Or ApplyCamera into already created CameraActor.

TODO : Should we change all Scene3D::Loader used demo who use camera parameter?

Change-Id: Ief1571d1e8b522c1785b8721c279713b20760a99
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
22 months agoMerge "Fix space font validation condition" into devel/master
Bowon Ryu [Fri, 24 Feb 2023 04:48:47 +0000 (04:48 +0000)]
Merge "Fix space font validation condition" into devel/master

22 months agoFix space font validation condition 20/288820/7
joogab.yun [Thu, 23 Feb 2023 09:38:06 +0000 (18:38 +0900)]
Fix space font validation condition

when character is 0x20, there are various cases of font validation.
but if it is a default font or cached font, or
if a glyph exists in the current font when it is contiguous with the prev char,
it is natural to load current font.
this is same behaviour as before.. and the process of finding fonts can slightly reduced.

Change-Id: I017db2ec38e86642a83a44739a0d2c7af072e14a

22 months agoMerge "Refactoring model-impl.cpp" into devel/master
Seungho BAEK [Wed, 22 Feb 2023 03:12:08 +0000 (03:12 +0000)]
Merge "Refactoring model-impl.cpp" into devel/master

22 months agoMerge "When setting a focus actor, we log the current focused actor and the new focus...
joogab yun [Tue, 21 Feb 2023 06:12:09 +0000 (06:12 +0000)]
Merge "When setting a focus actor, we log the current focused actor and the new focused actor." into devel/master

22 months agoWhen setting a focus actor, we log the current focused actor and the new focused... 48/288648/2
joogab.yun [Tue, 21 Feb 2023 03:27:17 +0000 (12:27 +0900)]
When setting a focus actor, we log the current focused actor and the new focused actor.

Change-Id: Idbdce0ae55d18dbee314b3db0994413d0acf8a30

22 months agoRemove useless warning message for initialized window 65/288365/2
Eunki Hong [Wed, 15 Feb 2023 17:35:27 +0000 (02:35 +0900)]
Remove useless warning message for initialized window

OnWindowFocusChanged can be called when the window is created.
In that case, GetFocusActorFromCurrentWindow() will return empty Actor handle.

SetCurrentFocusActor() doesn't consider empty-handle input case. So we should skip
if GetFocusActorFromCurrentWindow() returns empty handle.

Change-Id: I440e60f7c46e234876a4d5af50445477b88e35f7
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
22 months agoMerge "Replace std::string global variables with C-style string." into devel/master
David Steele [Mon, 20 Feb 2023 15:12:13 +0000 (15:12 +0000)]
Merge "Replace std::string global variables with C-style string." into devel/master

22 months agoMerge "Make sure that global variables are initialized lazily." into devel/master
David Steele [Mon, 20 Feb 2023 15:11:51 +0000 (15:11 +0000)]
Merge "Make sure that global variables are initialized lazily." into devel/master

22 months agoRefactoring model-impl.cpp 85/288585/5
seungho baek [Mon, 20 Feb 2023 06:57:09 +0000 (15:57 +0900)]
Refactoring model-impl.cpp

 - Extract some method to reduce duplicated code.
 - Reduce braces depth
 - Use return early for easy understanding
 - Separate too long method

Change-Id: I54e09138ae968a15be274fe415cfd3fd245047f8

22 months agoFix multiline text size issue in label 81/288581/4
Bowon Ryu [Mon, 20 Feb 2023 06:38:25 +0000 (15:38 +0900)]
Fix multiline text size issue in label

When font validation in the relayout process, if text update info is initialized,
font data should be cleared before UpdateModel() to ensure the number of characters removed and added.
Without this condition, incorrect text updates will occur due to incorrect number of characters.

Change-Id: Ic0a56dc355b746b2e718aa87ae61c507ade427b5
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
22 months agoMake sure that global variables are initialized lazily. 84/288284/14
huayong.xu [Wed, 15 Feb 2023 05:37:56 +0000 (13:37 +0800)]
Make sure that global variables are initialized lazily.

Global variables are initialized before main function or
when dali so is loaded firstly.
This patch is to reduce loading time of dali in theory.

Change-Id: Ica5e9c063e1be2dfe2aa5f7865705481422063d9

22 months agoMerge "Make SceneView's default camera is 3D camera" into devel/master
Eunki Hong [Mon, 20 Feb 2023 03:54:57 +0000 (03:54 +0000)]
Merge "Make SceneView's default camera is 3D camera" into devel/master

22 months agoMerge "Reduce decoding time of embedded gltf + Fix base64 encode bug" into devel...
Eunki Hong [Mon, 20 Feb 2023 02:22:49 +0000 (02:22 +0000)]
Merge "Reduce decoding time of embedded gltf + Fix base64 encode bug" into devel/master

22 months agoMerge "Generate tangent as Vector4 for gltf" into devel/master
Eunki Hong [Mon, 20 Feb 2023 02:22:43 +0000 (02:22 +0000)]
Merge "Generate tangent as Vector4 for gltf" into devel/master

22 months agoMerge "Fix gltf animation's 0 frame behavior." into devel/master
Eunki Hong [Mon, 20 Feb 2023 02:22:36 +0000 (02:22 +0000)]
Merge "Fix gltf animation's 0 frame behavior." into devel/master

22 months agoGenerate tangent as Vector4 for gltf 73/287173/11
Eunki Hong [Fri, 20 Jan 2023 16:28:32 +0000 (01:28 +0900)]
Generate tangent as Vector4 for gltf

Since gltf use aTangent as Vector4 type, we seperate
the tangent load logic and shaders.

But dali auto generated aTangent used only for Vector3.
It mean Vector4's w value was ignored.

This patch branch whether we use Vector3 tangent or not.

Change-Id: I95a8d33c01fa84f06a60f843ec0a84681ccbd003
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
22 months agoDALi Version 2.2.14 19/288519/1 dali_2.2.14
David Steele [Fri, 17 Feb 2023 13:51:45 +0000 (13:51 +0000)]
DALi Version 2.2.14

Change-Id: I39d1c294a624c14438db97acf8db6eabe3641891

22 months agoMake SceneView's default camera is 3D camera 90/288490/2
Eunki, Hong [Fri, 17 Feb 2023 06:36:35 +0000 (15:36 +0900)]
Make SceneView's default camera is 3D camera

Since SceneView used camera don't care about the Dali::Scene size,
Let we use 3D engine style camera. It will not change the property
automatically, and also will looks good to 3D object.

Change-Id: I31d9d0fc042cdbf8b33bc4d87a912ca149e248fe
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>