• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

Visual glitches GLFW on Mac

muruba

New member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Patreon Silver
Joined
Jul 5, 2017
Messages
230
Hi all,

I got some interesting visual artifacts on my mac mini for GLFW target:

upload_2017-8-16_21-13-30.png


PC GLFW or LINUX is fine:

upload_2017-8-16_21-14-35.png


Mac config file:

#GLFW_USE_MINGW=True


#GLFW_GCC_MSIZE_WINNT="64"


#GLFW_WINDOW_TITLE="Cerberus Game"

#GLFW_WINDOW_WIDTH=640

#GLFW_WINDOW_HEIGHT=480

#GLFW_WINDOW_SAMPLES=4

#GLFW_WINDOW_RESIZABLE=False

#GLFW_WINDOW_DECORATED=True

#GLFW_WINDOW_FLOATING=False

#GLFW_WINDOW_FULLSCREEN=False


#GLFW_SWAP_INTERVAL=-1


#GLFW_USE_HTTPS=True


#OPENGL_GLES20_ENABLED=False

#OPENGL_DEPTH_BUFFER_ENABLED=False


#MOJO_AUTO_SUSPEND_ENABLED=True

#MOJO_IMAGE_FILTERING_ENABLED=True


#TEXT_FILES+="*.txt|*.xml|*.json"

#IMAGE_FILES+="*.png|*.jpg"

#SOUND_FILES+="*.wav|*.ogg"

#MUSIC_FILES+="*.wav|*.ogg"

#BINARY_FILES+="*.bin|*.dat"

Any ideas?
 
You mean the artifact on the small circle or the "background"? To be truely comparable both images should be the same or similar.
Thesr circular artifacts look like a texture drawn on top of it with some kind of transperancy and in the red image there is nothing.
 
Ah ok, I get it. You draw shadowish images on top. And on OSX you get this banding.
Mojo1? How do you load the image. Which format is it saved?
 
Thanks! Yeah... composition wise they are the same, tried to get the same color:

PNG, 24 bit, mojo 1, and LoadImage and

Code:
DrawImage Self.shadow.image, DeviceWidth()/2, DeviceHeight()/2, 1.0, DeviceWidth() / Self.shadow.image.Width() * 2, DeviceHeight() / Self.shadow.image.Height() * 2


upload_2017-8-16_21-27-1.png
 
Could you attach a small project showing the problem? So I can try to see what the problem is tonight when I am on my comp?
 
Thanks Mike!

Hardware:
macOS Sierra
Version 10.12.6
Mac mini (mid 2010)
Graphics NVIDIA GeForce 320M 256 MB
S24C300 Display

Test project attached.

Cheers
 

Attachments

  • testmac.zip
    54.5 KB · Views: 276
Truly appreciate your help!!! I saved the data "as text" I hope it has the info...
 

Attachments

  • glview-NVIDIA GeForce 320M OpenGL Engine.txt
    3.7 KB · Views: 472
Renderer: NVIDIA GeForce 320M OpenGL Engine
Vendor: NVIDIA Corporation
Memory: 256 MB
Version: 3.3 NVIDIA-10.2.37 310.90.10.05b54
Device: Macmini4,1
Shading language version: 3.30


Max texture size: 8192 x 8192
Max vertex texture image units: 16
Max texture image units: 16
Max geometry texture units: 16
Max anisotropic filtering value: 16
Max viewport size: 8192 x 8192
Max Clip Distances: 8
Max samples: 8


Extensions: 37



GL_APPLE_texture_range
GL_EXT_framebuffer_multisample_blit_scaled
GL_ARB_viewport_array
GL_ARB_explicit_attrib_location
GL_NV_texture_barrier
GL_ARB_separate_shader_objects
GL_ARB_texture_storage
GL_ARB_texture_swizzle
GL_EXT_texture_compression_s3tc
GL_ARB_texture_cube_map_array
GL_ARB_blend_func_extended
GL_EXT_texture_sRGB_decode
GL_EXT_texture_filter_anisotropic
GL_APPLE_row_bytes
GL_ARB_texture_query_lod
GL_ARB_draw_buffers_blend
GL_ARB_sample_shading
GL_ARB_internalformat_query
GL_EXT_texture_mirror_clamp
GL_ARB_timer_query
GL_ATI_texture_mirror_once
GL_EXT_debug_marker
GL_APPLE_rgb_422
GL_ARB_vertex_type_2_10_10_10_rev
GL_EXT_debug_label
GL_ARB_instanced_arrays
GL_APPLE_container_object_shareable
GL_ARB_ES2_compatibility
GL_APPLE_client_storage
GL_ARB_sampler_objects
GL_ARB_occlusion_query2
GL_ARB_shading_language_include
GL_EXT_depth_bounds_test
GL_ARB_texture_rgb10_a2ui
GL_APPLE_object_purgeable
GL_ARB_shader_bit_encoding
GL_APPLE_flush_render

Core features


v3.0 (100 % - 23/23)
v3.1 (100 % - 8/8)
v3.2 (100 % - 10/10)
v3.3 (100 % - 10/10)
v4.0 (28 % - 4/14)
v4.1 (42 % - 3/7)
v4.2 (15 % - 2/13)
v4.3 (0 % - 0/23)
v4.4 (0 % - 0/10)
v4.5 (0 % - 0/11)
vARB 2015 (0 % - 0/13)
vARB 2016 (0 % - 0/1)

OpenGL driver version check (Current: 3.3 NVIDIA-10.2.37 310.90.10.05b54, Latest known: ):
Latest version of display drivers found

According the database, you are running the latest display drivers for your video card.

Extension verification:

 
Thanks Mike!

Sorry for the images, can't find a way to copy the info out of the tool!
 

Attachments

  • Screen Shot 2017-08-16 at 11.28.15 pm.png
    Screen Shot 2017-08-16 at 11.28.15 pm.png
    55.8 KB · Views: 419
  • Screen Shot 2017-08-16 at 11.32.31 pm.png
    Screen Shot 2017-08-16 at 11.32.31 pm.png
    85 KB · Views: 432
  • Screen Shot 2017-08-16 at 11.33.29 pm.png
    Screen Shot 2017-08-16 at 11.33.29 pm.png
    88.3 KB · Views: 444
  • Screen Shot 2017-08-16 at 11.34.04 pm.png
    Screen Shot 2017-08-16 at 11.34.04 pm.png
    49.3 KB · Views: 424
Thanks for supporting all these info. Turns out my Imac shows the same problem.

To fix it I did this:

Go into the GLFW template to the file modules/native/glfwgame.cpp and search for the line below. I changed the parameter from 0 to 8.
That should do the trick.


upload_2017-8-16_17-55-3.png


@Martin, can you look if your setup runs with the modification?
 
Thanks a lot for your help Mike, it is perfect now! :)
 
Will take a look, thanks!
 
Back
Top Bottom