federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Example program

Sun Aug 11, 2013 6:00 am

Is anyone interested in using the Federgraph formula as a 3D model to make a 3D example program that runs on the Pi?
http://www.riggvar.de/federgraph-formula.html
Something similar to ‘3D Parametric Function Plotting’, but using the Federgraph model as the function to plot. I would like ‘Developing for Pi in Visual Studio’ too, then using the source to compile on the Pi.
The example program should focus on drawing a single mesh. Rotation and Zoom using the mouse should be implemented. When the scroll wheel of the mouse is used, a parameter in the model should be updated, the whole model recalculated (coordinates of vertices) and the mesh redrawn.
The program should use the hardcoded function, no parsing of user supplied functions required. But the possibility to change the resolution (number of vertices) should be included right from the start.
This is all on my list of requirements for an introductory example program which everyone can use for all purposes, free and commercial. Help make the raspberry pi the platform for projects like this.
I have provided a model that has the potential to inspire the raspberry pi users. Please show all Raspberry Pi users how to manipulate it live on the screen. This is the task: go!

ffelagund
Posts: 30
Joined: Wed Nov 21, 2012 7:53 pm

Re: Example program

Sun Aug 11, 2013 8:15 pm

hm... just for fun?

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Mon Aug 12, 2013 12:35 pm

ffelagund wrote:hm... just for fun?
I need a good basic example otherwise I cannot contribute stuff for free. If you want something in return for you effort, than help me with Federgraph for Windows 8 RT. Note that I (and other users, including very young ones) need help only with the 3D system stuff, so that we can add normal logic to build cool things.

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: Example program

Mon Aug 12, 2013 12:55 pm

If you can live with GPL v 3 for your wishes, it may be my command.
Although I suspect I have to folllow somebody very carefully, otherwise "Free" (as in free software?) would not have been mentioned...... Sigh, I can not afford to contribute *anything* if my code gets stolen by so called professionals, so: give me the right answer and I write you something. If you are aware of what that means and if you are willing and *able* to comply. Plz respond.

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Tue Aug 13, 2013 6:03 am

I mean free software, but everyone should be able to add stuff and sell it. The Federgraph application is written in Delphi XE4, it is a Firemonkey HD project. I have filed a bug report in Embarcadero’s QC (Quality central) system with an example project attached, it is downloadable. I can do a slightly improved ‘Example program’ and publish it at Google code or similar site. I have not yet decided on the license. If anyone can use my example, I would expect the same thing with the programs developed in other programming languages.
The ‘formula’ may be the most ‘important’ contribution I can make. The first who recreates the model on the pi may get some fame. It should be fun.
If someone sees potential and wants to work with me on professional things in the area of engineering, this is another aspect I would be interested in.
The ‘Federgraph’ project will probably only be successful if it gets participation. I don’t desperately need help with anything, but I would like if people participate and take it as a starting point for maybe something real, or just have fun.

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Tue Aug 13, 2013 10:22 am

Thaddy wrote:If you are aware of what that means and if you are willing and *able* to comply.
I meant free as in ‘not getting paid for’. GPL v 3 would be good for the example using the Federgraph formula. As I understand it, everyone who uses that code would be required to make the source of any addition or alteration available in public for free. This would be no problem for me because my product is the server that can be used to relay real data to the graph.

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Tue Aug 13, 2013 1:53 pm

Thaddy wrote:*able* to comply
Ah, the answer is yes, I own every bit of it, so far. I don’t need to ask.

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Wed Aug 14, 2013 11:29 am

I created the open source project and will upload the Delphi version of the Example program soon. If you have an implementation for the raspberry pi it should go there, in its own folder.

https://code.google.com/p/federgraph/

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: Example program

Wed Aug 14, 2013 11:46 am

In that case I will be happy to put in some effort and I sincerely hope we can put out some nice efforts soon ;)

Your answers made my day, btw :) (Unintentionally a Rhyme)

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Wed Aug 14, 2013 2:03 pm

Thaddy wrote:In that case I will be happy to put in some effort
Thank you, don't rush, and use the email in FrmMain.pas to contact me if you have questions or requests.

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: Example program

Thu Aug 15, 2013 2:24 pm

Started rewrite in OpenGles 2.0 ;) (Both C and FPC versions)

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: Example program

Sun Sep 01, 2013 8:01 am

Just an update:
I ran into a bug in gles20.pas (dependency on X) for which I summited a bug report to freepascal.org.
I solved it internally, but hesitate to release any code in public, since these unofficially patched units tend to live their own lives and are hard to eradicate when released.

So: pending either acceptance of my patch (currently testing, not submitted yet) or another patch I have put it on hold. Shouldn't take long, though.

Basically, the three native types from line 68 in gles20.pas should be opaque pointers to remove the dependency on X.
The EGLNativeWindow may also be specified as a pointer to an abstract record.
Since X is not hardware accelerated on RaspBian and probably never will be, the patch is essential to be able to use GPU accelerated code with OpenGL ES.

The bug is not Raspbian specific. It is a generic bug for the Linux platform.

federgraph
Posts: 9
Joined: Sun Aug 11, 2013 4:51 am

Re: Example program

Wed Sep 04, 2013 11:50 am

Thaddy wrote:Just an update:
I ran into a bug in gles20.pas (dependency on X) for which I summited a bug report to freepascal.org.
Thanks for the update, good to know about. :)

Thaddy
Posts: 174
Joined: Wed Mar 06, 2013 11:28 am

Re: Example program

Sun Sep 08, 2013 7:47 pm

I have submitted a patch today for gles20.pas on freepascal.org and I have hardware accelerated opengles 2.0 working on the Pi with FPC, so now I can continue with the rest of your code ;)

Return to “OpenGLES”