View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015806||Runner||3D||Public||2014-08-21 18:08||2019-05-13 17:15|
|Reporter||rcusumano||Assigned To||Mike Dailly|
|Priority||Very Low||Severity||D - Minor||Reproducibility||100%|
|Target Version||2.2.1||Fixed in Version||2.2.1|
|Summary||0015806: 3D: Building a primitive using incomplete vertex functions is inconsistent across Windows and HTML5|
|Description||Building a primitive using incomplete vertex functions is inconsistent accross Windows and HTML5.|
→ On Windows, unmentioned parameters like color and alpha are added from global draw settings at draw-time.
→ On HTML5, such parameters are precompiled into the model from global draw settings.
I have been told the expected behavior is what happens on HTML5: it precompiles missing parameters from global settings. However, traditionally GameMaker behaved as it is on Windows right now, and this difference is not mentioned in the manual or it is a bug on Windows runner technology.
|Steps To Reproduce||→ create a model|
→ set global draw settings with draw_set_color and alpha
→ add a primitive to the model using incomplete vertex functions
on draw event,
→ set different global draw settings
→ draw model.
On Windows, model will assume new settings. On HTML5, it will correctly maintain the settings used while building it.
|Additional Information||I was going to add the project I'm working on, but will have to do that later because I can't get the model to display on HTML5 right now. I will add the project file when it's working.|
|1.4 Found In||1.4.1398|
|2.x Runtime Found In|
|2.x Runtime Verified In||126.96.36.1997|
IncompleteVertexModelExample.gmz (926,199 bytes)
Uploaded an example file.
Note that it seems like HTML5 the model actually takes on the colour and alpha from the global draw settings for the first time it is drawn (not when it is created as the bug report suggests). On Windows, it takes on the current global draw settings (so if these differ from the first draw, windows will update but HTML5 will not).
In the example file, the model is created with the global setting of red, and drawn in yellow (with the colour animating between black and yellow, and alpha animating between 1 and 0). In Windows, the model flashes on and off. On HTML5, the model remains yellow (as this was what the draw setting were when it was first drawn).
Fixed in red - several commits - sample needs a font added for WebGL to display the text