0
$\begingroup$

I'm making a raytracer and want to print debug arrows

Blender example:
enter image description here

Old version of 3d max:
enter image description here

How do I do the same having camera forward, up and right vector? I think I need some kind of matrix transformation? Can it be done without using matrices?

$\endgroup$
  • 2
    $\begingroup$ I don't really understand what your problem is here. Yes, you want to draw a small coordinate system, but why is this a problem? What are you struggling with? Which API/Engine do you use? If you are somewhat familiar with a Graphics API like OpenGL or DirectX, drawing such a coordinate system is rather easy. So please tell us a little bit more about your problem. $\endgroup$ – wychmaster May 27 at 7:52
  • 1
    $\begingroup$ Hi Herrgott, each raytracer needs some sort 3D transformations to place, rotate and scale all the objects in the scene correctly. Such transformations are mostly represented by matrices, since that is mathematically the most natural and easiest way. You should not try to avoid matrices (my impressions is you do). So briefly: 1) You may create the helper object as part of the raytraced scene, attached to the camera, 2) or you can render them as an overlay using rasterization. In my opinion the second approach is more suitable for your use-case. $\endgroup$ – Isolin May 27 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.