GLBasic forum

Main forum => GLBasic - en => Topic started by: Qedo on 2016-Dec-09

Title: GL ES
Post by: Qedo on 2016-Dec-09
Hi all
It is expected to shift to the GL ES 2.0 or higher?
I would like to use the Shader on Android.
Ciao
Qedo
Title: Re: GL ES
Post by: mentalthink on 2016-Dec-09
Hi hope the 3D will be more powerfull, in fact I'm learning another things for this cause... GLBasic is awesome but the 3D in my opinion is very Old, perhaps for maintain compatibility with old devices, can be 2 branches of GLbasic, with new 3d and another without 3d or maintaining the old 3d.

I'm not sure but I read about uhro3d can deply for mobile devices and is 3d, I think is OpenSource, in fact I downloaded AtomicEditor (is based in Uhro) but more modern and can do really nice things... or godot is openSource too.
Title: Re: GL ES
Post by: Qedo on 2016-Dec-11
I do not like C ++ and so I hope in a 3d update
Title: Re: GL ES
Post by: UBERmonkeybot on 2016-Dec-12
It would be really nice but i wouldn't hold your breath.
Title: Re: GL ES
Post by: spacefractal on 2016-Dec-12
This require a quite major rewrite. Glbasic is still on good old sld 1. But if im would rewrite, been a well know engine.

Glbasic is wrote in C++ and some bits of Java (Android) and C-obj (iOS).
Title: Re: GL ES
Post by: erico on 2016-Dec-13
Wasen´t it going sdl2 already on v14?
I think one user wrapped some other 3d engine (blitz?) a while ago, it seemed to work fine on win pc, could this help you out?

Title: Re: GL ES
Post by: Schranz0r on 2016-Dec-13
It was the MiniBlitz3D right?
I can start a Wrapper for you guys...

EDIT:
OpenB3D :D


EDIT2:

it's CPP-Files and OpenGL :)
Title: Re: GL ES
Post by: erico on 2016-Dec-13
That is nice, I don´t know much about wrapping, but I guess it would add a set of commands right?
Would it happen to work on mac and linux too, or just win?
Title: Re: GL ES
Post by: Schranz0r on 2016-Dec-14
there are only .h and .cpp files.
Should work on all OpenGL plattforms...
Title: Re: GL ES
Post by: erico on 2016-Dec-14
That could be a nice feat, what help would you need to pull that? Is there anything I can do?
Is it too hard?

I recall one chap even did an implementation of bullet engine (ye physics) once and it was marvelous to see, so my guess is that GLB has the potential to overcome its own limits, it just needs a higher profile person than most people, at least in c++, which I´m a brick.
Title: Re: GL ES
Post by: Schranz0r on 2016-Dec-14
I'll give it a try, if i have time.
Title: Re: GL ES
Post by: erico on 2016-Dec-14
All right, let us know how it goes, I can sure test it out. :good:
Title: Re: GL ES
Post by: WPShadow on 2016-Dec-15
I will test it too...

Test the devil out of it!  :D
Title: Re: GL ES
Post by: kanonet on 2017-Jan-17
Im late on the Party, but: on mobiles you have to choose whether you want to use GLES1, 2 or 3 on create of your "window", then you are tied to that version. GLBasic creates its surfaces with GLES1, simply because all drawing commands are written on old, depreciated GL. That means you cant use shaders at all.
You would need to close GLBasic's, window and create a new one, with GLES2 enabled. Even if it works, it will have huge side effects, like GLBasic drawing commands wont work at all, some others probably too... So no easy task, as long as the GLBasic core does not get rewritten (which would be a huge pile of work).
Title: Re: GL ES
Post by: mentalthink on 2017-Jan-17
You have all reason kanonet, but then always we will have to use OpenGLES 1?¿, I understand is a lot of work but pay money for an Upgrade no is too much problem (I don't pay again from GLbasic V7  =D  )
Perhaps do the change now not is too much clever, Vulkan is just in the scene and perhaps in a couple of years all will be Vulkan... I'm not sure but really I think someone or the GLbasic Developers have to upgrade the 3D part of GLbasic.... I think is the only point on GLbasic fails.


For compatibility, is the same we do now, if you want install PalmPre you can choose.

Title: Re: GL ES
Post by: kanonet on 2017-Jan-17
If you switch to GLES2, you would need to rewrite all graphic commands, this would include 3D and 2D. Additionally this would break compatibility with old platforms that do not support GLES2.
Or alternatively we could try to use something like Regal (https://github.com/p3/regal), that translates GLES1 calls 2 GLES2 calls. So not much porting would need to be done and than we could add new features, like shader support.

This is no new issue and has been debated before many times, but nothing happend (and probably never will).
Title: Re: GL ES
Post by: mentalthink on 2017-Jan-17
Really interesting this library you comment. At least thanks because I don't know something like this exists.
I think the same like you, always we use OpenGl 1.0 .

I think really do a nice game in 3D have to be really complex (too much hours for do only 3d graphics) , and perhaps is better only do 2d games, I see a lot of people using Unity3d for do 2dGames, because they see ,do 3d games need too much effort.
Title: Re: GL ES
Post by: UBERmonkeybot on 2017-Jan-17
I had a look at Regal and it completely bamboozled me. :S
Title: Re: GL ES
Post by: bigsofty on 2017-Jan-20
Quote from: erico on 2016-Dec-13
I think one user wrapped some other 3d engine (blitz?) a while ago, it seemed to work fine on win pc, could this help you out?

This was me. See here...

http://www.glbasic.com/forum/index.php?topic=6982.msg56815#msg56815

This is openB3D(which was itself a port of MiniB3D). It worked well but I it was not GLES compatible at the time and I needed mobile but I understand the latest OpenB3D maybe working with GLES now?