Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:21
    Squareys commented #77
  • 14:21
    codecov-io commented #77
  • 14:21
    Squareys synchronize #77
  • 11:11
    mosra commented #77
  • 10:44
    leventt starred mosra/magnum
  • 10:34
    Squareys commented #77
  • 09:36
    parcali starred mosra/magnum
  • Sep 15 22:17
    mosra milestoned #77
  • Sep 15 22:16
    mosra commented #77
  • Sep 15 22:13
    Squareys edited #77
  • Sep 15 22:13
    Squareys synchronize #77
  • Sep 15 22:12
    Squareys edited #77
  • Sep 15 22:12
    Squareys edited #77
  • Sep 15 22:12
    Squareys opened #77
  • Sep 15 21:35

    mosra on next

    TinyGltfImporter: minor cleanup. OpenGexImporter: have consisten… doc: improve docs about Vcpkg -… and 2 more (compare)

  • Sep 15 08:30
    jeron1moo starred mosra/magnum
  • Sep 15 04:00
    sudopluto starred mosra/magnum
  • Sep 15 03:09
  • Sep 14 23:55
  • Sep 14 20:33
    binkiklou starred mosra/magnum
Vladimír Vondruš
@mosra
that's important, otherwise depth buffer won't work
but even without that it should render something
sariug
@sariug
now it rendered
GL::defaultFramebuffer.clear(GL::FramebufferClear::Color | GL::FramebufferClear::Depth);
GL::Renderer::disable(GL::Renderer::Feature::ScissorTest);
GL::Renderer::enable(GL::Renderer::Feature::DepthTest);
GL::Renderer::enable(GL::Renderer::Feature::FaceCulling);
GL::Renderer::enable(GL::Renderer::Feature::Blending);
GL::Renderer::setBlendFunction(GL::Renderer::BlendFunction::SourceAlpha, GL::Renderer::BlendFunction::OneMinusSourceAlpha);
GL::Renderer::setBlendEquation(GL::Renderer::BlendEquation::Add);

framebuffer.bind();
_camera->draw(_drawables);

render_gui();
so is it actually getting this settings ?
or are these settings just for defaultbuffer ?
I think it is valid for all
it works
amazing !
Stéphane Brard
@brard.stephane_gitlab
Matrix4::scale(Vector3::xAxis(-1.0f))
I'm so dumb man forgive my ignorance aahahaha
Vladimír Vondruš
@mosra
the Renderer state (or most of it, unless I made some horrible design decision) is global, not tied to a particular bound framebuffer, so yeah it should work ... and you only need to set what's not already set (so e.g. if you have face culling enabled always, no need to enable() it again)
sariug
@sariug
@mosra is there any way u suggest to serialize a texture object :D
Vladimír Vondruš
@mosra
save it to a PNG you mean? :D
there's DebugTools::screenshot(), that's the easiest
sariug
@sariug
no no D:
saving something and reading it from somewhere is s-l-o-w :D
to save it in an object of c type(not even stl :D )
like
char[]
Vladimír Vondruš
@mosra
um
what you want to achieve, exactly?
sariug
@sariug
you know this client server architecture thing
Vladimír Vondruš
@mosra
Friday the 13th
the day when I'm angry at compilers
again
sariug
@sariug
:D
wow pretty silent here :)
trashuj
@trashuj
^^
Vladimír Vondruš
@mosra
unusual
Vladimír Vondruš
@mosra
@/all question: i got a feature request for adding github links to each function / class / ... sources to Magnum docs, how many of you would find that feature useful as well? so i know how to prioritize it ;)
sariug
@sariug
doesnt matter for me. I read most of the functions, if I wonder it :)
Daniel Guzman
@roig
doesn't matter for me :). The webpage documentation is very fast
Jonathan Hale
@Squareys
I sometime check .cpp files of some classes, but for those cases finding them on github is not too hard
Stéphane Brard
@brard.stephane_gitlab
@mosra Useless for me since the docs is pretty verbose and well organised
Vladimír Vondruš
@mosra
thanks everybody, that's exactly what i wanted to hear :D
sariug
@sariug
is there an inbuilt function to convert a rotation matrix into a vector
such as
Vladimír Vondruš
@mosra
what is a rotation vector, exactly?
if that's axis*angle, then Quaternion::fromMatrix() would work, and from that you can get axis and an angle back (but then why not just a quaternion?)
sariug
@sariug
I have a Mat4 of rotation+translation. Lets assume I have a line . According to this matrix, trying to get the direction of the line.
like how much is rotated from the initial pos
quaternion shoul handle it probably (?)
Vladimír Vondruš
@mosra
yeah quat should handle that I think
basically convert the mat4 to a quat and get the axis+angle out of it
sariug
@sariug
alright, thanks !
Vladimír Vondruš
@mosra
image.png
you can't even begin to imagine how much PAIN this was :joy:
Jonathan Hale
@Squareys
:clap: :clap: :clap: :clap: :clap: :clap: