Juan Linietsky
04847ef5f9
Added ability for multiple images to be imported as an atlas
...
This adds support for groups in the import system, which point to a single file.
Add property hint for saving files in file field
2019-04-19 15:56:34 -03:00
Juan Linietsky
3d34df0e79
Hide StreamTexture flags, fixes #26640
2019-03-06 12:50:24 -03:00
Rémi Verschelde
0ba75c195e
Fix GCC 5 build after #26331 and cleanup style
...
Also cleanup after 01a3dd3
.
2019-02-27 09:01:24 +01:00
Hein-Pieter van Braam
464e1142c4
Don't crash on previewing an AtlasTexture without a region
2019-02-27 00:44:09 +00:00
Juan Linietsky
74d0ed2236
Many separate fixes to ensure non power of 2 textures work on GLES2, closes #25897 and many others
2019-02-24 22:36:53 -03:00
Juan Linietsky
8b231b96e3
Implement a cleaner (and better) way to save imagedata from ImageTexture, fixes #18801
2019-02-21 20:49:42 -03:00
marxin
8d51618949
Add -Wshadow=local to warnings and fix reported issues.
...
Fixes #25316 .
2019-02-20 19:44:12 +01:00
Rémi Verschelde
c5dcbeb160
Scene: Ensure classes match their header filename
...
Also drop some unused files.
Renamed:
- `scene/2d/navigation2d.h` -> `navigation_2d.h`
- `scene/2d/screen_button.h` -> `touch_screen_button.h`
- `scene/3d/scenario_fx.h` -> `world_environment.h`
- `scene/audio/audio_player.h` -> `audio_stream_player.h`
- `scene/resources/bit_mask.h` -> `bit_map.h`
- `scene/resources/color_ramp.h` -> `gradient.h`
- `scene/resources/shape_line_2d.h` -> `line_shape_2d.h`
- `scene/resources/scene_format_text.h` -> `resource_format_text.h`
- `scene/resources/sky_box.h` -> `sky.h`
Dropped:
- `scene/resources/bounds.h`
2019-02-12 17:21:48 +01:00
Rémi Verschelde
402cfa983d
Fix recursive assignment of Textures and BitMapFont
...
Fixes #24213 .
2019-01-28 15:10:34 +01:00
Rémi Verschelde
17b2b17471
Document AnimatedTexture and bind MAX_FRAMES constant
...
Closes #24935 .
2019-01-27 13:11:57 +01:00
Juan Linietsky
32fa136cc7
Ability to keep images in ImageTexture cached while using editor, fixes #25243
2019-01-25 13:40:23 -03:00
groud
0577f93cf6
Fixing textures not triggering _change_notify
2019-01-23 21:48:58 +01:00
Stanislav
3beca92d61
Fixed typo in ImageTexture:: & StreamTexture::is_pixel_opaque
...
Fixes #24946
2019-01-15 12:28:50 +03:00
Rémi Verschelde
11c09a17c2
Fix showing AnimatedTexture frame_* properties in editor
...
Regression from cd0b82fd56
, it must be hidden from docs
(PROPERTY_USAGE_INTERNAL) but not from the editor.
Supersedes and fixes #24880 .
Co-authored-by: QbieShay <cislaghi.ilaria@gmail.com>
2019-01-10 14:12:14 +01:00
Rémi Verschelde
bc9899fb9f
Merge pull request #24504 from harrisyu/AtlasCheckPixelOpaque
...
Fix #24470 Atlas Texture with margin setting cause error in editor.
2019-01-04 16:11:37 +01:00
Timo Schwarzer
163e0e3ebd
Add thumbnails to LargeTexture
2019-01-03 13:09:25 +01:00
Rémi Verschelde
b16c309f82
Update copyright statements to 2019
...
Happy new year to the wonderful Godot community!
2019-01-01 12:58:10 +01:00
harrisyu
9d6f16e864
Fix #24470 Atlas Texture with margin setting cause error in editor.
2018-12-20 21:40:40 +08:00
Shinryuuji
e24379e61f
Fix TextureLayered::create not retaining format
2018-12-20 12:35:22 +01:00
Aaron Franke
cb01268562
Fix many errors found by PVS-Studio
...
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
2018-11-28 05:03:24 -05:00
Rémi Verschelde
0f4c30fb71
Merge pull request #22531 from DualMatrix/path_missing_video_memory
...
Made Debugger's Video Memory tab show correct resource paths.
2018-10-02 13:53:28 +02:00
DualMatrix
8f89e2b490
Made Debugger's Video Memory tab show correct resource paths.
...
Made Debugger's Video Memory tab show correct resource paths.
The Icons are still missing but that is due to the get_icon(type, "EditorIcons") for type = "Texture" being missing. Adding that icon would fix it.
2018-09-29 13:40:29 +02:00
Juan Linietsky
c83742ba86
-Lightmap and lightmap capture support for GLES2
...
-Added hint to not show some properties when running on low end gfx
2018-09-28 20:33:18 -03:00
Rémi Verschelde
2aad7f1376
Merge pull request #21569 from JFonS/add_noise_textures
...
Add SimplexNoise and NoiseTexture as new resources
2018-09-14 16:57:26 +02:00
JFonS
f12a1b8863
Add SimplexNoise and NoiseTexture as new resources
...
SimplexNoise can be used to generate parameterized fractal noise based on Open Simplex.
NoiseTexture uses SimplexNoise to generate noise textures for using in
shaders/visual effects.
2018-09-14 15:24:34 +02:00
Rémi Verschelde
cd0b82fd56
Mark AnimatedTexture frame_* properties as internal
...
This way they no longer appear in the documentation, and the related
setters and getters do.
2018-09-13 22:54:35 +02:00
Rémi Verschelde
277b24dfb7
Make core/ includes absolute, remove subfolders from include path
...
This allows more consistency in the manner we include core headers,
where previously there would be a mix of absolute, relative and
include path-dependent includes.
2018-09-12 09:52:22 +02:00
Martin Capitanio
3f01fd5180
Set the lower bound for the GradientTexture width property to 1
...
Fixes #21522
2018-09-07 01:29:58 +02:00
Juan Linietsky
bca706b361
Revert "Fix some 3D texture issues"
2018-08-27 10:12:07 -03:00
elasota
30e20b6278
Partial fixes for 3D texture issues
2018-08-26 20:22:56 -04:00
Rémi Verschelde
dc09be4c57
Merge pull request #21156 from MednauN/atlas-texture-fix
...
Fix AtlasTexture with NinePatchRect and TextureProgress
2018-08-24 15:30:59 +02:00
Rémi Verschelde
52466d57e9
Make some debug prints verbose-only, remove others
2018-08-24 14:59:01 +02:00
Juan Linietsky
34e58fd831
Added a function to cache texture opacity at a pixel, and modified editor to use it.
...
Provides massive speedups to selecting objects, still awaiting for @MarianoGNU to do fixes to the region editor to improve performance.
2018-08-23 22:11:10 -03:00
Juan Linietsky
a1b594c2fc
Switched AnimatedTexture to a readers-writers lock, solves a race condition and fixes #20221
2018-08-23 13:28:36 -03:00
Poommetee Ketson
76adef2704
Fix arg name in docs, some copy-paste errors
2018-08-21 01:51:19 +07:00
pesets
15af0e9ec8
Fix AtlasTexture with NinePatchRect and TextureProgress
2018-08-18 23:06:38 +07:00
Juan Linietsky
c627f3a707
Attempting to workaround the problem present in #20904 , let me know if it works.
2018-08-15 13:24:52 -03:00
Juan Linietsky
ef5095720b
-Deprecate ImageTexture::load
...
-Add warning to Image::load when loading resources
-Add script binding for get_configuration_warning
2018-08-14 16:53:20 -03:00
Juan Linietsky
edde52c8de
Added proper import support for 3D and Array textures
2018-08-06 14:56:06 -03:00
Thomas Herzog
b4d3f541e7
add 3D textures
2018-07-30 12:20:27 +02:00
Hein-Pieter van Braam
0e29f7974b
Reduce unnecessary COW on Vector by make writing explicit
...
This commit makes operator[] on Vector const and adds a write proxy to it. From
now on writes to Vectors need to happen through the .write proxy. So for
instance:
Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;
Failing to use the .write proxy will cause a compilation error.
In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.
_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
Chaosus
bde962dbdd
Fix crash when you pass invalid parameter to ImageTexture.set_data
2018-07-25 12:23:34 +03:00
Juan Linietsky
de910f8c26
Finally figured out how to implement AnimatedTexture properly.
2018-07-16 11:43:49 -03:00
Juan Linietsky
9b5275b135
-Hid texture flags by default so they dont take so much space
...
-make curve texture preview not so large, so its easier to embed the editor
2018-05-18 12:37:18 -03:00
Pieter-Jan Briers
622a754584
ImageTexture.load returns an error code.
2018-05-14 19:11:41 +02:00
Phil Jones
d1a471f909
Fix texture import spelling
2018-02-03 18:38:39 +00:00
Bojidar Marinov
9b8e8b2220
Bind many more properties to scripts
...
Notable potentially breaking changes:
- PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL
- Some properties were renamed, and sometimes even shadowed by new ones
- New getter methods (some virtual) were added
2018-01-12 00:58:14 +02:00
Rémi Verschelde
e4213e66b2
Add missing copyright headers and fix formatting
...
Using `misc/scripts/fix_headers.py` on all Godot files.
Some missing header guards were added, and the header inclusion order
was fixed in the Bullet module.
2018-01-05 01:22:23 +01:00
Rémi Verschelde
b50a9114b1
Update copyright statements to 2018
...
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
Juan Linietsky
edd3bd8cb8
Ability to set flags via code in StreamTexture, as some users find it useful. Fixes #14526 .
2017-12-26 12:50:46 -03:00
Juan Linietsky
5868754b01
Added a higher level wrapper for proxy texture
2017-12-04 16:54:17 -03:00
MrCdK
fec243ed56
Added filter_clip to AtlasTexture
2017-11-05 22:27:05 +01:00
Poommetee Ketson
bbab451dde
CubeMap: fix duplicate flags property
2017-10-22 10:28:02 +07:00
Rémi Verschelde
e0c14e6306
Merge pull request #12286 from NathanWarden/add_cubemap_properties
...
Added properties for CubeMap.
2017-10-21 23:44:06 +02:00
Poommetee Ketson
9cadb9e5f3
Bind unbound enums, rearrange some by value
2017-10-22 01:58:02 +07:00
Nathan Warden
5f7478e196
Added properties for CubeMap.
2017-10-21 13:23:32 -05:00
letheed
5ad9be4c24
Rename pos to position in user facing methods and variables
...
Rename user facing methods and variables as well as the corresponding
C++ methods according to the folloming changes:
* pos -> position
* rot -> rotation
* loc -> location
C++ variables are left as is.
2017-09-20 13:11:10 +02:00
Hein-Pieter van Braam
f9467ec1ea
Fix signed and unsigned comparisons
...
The first in my quest to make Godot 3.x compile with -Werror on GCC7
2017-09-01 08:13:12 +02:00
Rémi Verschelde
bd282ff43f
Use HTTPS URL for Godot's website in the headers
2017-08-27 14:16:55 +02:00
Ignacio Etcheverry
32dd9a9f66
ClassDB: Provide the enum name of integer constants
2017-08-20 22:07:43 +02:00
Ignacio Etcheverry
2f290038d6
Removes type information from method binds
2017-08-10 07:17:50 +02:00
Ignacio Etcheverry
640a3c46c3
Texture: Fix wrong method bind instance type
2017-08-07 12:01:13 +02:00
Juan Linietsky
8e51c70374
Added missing binding to ImageTexture, closes #8371
2017-08-06 11:38:27 -03:00
Juan Linietsky
475e8b28b2
keep default exported script values unless overriden, closes #8127
2017-08-06 09:33:59 -03:00
Rémi Verschelde
85088275c5
Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-Sync
...
Texture region now updates when changing an Atlas region rect
2017-08-01 00:15:37 +02:00
Poommetee Ketson
49c7620326
Add object type hint for docs
2017-07-19 02:03:34 +07:00
Robert Hernandez
f0f407e76e
Texture region now updates when changing an Atlas
...
- Removed atlas_changed signal for AtlasTexture
- Changes are now handled by _notify_change
- Removed unneccesary signal connections
- Texture preview now updates in real-time
Fixed TextureRegionEditor constantly regenerating
2017-06-29 10:49:24 -04:00
Juan Linietsky
db3b05d289
Reworked translation system
...
-Label and Button reload translation on the fly
-Resources are loaded and reload depending on locale
2017-06-28 17:01:35 -03:00
Marc Gilleron
69b8f61f25
Curve features
...
- Ability to set tangents as linear
- Indicative min and max values
- CurveTexture doesn't need min and max anymore
2017-06-26 23:41:37 +02:00
Poommetee Ketson
e3998528e0
BuildSystem: generated files have .gen.extension
2017-06-25 07:55:01 +07:00
Marc Gilleron
2bb1638b0a
GradientTexture now uses a Gradient
...
- Added gradient property
- Deleted duplicate code
2017-06-24 21:50:44 +02:00
Marc Gilleron
659897cfb8
Added Curve resource
...
- New resource for curves in y(x) form
- CurveTexture now has a Curve
- Curve and CurveTexture share the same editor
2017-06-24 01:01:36 +02:00
Juan Linietsky
0288be1e76
Texture rect_region drawing now clamps UV to avoid bleeding. This avoids scenarios like single-texture tilemap tiles leaking pixels to the next tile when filter is enabled on it.
2017-06-18 22:55:02 -03:00
Juan Linietsky
5c6cac4e53
Add normalmap support for drawing in all low level primitives. Only added support in Sprite so far.
2017-06-17 23:27:42 -03:00
Juan Linietsky
b19225bfce
-Fix freezes caused by etccomp2, closes #9183
...
-Normalmaps are now detected and imported as RGTC, both in S3TC and ETC2, this improves their quality.
2017-06-16 21:49:37 -03:00
Juan Linietsky
612ab8fcdb
-Restored multithread capability to VisualServer
...
-Restored resource previews!
2017-06-09 00:24:18 -03:00
alexholly
a3c90b0293
renamed all Rect2.pos to Rect2.position
2017-06-04 02:09:17 +02:00
Juan Linietsky
8a1097a224
many fixes to image loader, voxel cone tracing, etc.
2017-06-02 22:08:41 -03:00
Rémi Verschelde
6d0809b095
Merge pull request #8869 from Hinsbart/errors
...
Fix errors on engine startup.
2017-05-25 08:37:48 +02:00
Juan Linietsky
d093b78f12
Fix stex import into black textures when lossless and lossy are selected, closes #8801
2017-05-23 08:55:32 -03:00
Andreas Haas
4d8e45de17
Fix errors on engine startup.
...
Fixes a bunch of the most spammy console errors introduced by recent refactorings:
- `AudioServerState` does not exist, this was the reference to it in the source. The surrounding code made it clear that `AudioServerLayout` was meant to be used instead.
- `StreamCSVTranslation` same here, it's the only reference. I went with `Translation` here, but I'm not 100% sure on this one.
- Some methods have been moved from `Texture` to `Image`, but the old bindings were still there.
- A few `name == ""` errors related to duplicating nodes.
2017-05-22 20:50:59 +02:00
Juan Linietsky
98a3296702
Removal of Image from Variant, converted to a Resource.
2017-05-17 07:37:45 -03:00
Rémi Verschelde
515f92d03b
Fix property warnings and hide some debug prints
...
"ALL IS GOOD" was a lie.
In particular, removes verbose "path not recognized" false positive.
The actual logic is to (somewhat naively) check all ResourceFormatLoaders
and to pick the first good match, so no need to warn about the formats
that do not match the type hint.
2017-04-23 11:17:32 +02:00
Rémi Verschelde
df61dc4b2b
Add "Godot Engine contributors" copyright line
2017-04-08 00:11:42 +02:00
Juan Linietsky
74808ac4d9
New particle system, mostly working, some small features missing.
2017-04-06 23:49:27 -03:00
Rémi Verschelde
debeee56f7
Fix typos in source code using codespell
...
From https://github.com/lucasdemarchi/codespell
2017-03-24 21:45:31 +01:00
Rémi Verschelde
5dbf1809c6
A Whole New World (clang-format edition)
...
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
2017-03-05 16:44:50 +01:00
Juan Linietsky
903a3aa5f0
a ton of bug fixes to the renderer
2017-02-16 08:55:43 -03:00
Juan Linietsky
da11d6d9e8
Many fixes to make exported scenes work better, still buggy.
2017-02-15 08:34:02 -03:00
Hein-Pieter van Braam
411ee71b4d
Rename the _MD macro to D_METHOD
...
This new name also makes its purpose a little clearer
This is a step towards fixing #56
2017-02-13 12:50:02 +01:00
Hein-Pieter van Braam
0f687f0ccb
Remove use of _SCS from ADD_METHOD
...
This saves typing and is a step towards fixing #56
2017-02-13 10:37:47 +01:00
Juan Linietsky
6f2e16306a
Several bugfixes, improving the import workflow
2017-02-06 00:38:39 -03:00
Juan Linietsky
2cd2ca7bbc
Lot of work in new importer, importing textures now works.
2017-02-01 09:46:36 -03:00
Juan Linietsky
dcb95ec147
removed duplicated functions in class hierarchy that were bound more than once
...
added a check to detect this case in the future
2017-01-14 11:10:42 -03:00
Juan Linietsky
118eed485e
ObjectTypeDB was renamed to ClassDB. Types are meant to be more generic to Variant.
...
All usages of "type" to refer to classes were renamed to "class"
ClassDB has been exposed to GDScript.
OBJ_TYPE() macro is now GDCLASS()
2017-01-02 23:03:46 -03:00
Rémi Verschelde
3f3f5a5359
Merge remote-tracking branch 'origin/gles3' into gles3-on-master
...
Various merge conflicts have been fixed manually and some mistakes
might have been made - time will tell :)
2017-01-02 21:52:26 +01:00
Rémi Verschelde
c7bc44d5ad
Welcome in 2017, dear changelog reader!
...
That year should bring the long-awaited OpenGL ES 3.0 compatible renderer
with state-of-the-art rendering techniques tuned to work as low as middle
end handheld devices - without compromising with the possibilities given
for higher end desktop games of course. Great times ahead for the Godot
community and the gamers that will play our games!
2017-01-01 22:03:33 +01:00
Juan Linietsky
22d83bc9f6
Begining of GLES3 renderer:
...
-Most 2D drawing is implemented
-Missing shaders
-Missing all 3D
-Editor needs to be set on update always to be used, otherwise it does not refresh
-Large parts of editor not working
2016-10-03 21:35:16 +02:00
Juan Linietsky
efdcf205d2
Make most resources (save for packedscenes and scripts) reload if they change on disk. Closes #4059 .
2016-06-27 13:17:20 -03:00
MarianoGNU
79c500bee1
Modify margins with mouse input
2016-06-20 17:06:19 -03:00