Modify the architecture of JMonkeyEngine 3 to ease the maintenance of both renderers

Hi!



I have deeply looked at the source code of both (JOGL & LWJGL) renderers and I think that several parts of the source code could be moved from renderer-specific classes to common classes so that a fix that has to be currently put into 2 classes (each per renderer) could be put into a single class and any new feature would need less pain to work with the both renderers. Sometimes, the source code should be split into common and specific classes and the whole code would be more readable. I think that textures, shaders, frame buffers and capabilities could benefit of it.



I realize that the JOGL renderer of JMonkeyEngine 3 is in a bad state and it would be easier for me to make it work if renderer-specific classes were smaller. I often copy/paste code from the LWJGL renderer to the JOGL renderer, that shows that a code redesign would not be useless.



I’m only a contributor, not a core member, I would like you to let me know what you think about my suggestion.

Sorry, I must have misguided you a little about the requested feedback. I figured you wanted to discuss “politics” (e.g. LWJGL vs JOGL rationale) as opposed to architectural changes, which belong here where the thread was moved, in the Development Discussion board. Now we can continue :slight_smile:

1 Like
erlend_sh said:
Sorry, I must have misguided you a little about the requested feedback. I figured you wanted to discuss "politics" (e.g. LWJGL vs JOGL rationale) as opposed to architectural changes, which belong here where the thread was moved, in the Development Discussion board. Now we can continue :)

Ok but now I need the agreement of other people to implement such a change.