Skip to content

Canvas position and 3D render questions #14

@selimanac

Description

@selimanac

These are not issues but I couldn't understand how to handle a few scenarios. Just need an help.

I'm trying to use this as a drawing some debug drawings on the screen. Since Defold can't draw expect for a line this might come very very handy. It works fine when we obey the rules. I would like to improve my use case, but I have a few problems which I don't know how to solve. Actually debug drawing shouldn't be a thing to spend on time for. Since it is for quick testing. If it is not going to work, I prefer to use dummy sprites.

  • Lets say I would like to use defold-orthographic and it is center is 0,0. But we have to position the buffer sprite from 0.0 as in the example, it should be centered to 512 x 1024. So there is no way to draw from, let say '-100x-100' to '-50x-50'. Values always has to be positive. How can I handle this situation?
  • I couldn't manage to use this canvas properly when using build-in camera for 3d. I have to move the camera far far away to see the rendered texture(like z: -120). I didn't investigate it much but I can share a repo case. I know this is not the use case of this lib but it would be super useful if we can draw stuff for debugging.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions