codifies

Forum Replies Created

Viewing 15 posts - 121 through 135 (of 202 total)
  • Author
    Posts
  • in reply to: Emscripten performance #5603

    codifies
    Participant

    I had a different experience expected it to be dog slow, but not so much http://bedroomcoders.co.uk/mx2Test/Mojotest.html – I was actually quite impressed!

    I guess it does depend on what you are using…

    in reply to: Compile Sizes, An Observation. #5580

    codifies
    Participant

    I’d kind of assumed release compile would optimise and remove any unused code anyhow…?

    have you noticed that #include seems to do nothing – not even cause an error! (typo I keep doing!)

    in reply to: A Few Questions About: libc #5573

    codifies
    Participant

    @scurty I love standards – there are so many to choose from… problem is what you fix others will probably consider broken…

    @abakobo personally I’m not keep on implicit declarations – makes code less readable, explicit declaration might mean more typing but its worth it in the long run!

    in reply to: A Few Questions About: libc #5570

    codifies
    Participant

    narp not here! its USER (Void Linux) let me reboot and see Antix (non systemd debian variant)… (brb)

    Antix Linux also uses USER … NOT USERNAME

    its login that sets the variable see also LOGNAME… just for extra confusion!

    in reply to: A Few Questions About: libc #5568

    codifies
    Participant

    @scurty are you on windows ’cause USER works for me! whereas USERNAME does not…

    maybe check both and see which one isn’t empty?

    in reply to: A Few Questions About: libc #5561

    codifies
    Participant
    [/crayon]
    in reply to: Matrix scale #5558

    codifies
    Participant

    TLDR; I keep rotation and position in a couple of vectors – its not a waste to use an extra one for scale….

    its the diagonal values… (NB code isn’t using mx2’s affine matrix but my own version)

    for example if I want to create a scale matrix (to multiply with a matrix I want to scale)

    [/crayon]

    however once you then rotate a matrix etc, these values are going to get lost in the aggregation

    for example once you multiply it with a rotation matrix (which you could make like this)

    [/crayon]

    notice element 5 and 10….

    In general what I have tended to do is use a position vector and quat rotation – stored in a 4 element vector… (if you need scale use another vector to store scale – why not its not a great waste!)

    It used to be fashionable to say you should never store position and rotation ONLY in a matrix, if you only ever needed to add (or subtract!) incremental values from position and rotation, it has worked fine for me in the past – just bare in mind while you can easily extract position from a matrix BUT there are multiple axial rotations (and orders of rotation) that can give the same orientation.

    in reply to: compiling with wine #5552

    codifies
    Participant

    @dawlane, nah you just compile using wine and the mingw compiler included with the windows version of mx2 – simples…

    in fact if I can be bothered I could probably nail together a Makefile that could do it

    [/crayon] [/crayon]

    and so on…

    in reply to: mserver install Help! #5551

    codifies
    Participant

    check you have the mserver tools installed in the monkey directory, check that the path specified exists and it contains the mserver executable.

    In linux I tried it first and then figured out where it needed to be from the error message!

    also make sure that when you extracted the server, that you retained the directory hierarchy

    in reply to: ted21 controls #5507

    codifies
    Participant

    what is ted21? have you forked ted ?

    in reply to: libxmp mod music player #5504

    codifies
    Participant

    here’s an OpenAL version (sdl mutter mutter bag of bolts mutter mutter)

    which doesn’t need to be thread safe…

    because of a struct array inside the channel info struct I’ve had issues getting realtime feedback for the channels – its probably not worth taking too much further…

    enjoy!

    in reply to: possible to turn bbGCNode * into class decl #5488

    codifies
    Participant

    guessing you don’t approve of finalisers then? pity would be handy to clean up none GC resources…

    in reply to: libxmp mod music player #5487

    codifies
    Participant

    so there is no way to safely use the sdl callback?

    I assume then that openAL is the way to go?

    in reply to: libxmp mod music player #5389

    codifies
    Participant

    in principle yes, there is actually not too much complication, but if you wanted to make a complete tracker it would probably be fairly time consuming, while many of the “mod” formats are documented (to various levels) it would probably be better to create a custom format.

    The place to start would be to write a multi channel mixer/pitch bender… SDL makes it reasonably easy, as it provides a callback when it needs a new buffer, (see the callback in the demo)

    anyhow bed soon and away for a little while

     

    just to mention if you run in debug mode you’ll get a seg fault, tried to pin it down with gdb but its corrupting stack frames so difficult to see, “seems” ok in release mode, but I’ve even seen behaviour like that with and without gcc’s -g switch so I’d lean to there being some issue for sure…

    might look at the “full” libxmp (as opposed to lite) source when I get back…

    in reply to: libxmp mod music player #5372

    codifies
    Participant

    @adamstrange ta 😉

    @pakz I’ll most likely have a squint again when I get back off my jollies…

Viewing 15 posts - 121 through 135 (of 202 total)