cocon

Forum Replies Created

Viewing 15 posts - 256 through 270 (of 342 total)
  • Author
    Posts
  • in reply to: OOP for the novice #6373

    cocon
    Participant

    Very cool project, I really like that one. This can become a “banana” 🙂 since it’s very useful.

    in reply to: I volunteer to help build mx2 docs and samples. #6371

    cocon
    Participant

    I see, in this case a creation of a wiki will be helpfull.

    For example some users of Unity have created this wiki to post cool recipees. http://wiki.unity3d.com/index.php/Scripts.
    (e.g. http://wiki.unity3d.com/index.php/SQLite)

    Similarly, this is no different approach from what Blitz users used 10 years now.
    http://www.blitzmax.com/codearcs/codearcs.php?cat=6

    In some sense, the idea is the same. Only the underlying website mechanism changes. Either you call it a Wiki/Forum/LAMP Stack.

    in reply to: I volunteer to help build mx2 docs and samples. #6345

    cocon
    Participant

    Here is how the system work:

    1. Any #Rem comments with special notation, exist within the Monkey2 source code and modules.
    2. They are automatically converted to HTML documentation with the mx2cc tool.
    3. After that, they are placed into a database. Each entry will have a unique ID, for example the well known command to add something to a list will be: “std:std.collections.List.Add”
    4. When you watch information about a command, you can see also posts of other users. (I really like that one on the PHP website were users post clever snippets for every command).

    Generally, this is how the current system for the Docs work.
    http://monkey2.monkey-x.com/monkey2-docs

    The point of question, if the new system will be better than the current one. One argument is that the current system works like this:

    • Monkey source -> Generate Documentation
      With this approach any modification to the comments must be done within the source code, by creating new commits. In order to keep commit logs clean without overhead, ALL of the projects in the world, avoid modification of comments. Either the programmers do not comment the code at all, either they write it once and for good.
    • Monkey Source + Monkey Documentation
      With this approach the documentation can be maintained externally, in a separate repository. It might be a completely new Git project, or a real XML snapshot of an online Wiki, or for more advanced IDE features, they can be called directly with an HTTP request.

      The bottom line is that the community will be able to make modifications and enrich the documentation, independently.
      http://softwareengineering.stackexchange.com/questions/211938/hyperlinked-externalized-source-code-documentation

      Only one downside exists with this approach, is that all of the documentation is stripped out of the source code so it won’t be easily accessible at once. That’s the worst case scenario if you are working from a terminal or with the Microsoft Notepad, but otherwise with the help of a capable IDE the comments can be presented at will more dynamically.

    I just throw some ideas, I don’t know which you prefer better.

    in reply to: #region #6274

    cocon
    Participant

    nerobot: If Mark doesn’t want to mess the parser further with other additions, this approach ‘#region would work. Let’s see about it in a few months from now.

    in reply to: #region #6235

    cocon
    Participant

    Not that a file should be humongous, but it leads to a good habit of making clear cuts among the code from the start.

     

    Perhaps you might do a counter offer to split the code into sections with standard comments.

    Well, it does the trick in some sort of old-school approach, however the real difference with regions is that you will standardize this principle (of separating the code into sections) by design, rather than doing ASCII art.

    in reply to: Horde3D ? #6185

    cocon
    Participant

    Yes unfortunately they are outdated, here is another one based on Horde, https://urho3d.github.io/. It might be the last chance.

    in reply to: Horde3D ? #6165

    cocon
    Participant

    However if the terrain plugin gives you trouble exclude it. You can still make cool games with modular pieces.

    I have also some favorites in my list you could check: COrange (which is pure C), SoftPixelEngine (which exposes a real C API – made by a huge fan of Blitz3D), also I have a dozen others to mention but more or less they fall close. 🙂

    in reply to: Horde3D ? #6142

    cocon
    Participant

    The codebase looks very straight forward and clean.

    in reply to: tinyxml parses GPS files nicely #6091

    cocon
    Participant

    Looks like there is something interesting going there. 🙂

    in reply to: Inline member visibility #6023

    cocon
    Participant

    I actually quite like this, the only question being does it change the ‘default’ access to private too?

     

    I did some code uses cases, but it won’t make a point posting them. For example in C++ you declare visibility regions and place the members there accordingly. In C# you get by default an X class scope for members, any other type of visibility must be declared explicitly at any time.

     

    Monkey currently uses the concept of C++, the bottom line is that this change must come as a “line-saver” and not as a “concept-changer”.

     

    I have created a matrix of possibilities in Spreadsheets and here is what I found. It looks like #1 is the winner:

    in reply to: Monkey2 OpenGL Experiments #5667

    cocon
    Participant

    Hi EdzUp, you could jump straight into action and try to do some tutorials. You could use Blitzmax or C++ according to what you feel more comfortable with.

    In the exact example, to draw 2 triangles ala GL1 I would simply use these statements: glBegin, glVertex, glEnd. This is the core of all the rendering pipeline (the fixed function pipeline). If you can draw let’s say a triangle, or a colored cube, you can draw and navigate inside a humongous level created with Blender. On the other hand the modern shader based pipeline is much more tricky to get started and understand. There is a need for the perfect combination of these elements before you draw anything: shader, vertex buffer, vertex attributes.

    in reply to: Monkey2 OpenGL Experiments #5651

    cocon
    Participant

    After a long time, since I found a chance today I created this little fancy OpenGL example.

    Video:
    https://1drv.ms/v/s!AquVr9J7xRcsgXYmcIlKcvFD94Lw

    It was some code I made a few years ago for OpenTK, now I ported it to Monkey2, I don’t remember where exactly I got the shader from, if you know who made it you can inform me so I can add credits (lots of thanks to the developer if he/she is reading).

    Apart from that shader, if you replace the fragment part with any shader from here http://glslsandbox.com/ you could have virtually any GLSL sample available. Keep in mind to the Uniform variables only and some GLSL specifications (there are some differences between GLES and GLSL and you might get errors).

    in reply to: Monkey2 OpenGL Experiments #5650

    cocon
    Participant

    OpenGL 1.x can be used in C and in other languages (I have used C# OpenTK a lot). In Monkey2 theoretically a wrapper could be written to access the OpenGL 1.x library functions. However doing so, would mean that a tremendous good strategy would exist, it’s a huge investment writing for legacy hardware. 🙂

    in reply to: Monkey2 OpenGL Experiments #5476

    cocon
    Participant

    Nice example, I would try to extract as many useful elements as possible.

    Another user in the forums created a cool 3D example with Monkey2, it would be a nice idea to hotlink for easy access.
    http://monkey2.monkey-x.com/forums/topic/monkey2-opengl-experiments/#post-5310

    Perhaps I will start doing texture loading as well to create a nice snippet and proceed also adding some further abstractions. Like a Mesh class or a Texture class, without going into heavy implementations.

    in reply to: Monkey2 Build From Source Help #5457

    cocon
    Participant

    Nice one, thanks.

Viewing 15 posts - 256 through 270 (of 342 total)