[SOLVED] Monkey + MiniB3D problem

Community Forums/Monkey Talk/[SOLVED] Monkey + MiniB3D problem

RustyKristi(Posted 2016) [#1]
I'm posting this here as I cannot get any response from the MonkeyX forum/community since 4 months ago. I was hoping and maybe I can get some answers here or at least similar experience from other members/users.

..so I'm trying the latest MonkeyX and minib3d, desktop version builds ok but with HTML5 I get this error:

Error : Unable to find overload for glDrawElements(Int,Int,Int,DataBuffer).


I also tried
import minib3d.opengl.opengles20
but no luck.


Brucey(Posted 2016) [#2]
I thought monkey was just for 2d flash games? :-)

Perhaps the gl API is different on html5?
Did you have a look in the code for glDrawElements?


RustyKristi(Posted 2016) [#3]

I thought monkey was just for 2d flash games? :-)


Hey Brucey, I thought so too and was glad this framework equivalent exists. It was created and maintained by Adam Redwoods,

It's been going on for years now, not sure why it's not been brought up here or that popular, but it looks promising..

https://github.com/adamredwoods/minib3d-monkey

Perhaps the gl API is different on html5?
Did you have a look in the code for glDrawElements?



maybe.. but I don't know where to start debugging :/

Side note: For some reason the bmax equivalent (minib3d) looks faster consider bmax and monkey are both made initially for 2D... any ideas?


ratking(Posted 2016) [#4]
@RustyKristi: Did you find out how to fix the error?

Edit: Seems like enclosing the offensive lines with #if TARGET<>"html5" ... #end helps.


RustyKristi(Posted 2016) [#5]
@ratking

Ah not yet, but thanks a lot for this tip I will try this now..


RustyKristi(Posted 2016) [#6]
I can confirm that this works now. Thanks again ratking, did not expect that part omitted to be not that critical.