Rajawali Tutorial 18: Drawing Lines

Posted by on Apr 26, 2012 in 3D, Android, Rajawali4 comments

This tutorial has moved to the Rajawali Wiki.



Tags: , , ,


4 comments

» Comments RSS Feed
  1. Hi,
    Thanks for Rajawali! I am currently using it in stereo (with Evo3d and fixed camera only), but cannot find how to update a line during the rendering: add a point, remove one. If I am correct, the vertex buffers are created only during the initialization, and if I try to update it later (calling createData), it crashes with a BufferOverflow…
    Is there an easy way to do so?

  2. Hi Alain,
    This is not possible yet. It’s on the todo list though.

  3. Ok, no problem. I found other things to do. I will surely have more questions later ;) .
    If you are interested, I can send you the stereoscopic renderer. It is rather dumb (work only if the camera is looking straight ahead, I didn’t take the camera orientation into account (as I don’t need it actually) ), but works great. With some extra code it will also work on Optimus 3D (but I will not be able to test it), as only the set-up differ (to get the parallax barrier on and off). And getting it working in all cases is just a matter of some extra calculations (and parameters: where is the projection plan (and/or camera angle), proper distance between the cameras).

  4. Hi Alain,
    Please, send it over. Contributions are always more than welcome!

Leave a comment