Mojo 1 HTML 5 WebGL target

Pierrou

Well-known member
Joined
Jul 6, 2017
Messages
235
Hello
First of all thanks for Cerberus X, I'm glad some talented coders are keeping our beloved Monkey X alive...
I installed it, it was quite easy (inside MonkeyX Studio), the standard HTML 5 target is working but for my current project I'm using Devolonter's custom WebGL target, which works fine and is a ton faster than the standard HTML target when using the SetColor command.
Available here and working fine with the latest MonkeyX v87b
http://www.monkey-x.com/Community/posts.php?topic=3276&page=first
I'm probably some kind of spoiled child used to have everything working out of the box so I don't know what to do. I copied the custom target inside the targets folder and when I try to compile the driver.cxs file opens and I get a "Native Game class not implemented".
Any idea what I could do?
Thanks for everything!
 

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
332
Hey Pierrou,

I've attached a modified mungo target, just copy it into your targets folder.

At least it compiles and starts without any errors but I don't see anything with the examples then...
 

Attachments

  • html5_mungo.zip
    33.4 KB · Views: 261

Pierrou

Well-known member
Joined
Jul 6, 2017
Messages
235
Hi Martin thanks for such a quick reply. Same here, the project compiles and I get no error message but then all I see is a black screen the Main Function doesn't seem to run... Sorry for this since I'm probably the only one using this target, but using regular HTML5 is way too slow for that project and compiling to Desktop everytime takes ages on my computer. Thanks again!
 

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
332
I'll look into this. :)
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,310
I was always under the impression that the later HTML5 target of MX switched to WebGL and so should not make any difference. But maybe I was wrong.
 

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
332
Only if you use mojo2.
 

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
332
No problem, had to time for that yet but will do.

BTW: Have you tried the mojo2 framework instead of mojo? As far as I remember it should use WebGL?
 

MikeHart

Administrator
Joined
Jun 19, 2017
Messages
3,310
@Pierrou As the Monkey X site is down, do you happen to have the custom Webgl Target that Devolonter posted there? If yes, could you attach it please?
 

dawlane

Well-known member
CX Code Contributor
Joined
Jun 21, 2017
Messages
906
As the Monkey X site is down, do you happen to have the custom Webgl Target that Devolonter posted there? If yes, could you attach it please?
It should be here.
 

Pierrou

Well-known member
Joined
Jul 6, 2017
Messages
235
Thanks Dawlane. I think you need to browse down the page and get the whole Mungo zip like Xaron did. Then follow the 6 steps. Or get the attached zip which is the exact result of those 6 steps above. Thanks a lot, again, for reviving Monkey X (Monkenstein?)...
 

Attachments

  • html5GL.zip
    44.9 KB · Views: 254

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
332
I've looked into it. Here's a working version for Cerberus:
 

Attachments

  • html5GL.zip
    44.7 KB · Views: 264

Pierrou

Well-known member
Joined
Jul 6, 2017
Messages
235
OK custom HTML5 WebGL target seems to work alright and so does the Desktop target... I'm now a glad CerberusX user! Thanks a lot for considering such issues even when only one or two people are in trouble...
 

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
332
You're very welcome. Sorry it took so long. :)
 
Top Bottom