LWJGL Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2 3 ... 10
 1 
 on: Today at 09:34:16 
Started by lacombej - Last post by RonaldK
Hi lacombe! I looked at the code and it seems pretty good, are you still working on it?

 2 
 on: January 17, 2018, 00:02:27 
Started by zethan - Last post by zethan
Hi there,

I have this error message "sRGB framebuffer is not supported by video hardware" on my notebook. I heard it is because LWJGL uses "GLX_ARB_framebuffer_sRGB" and "GL_ARB_framebuffer_sRGB", but not "GLX_EXT_framebuffer_sRGB". My notebook(Compaq Presario F763NR) has only "GLX_EXT_framebuffer_sRGB".

I hope someone can help.

Please see the attachments for the details from my notebook.

Code: [Select]
           Desktop: Cinnamon 3.6.7  dm: lightdm Distro: Fedora release 27 (Twenty Seven)
Machine:   Device: laptop System: Hewlett-Packard product: Compaq Presario F700 Notebook PC v: Rev 1 serial: N/A
           Mobo: Quanta model: 30EA v: 86.09 serial: N/A BIOS: Hewlett-Packard v: F.08 date: 04/25/2008
           Chassis: Quanta type: 10 serial: N/A
Battery    BAT0: charge: 29.4 Wh 100.0% condition: 29.4/88.8 Wh (33%) volts: 12.2/14.8
           model: Hewlett-Packard Primary serial: N/A status: Full
CPU:       Dual core AMD Athlon 64 X2 TK-57 (-MCP-) arch: K8 rev.F+ cache: 512 KB
           flags: (lm nx sse sse2 sse3 svm) bmips: 6401
           clock speeds: min/max: 800/1900 MHz 1: 1600 MHz 2: 1600 MHz
Graphics:  Card: NVIDIA C67 [GeForce 7000M / nForce 610M] bus-ID: 00:12.0 chip-ID: 10de:0533
           Display Server: x11 (X.org 119.6 ) driver: nvidia Resolution: 1280x800@59.98hz
           OpenGL: renderer: GeForce 7000M / nForce 610M/integrated/SSE2
           version: 2.1.2 NVIDIA 304.137 Direct Render: Yes
Audio:     Card NVIDIA MCP67 High Def. Audio driver: snd_hda_intel bus-ID: 00:07.0 chip-ID: 10de:055c
           Sound: Advanced Linux Sound Architecture v: k4.14.13-300.fc27.x86_64
Network:   Card-1: NVIDIA MCP67 Ethernet driver: forcedeth port: 30f8 bus-ID: 00:0a.0 chip-ID: 10de:054c
           IF: enp0s10 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express)
           driver: ath5k bus-ID: 03:00.0 chip-ID: 168c:001c
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 2000.4GB (25.3% used)
           ID-1: /dev/sda model: ST2000LM003_HN size: 2000.4GB serial: <filter>
Partition: ID-1: / size: 49G used: 18G (38%) fs: ext4 dev: /dev/dm-0
           ID-2: /home size: 1.8T used: 450G (27%) fs: ext4 dev: /dev/dm-2
           ID-3: /boot size: 976M used: 190M (21%) fs: ext4 dev: /dev/sda1
           ID-4: swap-1 size: 4.19GB used: 0.80GB (19%) fs: swap dev: /dev/dm-1
RAID:      System: supported: N/A
           No RAID devices: /proc/mdstat, md_mod kernel module present
           Unused Devices: none
Sensors:   System Temperatures: cpu: 57.0C mobo: N/A gpu: 0.0:57C
           Fan Speeds (in rpm): cpu: N/A
Repos:     Active yum sources in file: /etc/yum.repos.d/dropbox.repo
           Dropbox ~ http: //linux.dropbox.com/fedora/$releasever/
           Active yum sources in file: /etc/yum.repos.d/google-chrome.repo
           google-chrome ~ http: //dl.google.com/linux/chrome/rpm/stable/x86_64
           Active yum sources in file: /etc/yum.repos.d/megasync.repo
           MEGAsync ~ https: //mega.nz/linux/MEGAsync/Fedora_$releasever/
           Active yum sources in file: /etc/yum.repos.d/skype-stable.repo
           skype-stable ~ https: //repo.skype.com/rpm/stable/
Info:      Processes: 203 Uptime: 4:26 Memory: 1299.9/1869.6MB
           Init: systemd v: 234 runlevel: 5 default: graphical.target Gcc sys: 7.2.1
           Client: Unknown python2.7 client inxi: 2.3.53


 3 
 on: January 16, 2018, 17:44:46 
Started by clownvin - Last post by quew8
I notice that when you render the quads, you only setup a pointer for vertex attrib 0 which looks like position but you enable and expect vertex attrib 1 as well which looks like tex coords.

Code: [Select]
...
glBindBuffer(GL_ARRAY_BUFFER, vertexPointer);
glBufferSubData(GL_ARRAY_BUFFER, 0, RenderUtil.createBuffer(verts));
glVertexAttribPointer(0, 2, GL_FLOAT, false, 0, 0);
//MISSING CALL to glVertexAttribPointer(1, 2, GL_FLOAT, ?, ?);
 
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, RenderUtil.getIndicesPointer());
glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0);
...

Now I don't know for sure what happens if you enable a vertex attribute but don't setup a pointer for it. Probably depends on whatever state you left it in but, it evaluating to a constant value (like 0) seems plausible. Which in this case would mean only sampling a single pixel of the bitmap texture. Which is what you recon is going on.

Might not be the case but probably worth a look.

 4 
 on: January 15, 2018, 14:30:43 
Started by BrickFarmer - Last post by BrickFarmer
UHD 3840x2160

 5 
 on: January 15, 2018, 13:39:05 
Started by BrickFarmer - Last post by spasi
I'm not familiar with how macOS handles external displays. What is the native resolution of the external display?

 6 
 on: January 15, 2018, 11:39:12 
Started by BrickFarmer - Last post by BrickFarmer
Just tested that, and that seems to be true of the internal MBP display. On the external display, the framebuffer size seems to match the screen size regardless of the hint.  Whether or not I use the macOS scaled mode at HD or UHD.  Which is good right?

 7 
 on: January 15, 2018, 11:23:14 
Started by BrickFarmer - Last post by spasi
Note that when creating a 1920x1080 window on macOS with GLFW, the window will cover the entire screen. However, the framebuffer backing that window will have the retina 3840x2160 resolution. You can get the framebuffer resolution using glfwGetFramebufferSize or the framebuffer size callback. To disable retina scaling, use glfwWindowHint(GLFW_COCOA_RETINA_FRAMEBUFFER, GLFW_FALSE) before creating the window.

 8 
 on: January 15, 2018, 10:26:35 
Started by BrickFarmer - Last post by BrickFarmer
So it turns out that there is some scaling in macOS, the 'Default' option is ignoring the monitor resolution. But by doing the magic hidden Alt-Click on 'Scaled' option a list of actual resolutions shows up, and from there it's clear macOS is defaulting to 1920x1080.  Although having tried the UHD mode, and as nice as the LWJGL looks, my eyes are just too old for text that small :)

oh and glfwGetVideoMode is obviously working perfectly fine.

btw using any other scaled option apart from 1920x1080 and 3840x2160 shows a warning 'using a scaled resolution may affect performance'.  I'll try these out when I have more than a cube to performance test against!

 9 
 on: January 14, 2018, 23:24:25 
Started by BrickFarmer - Last post by BrickFarmer
The info button on my monitor is showing 3840x2160, but glfwGetVideoMode is reporting 1920x1080.  Is there a scaling factor involved under the hood somewhere like on iOS? About this mac -> displays shows  (3840 x 2160) and I am using 'Default for Display' in the display preferences -> display -> resolution.  I'm a bit confused where the difference is coming from?

 10 
 on: January 14, 2018, 21:48:03 
Started by NerdOfEpic - Last post by spasi
LWJGL sources are UTF-8 encoded. I don't see a problem locally, on github, or the generated javadoc.

What tool is producing these javadoc warnings? It's not a problem to change the curly quotes (they are there because the original documentation has them like that), I'm just curious to know why you're getting warnings for the source of a library your project is using.

Pages: [1] 2 3 ... 10