Search found 565 matches

by bogglez
Sat Jun 10, 2017 1:56 pm
Forum: Programming Discussion
Topic: Freeing Texture problem?
Replies: 18
Views: 2446

Re: Freeing Texture problem?

I had a look at the code and sadly it's very obviously broken.. Not sure why ph3nom went for a linked list here although he could just use an array due to the texture indices. If anybody wants to patch the code (by fixing the linked list implementation or by switching to an array), here's my (hopefu...
by bogglez
Sat Jun 10, 2017 9:20 am
Forum: Programming Discussion
Topic: Wiki feedback
Replies: 102
Views: 74869

Re: Wiki feedback

Added the guide "Romdisk Swapping" in the "General" section: http://dcemulation.org/?title=Romdisk_Swapping
by bogglez
Sat Jun 10, 2017 9:18 am
Forum: Programming Discussion
Topic: GUIDE : romdisk swapping
Replies: 2
Views: 802

Re: GUIDE : romdisk swapping

Added to the wiki: http://dcemulation.org/?title=Romdisk_Swapping
Is your other guide ready btw or are you still making modifications?
by bogglez
Sun Jun 04, 2017 12:36 am
Forum: Programming Discussion
Topic: Freeing Texture problem?
Replies: 18
Views: 2446

Re: Freeing Texture problem?

What do you mean by next texture? If you mean that game objects A and B both use texture object 5, then calling glDeleteTextures will delete that texture, there is no internal reference counting in OpenGL. You should introduce your own mechanism for thay. If by next you mean that deleting texture ob...
by bogglez
Sun Jun 04, 2017 12:29 am
Forum: Programming Discussion
Topic: Current best way of handling 3D with KOS?
Replies: 3
Views: 965

Re: Current best way of handling 3D with KOS?

If it's that simple I think you shouldn't have any issues with PVR or kos libgl as seen in the samples directory. In fact that should also work with libgl15 but that's seriously still in development so I offer no support for it. I've also heard good things about libtsunami in the kos-ports which is ...
by bogglez
Sat Jun 03, 2017 9:58 am
Forum: Programming Discussion
Topic: Invalid texture U size
Replies: 22
Views: 2846

Re: Invalid texture U size

I had a cursory look. The nehe examples still work the same. Looking at the code: - Why is GL_KOS_CULL_FUNC short not byte now? Values are between 0 and 3 - sizeof(GLdouble) will return sizeof(float), not sizeof(double) due to gcc configure flags for KOS. It's not safe to assume that sizeof(GLdouble...
by bogglez
Sat Jun 03, 2017 8:43 am
Forum: Programming Discussion
Topic: Tracking memory usage
Replies: 6
Views: 1002

Re: Tracking memory usage

KGL allocates vertex buffers into which it will write polygons before sending them off to the GPU. Maybe you want to change their size?
by bogglez
Sat Jun 03, 2017 2:37 am
Forum: Programming Discussion
Topic: Invalid texture U size
Replies: 22
Views: 2846

Re: Invalid texture U size

This is the same breakage that occurred when the old libgl was replaced with the new libgl.. more non-standard behavior was corrected. The new libgl still has some major compatibility problems that people get annoyed with on a daily basis. There's really no point in calling it libgl if it doesn't im...
by bogglez
Fri Jun 02, 2017 1:30 pm
Forum: Programming Discussion
Topic: Invalid texture U size
Replies: 22
Views: 2846

Re: Invalid texture U size

If that makes it more OpenGL conformant then I will allow breakage in existing code. I'll probably have to fix some of the OpenGL examples, would be nice if you could check them too.
by bogglez
Fri Jun 02, 2017 1:06 pm
Forum: Programming Discussion
Topic: Invalid texture U size
Replies: 22
Views: 2846

Re: Invalid texture U size

Thanks for the patch set, kazade!

I think I'll have some free time tomorrow to look at these patches, if BlueCrab doesn't want to do it. :)
by bogglez
Fri Jun 02, 2017 1:02 pm
Forum: Programming Discussion
Topic: Tracking memory usage
Replies: 6
Views: 1002

Re: Tracking memory usage

Do you mean VRAM or RAM usage?

For VRAM it's really important that you use texture compression and palettes as much as possible, this should help: http://dcemulation.org/?title=Texture_F ... compressed
by bogglez
Wed May 31, 2017 4:57 pm
Forum: Programming Discussion
Topic: Invalid texture U size
Replies: 22
Views: 2846

Re: Invalid texture U size

Feel free to keep hacking on it! :o) Yeah the reversed clipping is definitely a bug. Again somebody reported it to me and wanted to send a patch but didn't. Sorry I'm so bad at keeping track of this.. there's a libgl bugs thread buried in here which I didn't keep up to date. BTW we usually accept pa...
by bogglez
Tue May 30, 2017 6:04 am
Forum: Programming Discussion
Topic: Invalid texture U size
Replies: 22
Views: 2846

Re: Invalid texture U size

I think somebody reported a similar issue long, long ago and never replied to me.. X_x
Can you try glEnable for textures before and after some of those OpenGL calls, especially the draw call and possibly the glBindTexture/glTexCoord calls? I think there was some bad state.
by bogglez
Mon May 29, 2017 12:04 pm
Forum: Programming Discussion
Topic: freeglut+libEGL+libGLU ports
Replies: 21
Views: 3912

Re: freeglut+libEGL+libGLU ports

@bogglez: Ahem... When I said I'd work on it, I did mean I would work on it. And now, it's done. :wink: I will request that if you're going to do a bunch of stuff to GL and splitting it apart, that it might be a good idea to keep around the minimal implementations of GLU/GLUT that we have now (as a...
by bogglez
Mon May 29, 2017 11:54 am
Forum: Programming Discussion
Topic: glColorPointer 'stride' broken?
Replies: 1
Views: 525

Re: glColorPointer 'stride' broken?

You're right about that. This is one of the cases the current libGL doesn't handle well. It pretty much expects you to go with floats. A correct implementation would accept various data types and convert them for you. The PVR needs a 16-bit or 32 bit color value in the end, so all float etc values n...
by bogglez
Sun May 28, 2017 2:17 am
Forum: Programming Discussion
Topic: freeglut+libEGL+libGLU ports
Replies: 21
Views: 3912

Re: freeglut+libEGL+libGLU ports

Getting back on topic, since this thread is at the top again I wanted to post an update: as I stated before the code has already been finished, I just need a way to install the packages. kos-ports doesn't do that job right now, and I don't really feel like working on yet another NIH package manager....
by bogglez
Sat May 27, 2017 11:19 am
Forum: Programming Discussion
Topic: Git command doesn't work in MSys2 despite git installed
Replies: 3
Views: 476

Re: Git command doesn't work in MSys2 despite git installed

Alright, sorry, for the issues. I'd debug it myself but I don't have windows available now ( ´_ゝ`)
by bogglez
Fri May 26, 2017 8:19 am
Forum: Programming Discussion
Topic: Git command doesn't work in MSys2 despite git installed
Replies: 3
Views: 476

Re: Git command doesn't work in MSys2 despite git installed

Hi mentor, I can't test this myself, so here are some suggestions for what you can try: 1. are you using a FAT or NTFS partition? FAT is not supported. 2. make sure the installation folder has no accents, spaces or length of over 260 characters 3. Run pacman -Syuu. Close msys2, run update-core. Clos...
by bogglez
Thu May 25, 2017 7:18 am
Forum: Front Page News and Forum Guidelines
Topic: In The Line Of Fire Early Access Beta Released To Public
Replies: 56
Views: 40764

Re: In The Line Of Fire Early Access Beta Released To Public

I'll have to intervene here as a third party and as a moderator since this thread is about to go to shit. @darc, you don't need to justify what you're doing. Just keeping the website going is more than people, including cube, can ask of you. Thank you. If there's any web help you need just ask. @Ph3...
by bogglez
Thu May 25, 2017 6:45 am
Forum: Programming Discussion
Topic: cdi4dc for Linux?
Replies: 3
Views: 731

Re: cdi4dc for Linux?

Great job :) I've switched to using CMake as the build system, and I've tidied up some of the code, but the main thing I changed was to make use of <stdint.h> types as 'long' apparently is a different size for me than expected and that generated a faulty CDI. https://software.intel.com/en-us/article...