Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
e5dcfdafbb Merge remote-tracking branch 'dragonCASTjosh/master' 2017-06-17 00:08:03 +03:00
Lasse Öörni
0b8af7cf04 Remove the FreeType docs/reference folder, as it has been Urho3D tradition to not include it. 2017-06-17 00:06:00 +03:00
Konstantin Guschin
0fd29cfd3b renamed 'is_emitting' angelscript method to 'get_emitting' 2017-06-17 00:42:43 +07:00
Guschin Konstantin
cc3c544485 use 'logical AND' instead of nested ifs 2017-06-16 22:00:39 +07:00
Lasse Öörni
3d1ded0e79 Merge remote-tracking branch 'origin/update-freetype' 2017-06-16 15:16:22 +03:00
Guschin Konstantin
448b3a66b1 added emitting flag for ParticleEmitter2D 2017-06-16 18:50:08 +07:00
Lasse Öörni
bc98863c8f Update FreeType version in documentation. 2017-06-16 00:49:22 +03:00
Lasse Öörni
38cf46df54 Merge remote-tracking branch 'iainmerrick/freetype2.8' into update-freetype 2017-06-16 00:21:40 +03:00
Iain Merrick
282f250e3a Add UI.FontHintLevel property
There are three levels: NORMAL (the default), LIGHT and NONE.
The LIGHT level makes FreeType align font outlines to pixel
boundaries vertically, but not horizontally.
2017-06-15 15:30:28 -05:00
Lasse Öörni
77e1232556 Merge pull request #1980 from iainmerrick/typography
Add a 'Typography' sample program
2017-06-15 22:55:39 +03:00
Lasse Öörni
8c18d60896 Merge remote-tracking branch 'iainmerrick/typography' 2017-06-15 22:39:47 +03:00
Iain Merrick
4e851dbd4d Update FreeType to 2.8. 2017-06-15 13:07:34 -05:00
Konstantin Guschin
90424e3bd9 Merge pull request #2 from urho3d/master
Update
2017-06-15 00:59:40 +07:00
Iain Merrick
db6f4f9029 AngelScript version of Typography sample program 2017-06-13 13:40:31 -05:00
Iain Merrick
8fe78f261b Lua version of Typography sample program 2017-06-13 13:40:31 -05:00
Iain Merrick
a476c43a24 Add a 'Typography' sample program
Displays text in various sizes, with checkboxes to play with settings
that affect the way text is rendered:
- Color (white-on-black versus black-on-white)
- Autohinter
- sRGB output conversion (not available on all platforms)
2017-06-13 13:40:22 -05:00
dragonCASTjosh
53c36d25f9 Added PBR demo changes to LUA and AS 2017-06-13 19:25:40 +01:00
dragonCASTjosh
5498140d84 Fixed dark artifact in PBR 2017-06-13 16:03:26 +01:00
Lasse Öörni
879885b843 Add note of sample applications to the contribution checklist. 2017-06-13 13:40:00 +03:00
dragonCASTjosh
eebc9f04c3 Fixed sphere light issue 2017-06-13 06:01:59 +01:00
dragonCASTjosh
b782b86b2d OpenGL PBR fixes 2017-06-13 05:32:46 +01:00
dragonCASTjosh
64d7e83711 Fixed missing files 2017-06-13 04:59:00 +01:00
dragonCASTjosh
bf40c8c7c4 Changed the diffuse and fresnel models 2017-06-13 04:03:48 +01:00
dragonCASTjosh
45d619e80c Possible fix for PBR Artifacts 2017-06-12 20:48:33 +01:00
Lasse Öörni
e41b74c463 Merge branch 'update-bullet' 2017-06-12 19:27:06 +03:00
dragonCASTjosh
417ad2966a Small roughness tweek under area lights 2017-06-12 00:07:02 +01:00
dragonCASTjosh
e741c50b11 Improved Area Lighting 2017-06-11 21:37:53 +01:00
dragonCASTjosh
e0cd084c74 Improved Sphere lights 2017-06-11 20:11:31 +01:00
urho3d-travis-ci
31f698fa60 Travis CI: API documentation update at 2017-06-10 21:26:46 UTC.
[ci package]

Commit: 00eb0c6ff0

Message: Merge pull request #1979 from eugeneko/master

Add Model metadata support.
2017-06-10 21:26:46 +00:00
Eugene Kozlov
00eb0c6ff0 Merge pull request #1979 from eugeneko/master
Add Model metadata support.
2017-06-10 23:06:57 +03:00
Lasse Öörni
86ba5e5bdd Update Bullet to 2.86.1. Thanks to slapin for the initial work. 2017-06-10 21:30:19 +03:00
Eugene Kozlov
52e99da087 Add Model metadata support. 2017-06-10 00:24:48 +03:00
Lasse Öörni
bce517af5d Add contributor credit. 2017-06-09 23:08:40 +03:00
Lasse Öörni
1741073835 Merge remote-tracking branch 'iainmerrick/fontfix' 2017-06-09 22:14:05 +03:00
Iain Merrick
457976366b Fix rounding error that can lead to clipped glyphs (closes #1978)
The key thing is to to trust the metrics in slot->bitmap, which
are always correctly rounded up to integral values, rather than
also looking at the fixed-point values in slot->metrics and
rounding them manually.

Previously, CanLoadAllGlyphs was pre-flighting the texture atlas
allocation without rendering the glyphs. However, slot->bitmap
isn't populated until the glyph is rendered. I've therefore
removed CanLoadAllGlyphs entirely, and tweaked the preflight
process so that it calls LoadCharGlyph directly.

This should be slightly faster, as we don't have to load the
glyphs twice. It also reduces the total code size a bit, and
guarantees that the "preflight" is always consistent.

The new preflight behavior is *slightly* different, in that it
will expand the first texture atlas up to its maximum size (but
won't move on to a second atlas). Previously, if CanLoadAllGlyphs
failed, we would render only as far as char code 255 (probably
leaving some of the initial texture atlas free).
2017-06-09 13:46:04 -05:00
Iain Merrick
39930c9ab4 Fix bug in FontFaceFreeType::CanLoadAllGlyphs that can make text vanish
Closes #1976

FontFaceFreeType checks at runtime whether the whole font can be loaded
into a single texture, by preflighting all the necessary texture atlas
placements in CanLoadAllGlyphs.

However, this preflight operation was slightly different from the real
texture atlas generation, so sometimes CanLoadAllGlyphs was incorrectly
returning true. The LoadCharGlyph would then switch to a new texture
atlas (via SetupNextTexture). This would usually make Text elements
vanish, as the rendered glyphs were in the wrong texture.

We fix this bug with two changes:
- Make CanLoadAllGlyphs process the same char codes in the same order
- Make CanLoadAllGlyphs skip zero-size glyphs (as LoadCharGlyph does)

We also log an error if SetupNextTexture is called unexpectedly, to
help catch future occurrences.
2017-06-08 11:25:50 -05:00
Lasse Öörni
14bb9f98be Remember custom depth stencil surface if defined during renderpath, and use it also for any debug rendering. Closes #1975. 2017-06-08 18:22:17 +03:00
Lasse Öörni
63f3c10054 Add contributor. 2017-06-07 18:32:05 +03:00
Lasse Öörni
fb6492a948 Reposition the window also in borderless mode if it's sized as large as the monitor bounds. 2017-06-07 18:30:51 +03:00
Pengfei Li
d9d98cd35b restore the commits in Sample.inl 2017-06-07 18:30:49 +03:00
Pengfei Li
353fc4d7b3 Consider the initial position for the borderless window 2017-06-07 18:30:47 +03:00
Yao Wei Tjong 姚伟忠
3a6f3e5543 Avoid hard-coding of shell script / batch file names.
Fix #1974.
2017-06-06 22:42:43 +08:00
Lasse Öörni
12a26358dd Merge pull request #1972 from henu/static_vertexbuffer_updateoffsets
Static VertexBuffer::UpdateOffsets()
2017-06-06 10:52:58 +03:00
Henrik Heino
6ff0a0b53a Static VertexBuffer::UpdateOffsets() 2017-06-06 01:02:51 +03:00
Yao Wei Tjong 姚伟忠
460a3a38c0 Update migration note. 2017-06-05 23:08:12 +08:00
Yao Wei Tjong 姚伟忠
a6301ac772 Documentation update for the tvOS build process. 2017-06-05 23:04:09 +08:00
Yao Wei Tjong 姚伟忠
c7a0149dc9 Another sweep for tvOS conditional code branch. 2017-06-05 23:04:09 +08:00
Yao Wei Tjong 姚伟忠
75b8420a31 Initial work for porting Urho3D to AppleTV platform. 2017-06-05 23:04:09 +08:00
Lasse Öörni
392155397b Add / remove the vehicle Action when RaycastVehicle component is enabled or disabled. Closes #1954. Minor code reformatting in 46_RaycastVehicleDemo.as. 2017-06-03 23:22:29 +03:00
urho3d-travis-ci
5c7ee10f5f Travis CI: API documentation update at 2017-06-02 23:52:55 UTC.
[ci package]

Commit: d2ac2067c6

Message: Merge pull request #1966 from eugeneko/master

Re-factored PhysicsWorld2D::ContactInfo. Removed NodeEndContact2D::P_…
2017-06-02 23:52:55 +00:00