Commit graph

695 commits

Author SHA1 Message Date
Daniel J. Ramirez 62eda56e67 Fixed mesh importing when multiple materials are present 2017-11-17 18:50:19 -06:00
Ferenc Arn d28763a4c1 Rename Rect3 to AABB.
Fixes #12973.
2017-11-17 11:01:41 -05:00
Rémi Verschelde 49cea443a9
Merge pull request #12870 from Nibodhika/master
Fixing tilemap rotation for non top-left tiles.
2017-11-17 00:05:23 +01:00
Rémi Verschelde 15a20f9746 Remove obsolete ButtonArray theming
ButtonArrays have been removed in 3.0.
[ci skip]
2017-11-15 22:53:38 +01:00
Juan Linietsky 7010ee3cb9 -Ability to choose operator for emission, closes #10441
-Ability to use proper operator for GI Probe, closes #10534
-Closes #12938 as it's no longer needed (thanks for the work though)
2017-11-15 12:39:24 -03:00
Vito 5515d28107 Fixing tilemap rotation for non top-left tiles. 2017-11-15 09:22:07 +00:00
Juan Linietsky 6277e6d40a Ability to update parts of an array, and set arrays as dynamic draw 2017-11-14 17:26:35 -03:00
Rémi Verschelde f3d812e3a0
Merge pull request #12811 from Chaosus/quadsize
Add size to QuadMesh
2017-11-13 22:42:32 +01:00
Rémi Verschelde 03a080547d
Merge pull request #12014 from hi-ogawa/fix-video-playback
Fix video playback
2017-11-13 19:57:18 +01:00
Chaosus 06ce2e339e Added size to QuadMesh 2017-11-13 16:19:50 +03:00
Rémi Verschelde 47e5b43160
Merge pull request #12852 from djrm/pr_import_fixes
Update meshes when reimporting,
2017-11-12 21:17:58 +01:00
Rémi Verschelde e9392dd876
Merge pull request #12858 from dfleury2/master
fix: Updates dynamic_font_stb to use get_extension, and memnew
2017-11-12 21:06:03 +01:00
Daniel J. Ramirez 2932cc79ee Update meshes when reimporting,
Save scene preview even when not doing save and play.
2017-11-12 13:41:44 -06:00
Juan Linietsky 48d57e4a30 -Added ramp fadeout in AudioStreamPlayer, removes clips on audio restart
-Fixed bug in AudioStreamPlayerSampler not completely writing the target buffer if sample ends, fixes #12307
2017-11-12 11:11:45 -03:00
Juan Linietsky 09e6ce693d Set ambient contribution by default to 1, fixes #11850 2017-11-12 08:26:45 -03:00
D. Fleury f75028a34c fix: Updates dynamic_font_stb to use get_extension, and memnew 2017-11-12 11:45:29 +01:00
Juan Linietsky 192a4d7de5 Reworked how servers preallocate RIDs, should fix #10970 2017-11-09 23:35:34 -03:00
Rémi Verschelde ed57f0a0d4 Remove get_default_video_mode definition on OSX/iOS
It had been missed in d09160a8b6 and broke compilation
for those platforms.

Took the opportunity to run clang-format on the code base to fix some corner cases
that went through our static tests/were overlooked recently.
2017-11-09 23:36:08 +01:00
MrCdK fec243ed56 Added filter_clip to AtlasTexture 2017-11-05 22:27:05 +01:00
Poommetee Ketson 83f5d7e40a Refactor bufer to buffer 2017-10-28 19:15:51 +07:00
Jakub Grzesik 5a83fc50ec fix a 'proximity_fade_distacne' typo in material 2017-10-25 20:27:52 +02:00
Bastiaan Olij e72a6644dc Missing binds for SSAOBlur enum caused issues compiling GDNative cpp_bindings 2017-10-23 21:27:12 +11:00
Rémi Verschelde abea816e54 Revert "Rename Schlick GGX to GGX." 2017-10-23 07:42:36 +02:00
Juan Linietsky b4f0f59d9f Many fixes to SSAO, should be good now. 2017-10-22 13:52:48 -03:00
Rémi Verschelde 1054c6edee Merge pull request #12296 from tagcup/ggx_rename
Rename Schlick GGX to GGX.
2017-10-22 10:30:11 +02:00
Poommetee Ketson bbab451dde CubeMap: fix duplicate flags property 2017-10-22 10:28:02 +07:00
Ferenc Arn cb0bf1edea Rename Schlick GGX to GGX.
Schlick's approximation and GGX are orthogonal concepts.

Furthermore, it's usage so far has been inconsistent: we don't even use it with anisotropic SchlickGGX, and Burley (Disney) diffuse does use it while its name doesn't indicate it.

The use of Schlick's approximation in Burley and GGX is an implementation detail and doesn't need to be reflected to the namig.
2017-10-21 19:35:54 -04: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
Rémi Verschelde 8cb76888ae Merge pull request #12228 from hi-ogawa/fix-spatial-shader-conversion-with-texture
Fix spatial shader conversion with texture
2017-10-20 23:55:58 +02:00
Hiroshi Ogawa 3bd2a4c421 Fix spatial shader conversion with texture 2017-10-19 16:10:24 +09:00
Pedro J. Estébanez f4959ee32b Fix animation before first key
Prior to this, the value assumed for the interval between the start of the track and the first frame would be the one of the first key if
- *seeking/playing a continuous track*;
- *seeking a discrete track*.

And the first key would be ignored until reached -thus not modifying the target property/transform- in the remaining case; namely, *playing a discrete track*.

In other words, the inner workings of the animation system considered the unreached first key for interpolation but not for a query of every key inside a time range.

With this changes, the first key is only considered is the animation is looped and ignored otherwise. That way, in order to have a start value, you'll need an explicit key at the very beginning of the track, while having the flexibility of the animation player not touching the target value until the first key is reached.

This corresponds to the point 1) of #10752.
2017-10-15 01:28:08 +02:00
Matt Hughes 3edd3cd377 Fix video playback
This adds support to

- VideoPlayer
- VideoStreamWebm
- VideoStreamTheora
2017-10-14 23:20:39 +09:00
Andreas Haas 4c716f3623
[DOCS] Fix a few typos. 2017-10-14 12:45:49 +02:00
Daniel J. Ramirez 9001ba26aa Added and improved some missing icons, plus some other visual fixes. 2017-10-13 16:39:17 -05:00
Ruslan Mustakov 6106fd88d4 Remove junk output
Remove several prints that were added for engine debugging, but are
of no use to the end user, and only pollute the editor and game logs.
2017-10-13 12:40:19 +07:00
Rémi Verschelde d6fe668cef Merge pull request #12026 from hickop/default-theme-sliders
Added grabber_area to default_theme sliders. Fixes #11261
2017-10-11 22:45:34 +02:00
hickop 57d8ff636c Added grabber_area to default_theme sliders. Fixes #11261 2017-10-11 16:33:17 +02:00
hungrymonkey 5080a9cf21 Fix data alignment issues in get_data() in AudioStreamSample
I am fixing the issue by adding DATA_PAD to the return pointer as
suggested by hi-ogawa

When using set_data in AudioStreamSample in PoolByteArray, the data is set
using a DATA_PAD to pad the pointer to the correct place as such

uint8_t *dataptr = (uint8_t *)data;
copymem(dataptr + DATA_PAD, r.ptr(), datalen);
data_bytes = datalen;
godot/scene/resources/audio_stream_sample.cpp#L473

All I am doing is adding a DATA_PAD to the return pointer to
get_data() in AudioStreamSample to change

godot/scene/resources/audio_stream_sample.cpp#L48
PoolVector<uint8_t>::Write w = pv.write();
copymem(w.ptr(), data, data_bytes);

to

PoolVector<uint8_t>::Write w = pv.write();
uint8_t *dataptr = (uint8_t *)data;
copymem(w.ptr(), dataptr + DATA_PAD, data_bytes);

Please review whether or not set or get is correct.
Because this issue seems to be fixable by removing DATA_PAD in set_data()
instead of adding DATA_PAD to get_data(). I have not tested the latter
fix

Fixes #issue, 11873
2017-10-09 11:34:28 -07:00
Poommetee Ketson 0ce4d82bbf
CurveEditor: fix can't edit right tangent 2017-10-03 03:48:11 +07:00
Poommetee Ketson 34ea271380 Merge pull request #11646 from djrm/pr_visual_improvements
Several visual improvements.
2017-10-02 23:49:44 +07:00
Juan Linietsky c9a925c4e0 Switched Burley/Lambert, and restored diffuse term to 0-1 range for compatibility. 2017-10-01 19:08:49 -03:00
Juan Linietsky d4e20555e8 Ability to set a custom FOV makes it possible to use sky on orthogonal view. Closes #9186 2017-09-29 18:56:52 -03:00
Daniel J. Ramirez 15986ea343 Several visual improvements.
Added proper label sizing
Improved text editor status bar
Fixed some issues with ItemList and also some style fixes
Added background to color picker samples (the mrcdk fix)
Fixed slider ticks.
Added VS breakpoint and error styleboxes.
2017-09-28 15:00:43 -05:00
Juan Linietsky 81c9cfdc1b Added light affect parameter to baked AO 2017-09-23 23:10:34 -03:00
Marcelo Fernandez 46af050e93 Rename get_position => get_playback_position and seek_pos => seek on audio classes 2017-09-23 16:55:00 +02:00
Juan Linietsky fbabef6da3 Fixes to rim parameter in shader 2017-09-23 08:27:48 -03:00
Juan Linietsky 3237e05c36 Ability to convert from SpatialMaterial to ShaderMaterial 2017-09-22 09:20:52 -03:00
Juan Linietsky bf371dcb32 Added proximity and distance fade to SpatialMaterial 2017-09-21 15:20:28 -03:00