Render textures tainted of Green
MangelMaxime opened this issue · comments
Can you post the output of "haxelib list" to show what library versions are having this problem? Also, what GPU is being used?
Here is my haxelib list output :
{lamb} haxelib list
actuate: [1.7.5]
away3d-examples: [1.0.4-alpha]
away3d: [1.0.4-alpha]
flow: git [dev:C:\HaxeToolkit\haxe\lib\flow/git]
format: [3.1.2]
hxcpp: 3.1.39 [3.1.48]
lime: [2.0.3]
luxe: git [dev:C:\HaxeToolkit\haxe\lib\luxe/git]
nape: [2.0.16]
openfl-samples: [2.1.0]
openfl: 2.0.1 git [dev:C:\HaxeToolkit\haxe\lib\openfl/git]
snow: git [dev:C:\HaxeToolkit\haxe\lib\snow/git]
swf: 1.7.0 [1.7.3]
Not sure what you want as GPU, but here is my graphics card : NVidia GeForce GTX 765M
Edit : For lime, I installed this version : lime-2.0.3-17-gc422dba.zip 30-Dec-2014 00:02 79M taken from http://www.openfl.org/builds/lime/
You might want to use the released versions of openfl (I'm using OpenFL 2.1.8, which is very close to the current git version).
I haven't been able to reproduce this problem with an nVidia GeForce 745M, which I'm guessing is pretty close to your GTX 765M.
Can anybody else reproduce this problem?
I just managed to update OpenFL to 2.1.8 :
It's was awayd3d that have this dependencies : "openfl": "2.0.1" and which remove openfl 2.1.8
{lamb} haxelib list
actuate: [1.7.5]
away3d-examples: [1.0.4-alpha]
away3d: [1.0.4-alpha]
flow: git [dev:C:\HaxeToolkit\haxe\lib\flow/git]
format: [3.1.2]
hxcpp: 3.1.39 [3.1.48]
lime: [2.0.3]
luxe: git [dev:C:\HaxeToolkit\haxe\lib\luxe/git]
nape: [2.0.16]
openfl-samples: [2.1.0]
openfl: 2.0.1 [2.1.8]
snow: git [dev:C:\HaxeToolkit\haxe\lib\snow/git]
swf: 1.7.0 [1.7.3]
And now it's OK for Neko and Windows.
html5 still not compile but I think it's already known for this error : C:\HaxeToolkit\haxe\lib\away3d/1,0,4-alpha/backends/html5/openfl/display3D/Context3D.hx:364: characters 8-26 : Class<lime.graphics.opengl.GL> has no field uniformMatrix3D (Suggestions: uniformMatrix3fv, uniformMatrix4fv, uniformMatrix2fv)
I say it there because I'm not sure if it's need a new tickets or not....
The git version of Away3D utilises the new matrix references - you might like to give that a try.
Are you speaking about the perfomance-tweaks branch ?
No, the Master branch
Ok, thanks I will give it a try. I think we can close this issue as it's just a problem with dependencies.
Yes, Away3D does report that it uses 2.0.1, which doesn't work because it uses classes added to OpenFL later than that version. However, almost any version after 2.0.1 works fine with Away3D. I have an issue open for that: #25
It's been a while since I looked at code as I was working on a separate branch. I've just switched back to master and now experience the green textures - will now investigate.
Since upgrading to Openfl 2.2.x a bug has been introduced to speed up the getRGBAPixels method. I've corrected this and issued a pull request for the core OpenFL project. Awaiting it's acceptance for this to be fixed.
@Greg209 It looks like that change has been merged. Thanks!
By the way, the Away3D README.markdown wasn't updated with your haxelib.json change. It still says:
##Dependencies
Requires OpenFL 2.0.1
NOTE: Currently the GitHub master of OpenFL is required as it contains classes which are not in the released version.
Changes now to use latest (2.2.4) OpenFL/Lime and Away3d. README.markdown updated to reflect latest changes