Diffrenzy

Forum Replies Created

Viewing 15 posts - 106 through 120 (of 214 total)
  • Author
    Posts
  • in reply to: Tuple experiment and usages #10986

    Diffrenzy
    Keymaster

    myTupple:<name:String, x:Int, y:Int, color:Color, factor:Float>

    looks nice, could be

    myTupple:Tuple<name:String, x:Int, y:Int, color:Color, factor:Float>

    I don’t understand the reason for not writing the type name.

    More importantly: How to deserialise? Currently I’m using a rather ugly “parametercollection” for bundles of related parameters, that has a “FromXMLNode()”, but Tuples seems much better.

    I’m thinking  that Marks “UniformBlock”  might be there for the same reason. If so it could be replaced by Tuples.

    [EDIT] : UniformBlock seems to be a OpenGL thingy ?

    in reply to: Tuple experiment and usages #10984

    Diffrenzy
    Keymaster

    Swifts named tuple elements, that you can access via dot notation looks super cool.

    Tuples seems very suitable for game object properties, and would be incredibly useful when deserializing from text (eg xml) , especially if there was a way to specify to what attributes should be deserialized.

    XML Example : <myobject name=”awsomeobject” x=”20″ y=”30″ color=”#d40053″ factor=”2.33456″/>

    In the above I’d like a way to specify ( in a shared map or something) that “name” is a string, “x”,”y” are Ints, “factor” is Float and “color” should be sent to a Color Ctor that takes the Hex color as input, Then I’d like it to become a Tuple, myTupple:<String,Int,Int,Color,Float>

    To add to the awesomeness, then address the values with dot notation, like this:

    Print  myTupple.name + “has color ” + myTupple.color

    Btw: Can we use the syntax for generics:  Local myt:Tuple<Int,Float,MyType,etc>  ?

    in reply to: Ted2Go IDE #10954

    Diffrenzy
    Keymaster

    I’ve rebuilt from https://github.com/engor/Ted2Go master, so far no Mac crash. 🙂

    in reply to: Ted2Go IDE #10924

    Diffrenzy
    Keymaster

    I can reproduce MacOS crash in Itch version of MX2 1.107 , by opening modules/mojo/graphics/texture.monkey2

    in reply to: mojo3D – util.Fly() for mobile? #10879

    Diffrenzy
    Keymaster

    Yes, I guees Fly() is the wrong name for this, just pinch a bunch of times to zoom, this is not for a FP shooter, only for viewing a model.

    I like  the Sharpr3D method, because it leaves the 1 finger free to do other stuff, however two fingers is not ideal on a small phone screen.

    Get it from https://itunes.apple.com/hu/app/shapr3d/id1091675654?mt=8&_branch_match_id=442203562782760740

    Modeling is only for iPad Pro, but there is a “view only” mode for normal ipads that does what I describe below.

    This is what I’m looking for: https://www.youtube.com/watch?v=UsupbPZPOfU

    Here is a guy dooing the rotation in unity: https://www.youtube.com/watch?v=S3pjBQObC90

    I don’t think the actual swipe gesture is needed for this, just 1 finger move.

    How about this:

    Pinch = move the camera in /out (zoom), whilst LookAt() the model (or 0,0,0)

    (Sharpr3D also pans the LookAt() center, when you move two fingers)

    1 finger move/left mouse button + move = Camera moves in a circle (sphere), while looking at the model (or 0,0,0)

    Shortest screen dimension swipe/move finger equals 180 degrees rotation on that axis.

    Example in portrait mode: Touch center of screen, move finger to right edge of phone = rotate camera CCW 90 degrees around Y (assuming Y is up)

    Not that important but:

    Two fingers rotate = Rotate the camera around the camera.Pos – LookAt() axis, hopefully camera z axis ?

    in reply to: mojo3D – util.Fly() for mobile? #10855

    Diffrenzy
    Keymaster

    I tried out touchtest banana, and it comes very close to what i’m looking for.

    if 1 finger could then rotate the model, we’d have a cool quick way of looking at 3D scenes.

    To make it more versatile, it would be nice if the same Fly() would work on desktop.

    PS: Mojo3D is really nice 🙂

    in reply to: Website Problems… #10821

    Diffrenzy
    Keymaster

    mserver link on  http://monkeycoder.co.nz/monkey2-files is broken

    in reply to: mojo3D – util.Fly() for mobile? #10818

    Diffrenzy
    Keymaster

    ok, but I’m lloking for a complete dropin that does pan, tilt(rotation), zoom and rotation.

    Based on the way they do it in Google maps ( https://www.youtube.com/watch?v=aKulxv-26mo ) it could be:

    1 finger = pan

    2 fingers:

    pinch = zoom

    angles between fingers delta =  Z rotate by this amount

    2 finger pan : XY rotate model

    in reply to: Ted2Go IDE #10816

    Diffrenzy
    Keymaster

    this version crashes on MacOS after a few minutes, not sure why yet.

    in reply to: Texture with transparent pixel #10703

    Diffrenzy
    Keymaster

    ok,thanks for explaining 🙂

    in reply to: Texture with transparent pixel #10700

    Diffrenzy
    Keymaster

    ok, I’ll work around it 😀

    Sprites has it though?

    in reply to: Texture with transparent pixel #10695

    Diffrenzy
    Keymaster

    *Bump*

    Just ran into this, are there any news?

    in reply to: Ted2Go IDE #10625

    Diffrenzy
    Keymaster

    F2 in Ted2Go 2.6 rocks! 😀

    Great update.

    in reply to: Ted2Go IDE #10484

    Diffrenzy
    Keymaster

    Also can check if there is a single item in completion and it equals with word under cursor – don’t show completion.

    But please don’t hide it if casing is wrong e.g. “function” should still show “Function”. (Some IDE’s do)

    in reply to: Responsive theme for monkeycoder.co.nz/ [SOLVED -sort of] #10402

    Diffrenzy
    Keymaster

    On IRC ProPuke suggests adding  <meta name=”viewport” content=”width=device-width, initial-scale=1.0, user-scalable=no” /> into the <head> of the site, and it does improve the experience a great deal.

    Margin/padding are still pretty large, so if they could become smaller too, that would be cool.

    Made a test of the meta fix  it here, and it seems much better on Android Chrome: http://scheutz.dk/stuff/monktest/

Viewing 15 posts - 106 through 120 (of 214 total)