Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
159 user(s) are online (149 user(s) are browsing Forums)

Members: 1
Guests: 158

Skateman, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 39 40 41 (42) 43 »
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@kas1e

I'm pretty worn down.
Work keeps stalling free time projects.

I can wait for the next full release or whatever kind of solution you'll come up with.

Right now I try to calm down and recover whenever I can and with whatever works...Amiga stuff is not one of them, but I'll try to keep up

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Not too shy to talk
Not too shy to talk


See User information
@kas1e

How can I compile libGLU_gles4.a for clib2?

Last year,you sent me clib2 version of GL4eS sdk for clib2 but that library is missing.

I want to try compiling wipeout-rewrite with clib2 to see if it makes any changes with wrong colors

Sinan - AmigaOS4 Beta-Tester
- AmigaOne X5000
- AmigaOne A1222
- Sam460ex
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@Sinan
I build today's version of GL4ES and GLU_gl4es for clib2 , so you can grab them there:

https://kas1e.mikendezign.com/aos4/gl4es/clib2/08_september_2013/

Through, i didn't test them, just build. In theory, gl4es should contain additional fixes as well, so worth to try both libs.

But i am not sure that swapping of C libs will fix color issues, as they look like casual endian byte swap issues.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1e
Is there a new build of SDL2_gl4es ?

Last one is pretty old. Or, are there any instructions on how to build with updated releases?
Finally, what is the latest gl4es available?

Thanks for all the work you do to make it easier for everyone else.

Dave

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@dave
Everyone can build latest version of gl4es for newlib or clib2, following details in the readme:

git clone https://github.com/ptitSeb/gl4es
cd gl4es-master

mkdir build

cd build

cmake \
-DCMAKE_SYSTEM_NAME=Generic \
-DAMIGAOS4=1 \
-DSTATICLIB=ON \
-DCMAKE_SYSTEM_VERSION=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER="/usr/local/amiga/bin/ppc-amigaos-gcc" \
-DCMAKE_CXX_COMPILER="/usr/local/amiga/bin/ppc-amigaos-g++" \
-DCMAKE_LINKER="/usr/local/amiga/bin/ppc-amigaos-ld" \
-DCMAKE_AR="/usr/local/amiga/bin/ppc-amigaos-ar" \
-DCMAKE_RANLIB="/usr/local/amiga/bin/ppc-amigaos-ranlib" \
-DCMAKE_FIND_ROOT_PATH="/usr/local/amiga/ppc-amigaos/" \
..


And then "make".

If you need build for clib2, then all the same, just add:

-DCMAKE_C_FLAGS="-mcrt=clib2" \
-DCMAKE_CXX_FLAGS="-mcrt=clib2" \



To build SDL1 and SDL2 recent version with applying necessary changes to make it works with GL4ES, you can just check this commit history for both SDLs and apply the same on recent SDLs:

https://github.com/kas1e/SDL2_GL4ES
https://github.com/kas1e/SDL1_GL4ES

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1e Looks like I got gl4es built. How did you build GLU_gl4es?
Also when testing my compiled version of libgl4es.a it works way slower than yours. Any ideas about that?

Thanks for any insight,
Dave


Edited by davec555 on 2023/9/22 7:20:23
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@dave555
Quote:

How did you build GLU_gl4es?


It's usual ./configure ; make of ptitSeb's version of GLU, just be sure that SDK/Local/common/GL/ directory contain GL4ES includes, and not MiniGL ones and as it contain some older version of necessary for libtool/etc files, you may want to run autoupdate/etc as well. Like this for clib2 build:

git clone https://github.com/ptitSeb/GLU
cd GLU
autoupdate
autoreconf 
--force --install
./configure --build=x86_64 --host=ppc-amigaos --target=ppc-amigaos CFLAGS="-mcrt=clib2" CXXFLAGS="-mcrt=clib2"
make -j4


And same if you need newlib version, just omit clib2 flags (so newlib will takes by default):

git clone https://github.com/ptitSeb/GLU
cd GLU
autoupdate
autoreconf 
--force --install
./configure --build=x86_64 --host=ppc-amigaos --target=ppc-amigaos
make 
-j4


Ready library will be in the .libs directory, named ligGLU.a which you just rename like i did for SDK to libGLU_gl4es.a.

But of course you can keep it as libglu.a as well of course, just it will make logical mess with minigl's one in SDK and you will in needs to keep an eye on it always to not mess one with other, so better to rename.

Quote:

Also, when testing my compiled version of libgl4es.a it works way slower than yours. Any ideas about that?


How you detect that it is slower ? On what tests ? And what versions do you compare : my one from SDK, or my one which i uploaded there in previous message ? The one in SDK is for newlib and a 10-15 months old one, and the one i upload few posts back are for latest version of experemental-in-progress clib2 and from recent gl4es repo (which may have regression too, of course).

Maybe you didn't reboot when test and some LIBGL_* left_overs from Huno's EGL_Wrap in ENV: left, or, maybe you build debug version by default with -gstabs and without optimization turned on by some reasons ?


Edited by kas1e on 2023/9/24 8:16:57
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1e thankyou for the info. Very much appreciated.

Quote:

Quote:

Also, when testing my compiled version of libgl4es.a it works way slower than yours. Any ideas about that?


How you detect that it is slower ? On what tests ? And what versions do you compare : my one from SDK, or my one which i uploaded there in previous message ? The one in SDK is for newlib and a 10-15 months old one, and the one i upload few posts back are for latest version of experemental-in-progress clib2 and from recent gl4es repo (which may have regression too, of course).

Maybe you didn't reboot when test and some LIBGL_* left_overs from Huno's EGL_Wrap in ENV: left, or, maybe you build debug version by default with -gstabs and without optimization turned on by some reasons ?


It was on program that I wrote. It's about as fast as a software only renderer when linking against the lib I compiled versus yours which runs nice and fast. I am using newlib and your version is from your sdk archive. I compiled using your instructions but obviously using a new clone of gl4es. Is there any chance you could do a new build for newlib so I can have a direct lib to compare against (file size etc) to help see what's going on?

Thanks again,
Dave

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@Dave
Quote:

I am using newlib and your version is from your sdk archive.

And what if you use my one for clib2 compiled a few days ago in that thread ? It also fast as newlib one from SDK, or slow the same as your build ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1e I haven't tried as my program, and sdl2 are compiled with newlib. Assuming you can't link a clib2 with newlibs

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@Dave
Quote:

I haven't tried, as my program, and sdl2, are compiled with newlib. Assuming you can't link a clib2 with newlibs


Right.. Ok, so here new build of latest gl4es for newlib:

https://kas1e.mikendezign.com/aos4/gl4 ... september_2023/libGL4ES.a

And if it will be slow too, can you then share with me your test program, so i can play with to find out what wrong ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1e Howdy.

I tried the newly kas1e comnpiled newlib version but its still slow (slower than software only rendering actually).

My code isn't ready for prime time yet, but I did notice a couple of differences in the GL4ESBANNER output, so not sure if that is relevant.

old sdk gl4es:

LIBGLInitialising gl4es
LIBGL
v1.1.5 built on Apr 17 2021 23:02:30
LIBGL
Using GLES 2.0 backend
LIBGL
Using Warp3DNova.library v54 revision 16
LIBGL
Using OGLES2.library v3 revision 3
LIBGL
OGLES2 Library and Interface open successfuly
LIBGL
Targeting OpenGL 2.1
LIBGL
NPOT texture handled in hardware
LIBGL
Not trying to batch small subsequent glDrawXXXX
LIBGL
: try to use VBO
LIBGL
Force texture for Attachment color0 on FBO
LIBGL
Hack to trigger a SwapBuffers when a Full Framebuffer Blit on default FBO is done
LIBGL
Current folder is:Work:Programming/displwo
LIBGL
Hardware test on current Context...
LIBGLHardware Full NPOT detected and used
LIBGL
Extension GL_EXT_blend_minmax  detected and used
LIBGL
FBO are in core, and so used
LIBGL
PointSprite are in core, and so used
LIBGL
CubeMap are in core, and so used
LIBGL
BlendColor is in core, and so used
LIBGL
Blend Substract is in core, and so used
LIBGL
Blend Function and Equation Separation is in core, and so used
LIBGL
Texture Mirrored Repeat is in core, and so used
LIBGL
Extension GL_OES_mapbuffer  detected
LIBGL
Extension GL_OES_element_index_uint  detected and used
LIBGL
Extension GL_OES_packed_depth_stencil  detected and used
LIBGL
Extension GL_EXT_texture_format_BGRA8888  detected and used
LIBGL
Extension GL_OES_texture_float  detected and used
LIBGL
Extension GL_AOS4_texture_format_RGB332 detected
LIBGL
Extension GL_AOS4_texture_format_RGB332REV detected
LIBGL
Extension GL_AOS4_texture_format_RGBA1555REV detected and used
LIBGL
Extension GL_AOS4_texture_format_RGBA8888 detected and used
LIBGL
Extension GL_AOS4_texture_format_RGBA8888REV detected and used
LIBGL
high precision float in fragment shader available and used
LIBGL
Extension GL_EXT_frag_depth  detected and used
LIBGL
Max vertex attrib16
LIBGL
Max texture size16384
LIBGL
Max Varying Vector32
LIBGL
Texture Units16/16 (hardware32), Max lights8Max planes6
LIBGL
Extension GL_EXT_texture_filter_anisotropic  detected and used
LIBGL
Max Anisotropic filtering16
LIBGL
Max Color AttachmentsDraw buffers1
LIBGL
Hardware vendor is A-EON Technology LtdWritten by Daniel 'Daytona675x' M  ener GoldenCode.eu
LIBGL
GLSL 300 es supported
LIBGL
GLSL 310 es supported and used


new kas1e newlib compile:

LIBGLInitialising gl4es
LIBGL
v1.1.5 built on Sep 26 2023 07:40:34
LIBGL
Using GLES 2.0 backend
LIBGL
Using Warp3DNova.library v54 revision 16
LIBGL
Using OGLES2.library v3 revision 3
LIBGL
OGLES2 Library and Interface open successfuly
LIBGL
Targeting OpenGL 2.1
LIBGL
Not trying to batch small subsequent glDrawXXXX
LIBGL
: try to use VBO
LIBGL
Force texture for Attachment color0 on FBO
LIBGL
Hack to trigger a SwapBuffers when a Full Framebuffer Blit on default FBO is done
LIBGL
Current folder is:Work:Programming/displwo
LIBGL
Loaded a PSA with 2 Precompiled Programs
LIBGL
Hardware test on current Context...
LIBGLHardware Full NPOT detected and used
LIBGL
Extension GL_EXT_blend_minmax  detected and used
LIBGL
FBO are in core, and so used
LIBGL
PointSprite are in core, and so used
LIBGL
CubeMap are in core, and so used
LIBGL
BlendColor is in core, and so used
LIBGL
Blend Subtract is in core, and so used
LIBGL
Blend Function and Equation Separation is in core, and so used
LIBGL
Texture Mirrored Repeat is in core, and so used
LIBGL
Extension GL_OES_mapbuffer  detected
LIBGL
Extension GL_OES_element_index_uint  detected and used
LIBGL
Extension GL_OES_packed_depth_stencil  detected and used
LIBGL
Extension GL_EXT_texture_format_BGRA8888  detected and used
LIBGL
Extension GL_OES_texture_float  detected and used
LIBGL
Extension GL_AOS4_texture_format_RGB332 detected
LIBGL
Extension GL_AOS4_texture_format_RGB332REV detected
LIBGL
Extension GL_AOS4_texture_format_RGBA1555REV detected and used
LIBGL
Extension GL_AOS4_texture_format_RGBA8888 detected and used
LIBGL
Extension GL_AOS4_texture_format_RGBA8888REV detected and used
LIBGL
high precision float in fragment shader available and used
LIBGL
Extension GL_EXT_frag_depth  detected and used
LIBGL
Max vertex attrib16
LIBGL
Extension GL_OES_get_program_binary  detected and used
LIBGL
Number of supported Program Binary Format1
LIBGL
Max texture size16384
LIBGL
Max Varying Vector32
LIBGL
Texture Units16/16 (hardware32), Max lights8Max planes6
LIBGL
Extension GL_EXT_texture_filter_anisotropic  detected and used
LIBGL
Max Anisotropic filtering16
LIBGL
Max Color AttachmentsDraw buffers1
LIBGL
Hardware vendor is A-EON Technology LtdWritten by Daniel 'Daytona675x' M  ener GoldenCode.eu
LIBGL
GLSL 300 es supported and used

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@Dave
It can be gl4es regresstion then, but just in case : be sure you delete .psa directory (it's precompiled shaders dir created after you run app build with gl4es, so maybe old ones can cause harm).

Anyway, test case need it so i can find what wrong (if i will be not able to reproduce it with my tests).

In meantime, stick to SDK's version then

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1e
Looks like it might be this commit that broke things:
https://github.com/ptitSeb/gl4es/commi ... 0c1885df6f3097446f68f4083

commit previous to this is running at fast speed, but this one slows to a crawl.

Dave

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
Quote:
davec555 wrote:@kas1e
Looks like it might be this commit that broke things:
https://github.com/ptitSeb/gl4es/commi ... 0c1885df6f3097446f68f4083

commit previous to this is running at fast speed, but this one slows to a crawl.

Dave


So the offending line in gl4es.c is (line 253 of newest version):
glstate->list.active->use_vbo_array = 2;

If you comment that out (even on the newest commit), then everything runs at speed.

Dave

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@Dave
Can you maybe create a BZ on ptitSebs site for with explain what you find, etc ?

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@kas1eQuote:
kas1e wrote:@Dave
Can you maybe create a BZ on ptitSebs site for with explain what you find, etc ?


What is a BZ?

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@davec555

A bugreport

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


See User information
@samo79Quote:
samo79 wrote:@davec555

A bugreport


Assumed so

And will do.

Dave

Go to top
Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Home away from home
Home away from home


See User information
@all

https://github.com/ptitSeb/gl4es/releases/tag/v1.1.6

1.1.6 was released, anyone up for an update?

Go to top

  Register To Post
« 1 ... 39 40 41 (42) 43 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project