Groups
Sign in
Groups
Haxe
Conversations
Labels
About
Send feedback
Help
openfl-native implementation of perlinNoise doesn't work
52 views
native
openfl
perlin
windows
Skip to first unread message
Ido Yehieli
unread,
Oct 14, 2013, 9:41:07 AM
10/14/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Hi,
it appears the implementation of perlin noise in
https://github.com/openfl/openfl-native/blob/master/flash/display/BitmapData.hx#L331
doesn't work in native, it just sets every pixel to 0:
example code:
http://pastebin.com/0EZzpfPG
output in flash:
http://pastebin.com/ZpBNv1v1
output in native (openfl test windows -debug):
http://pastebin.com/EwkKi4Lg
Trying to "manually" use
ncannasse's implementation from
http://ncannasse.fr/blog/optimizing_perlin_noise
gives the same result (black bmp).
Any idea on how to fix this?
Reply all
Reply to author
Forward
0 new messages