Modern JoGL examples

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Modern JoGL examples

elect
Hi,

I am porting to JoGL the examples of the book "Learning Moder 3D Graphic Programming", by J.L. McKesson in order to learn the new OpenGL

I covered up to the Chapter 7, but now examples are getting always more and more big and complicate, that's why I need help

While I was studying the book I also started, in parallel, creating a JoGL environment such as classes to handle GLSL programs, elements to be rendered, matrix stacks and also a raw port of GLM..

Better opening a new repository or being a nested part of an already existing one (such as maybe the sgothel jogl-demos)?
Reply | Threaded
Open this post in threaded view
|

Re: Modern JoGL examples

gouessej
Administrator
Hi

Please feel free to contribute, make a pull request on Github, it would be nice in jogl-demos :)
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Modern JoGL examples

elect
How should I do? First I clone it on my pc, then I modify it and commit it or what?
Reply | Threaded
Open this post in threaded view
|

Re: Modern JoGL examples

Xerxes Rånby
elect wrote
How should I do? First I clone it on my pc, then I modify it and commit it or what?
yes, if you work from command line then do the following:

1. create an github account

2. fork jogl-demos by clicking on the fork button on the http://github.com/JogAmp/jogl-demos page
https://help.github.com/articles/fork-a-repo

3. clone jogl-demos to your harddrive
git clone  http://github.com/JogAmp/jogl-demos

4. add files and make your changes
*do your magic* :)

4a.  test build jogl-demos and test the changes, we have added build scripts for the most common platforms jogamp support. Building using these scripts require that jogl and gluegen is checked out next to the jogl-demos folder.
cd jogl-demos/make
sh scripts/make.jogl.all.x86.sh

5. before you commit set a git username and email usign git config
https://help.github.com/articles/set-up-git

6. stage changes for commit using git add
#list files changed using git status and git diff
git status
#use git add to stage changes for commit
git add src/...

7. commit the changes using git commit -v and write a suitable commit message

8. review your commit, i usually use the gitk tool to review the commit, make sure only the fires you intended to include with the commit are included and no extra unrelated changes got included with the commit. Also check that your username and email is setup correctly. You can always undo by moving the current branch back in time and prepare a new commit if you are unhappy how the current commit looks.

9. add your github account as a git remote
git remote add myusername https://github.com/yourusername/jogl-demos.git

10. when you feel all is in order push the commit to github
git push myusername master

11. send a pull request using the github website and optinally post an email here that there is a new pull request that we should take a look at!

Cheers
Xerxes
Reply | Threaded
Open this post in threaded view
|

Re: Modern JoGL examples

elect
This post was updated on .
Xerxes Rånby wrote
3. clone jogl-demos to your harddrive
git clone  http://github.com/JogAmp/jogl-demos
So I have forked and cloned, now I am trying to solve the dependencies..

Looking in the project property it says:


../gluegen/build/gluegen-rt.jar
../jogl/build/nativewindow/nativewindow.all.jar
../jogl/build/jogl/jogl.all.jar
../jogl/build/newt/newt.all.jar
../joal/build/joal.jar

then since I have the jogl_demos in

C:\Users\gbarbieri\Documents\jogl-demos

I created:

C:\Users\gbarbieri\Documents\jogl\build

and so on..

now in the jogamp-all-platforms I have only the

gluegen-rt.jar
jogl.all.jar
joal.jar

it's missing

nativewindow.all.jar
newt.all.jar

I tried to take the platform specific ones, but it didnt work out, I still have unsatisfied dependencies


In the while I created a temporary one

https://github.com/elect86/modern-jogl-examples