Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not an Issue but an Update #3

Open
mjs513 opened this issue Feb 12, 2020 · 2 comments
Open

Not an Issue but an Update #3

mjs513 opened this issue Feb 12, 2020 · 2 comments

Comments

@mjs513
Copy link

mjs513 commented Feb 12, 2020

Hi Michael
Seems like every 6 months I get back to working on the library.

Just want to let you know that I finally got it completely working on the Teensy 4. The last piece I was having problems with was the SHADED_RENDERING_MODE but finally traced that issue down when I decided to use the shaded triangle function in another library I was working. Once that was working made the change to Arduino3d library and now is working beautifully. Have problems with touch set up but that's on me - was fiddling with it :)

Just to let you know there is another library I started playing with called Arduinogl which basically lets you use v1.0 commands to draw 3d objects. It has a limited command set so I expanded it (can never leave anything alone I guess). So since I like both libraries and hate going back and forth been working on combing the two, Just thought I would let you know in case you had any issues with that effort.

Thanks for all your help
Michal.

@michaelerule
Copy link
Owner

michaelerule commented Feb 13, 2020

Hi Michal,

Thanks for the update! It does sound like most of my optimizations would be superfluous on the Teensy; did you end up using the built-in frame buffer? Rendering to this with some sort of GL clone seems like it would work well.

The libraries I wrote were mainly optimized for drawing commands with the TFT communications protocol, which would be unnecessary if you were rendering offscreen. Other optimizations, like restricting to less than 256 triangles and vertices, and rendering within a 256x256 region of the screen with fixed-point precision, might also be superfluous.

Anyway! Happy to take a look at your library/project. You should publish it and then maybe send a tip to Hackaday to publicize it ( :

@mjs513
Copy link
Author

mjs513 commented Feb 13, 2020

Morning (at least for me)
Alot of optimization is already being done on the ILI9341 side using DMAMem and framebuffer support etc., so alot of the display optimizations you have are no longer needed. Same for fixed point precision - pretty much using floats now for the points and seems to working in the gl version.

I am still having a problem with trying to use 900 vertices but think that may be memory usage on the T4 side as I still am limited as the program keeps growing :) 256 triangles for a teapot seems to work fine but 552 triangles still a bit much.
Right now working on shaders :) Trying to implement it myself and learn before i just import your code. So that's still a work in progress.
The current version of the lib is at:
https://github.com/mjs513/ArduinoGL_t3
and the ILI9341 api is at:
https://github.com/KurtE/ILI9341_t3n.
At some point may put together a Hackaday article but right now still a work in progress as I find bugs and other things I want to improve and/or add.

Unfortunately going to get tied up for about a month or 2 starting next week so not sure how much more time I am going to be able to spend :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants