Hello Nicoo,

On Wed, Nov 6, 2013 at 3:52 PM, First Last <[email protected]> wrote:

>                                                        « Hi people of OSG
> mailing list I'm Nicoo, and I come in peace! »
>
> well,
> I try to write a minimal application  using X11 and OSG, I would like to
> know first if the library osgViewer is something written only to help
> newcomer.
> I borrowed a book where all examples I saw use osgViewer.
>

That is the simplest way to do things. BTW, for the sake of your own
sanity, I do suggest to use some higher level toolkit (at least SDL)
instead of writing directly for X11. You won't get any performance
advantage by doing that, but you lose out on much of the functionality.


>
> I'm interested to have a full control of my camera (position, gaze...)
> like I do in Opengl.
>
> Same for inputs, I'm using X11  key/mouse event. So I'm looking for a
> tutorial who  starts from scratch, using only OSG
> and X11.
>
> I didn't found any tutorial so far.


There are some tutorials included with OSG, but I doubt you will find many
dealing with raw X11 - few people are such masochists to use that. However,
from your code I can see that you have got the init done correctly, so the
rest should be relatively straightforward.



> Moreover, I'm bit confused,  when I go there :
>
> http://trac.openscenegraph.org/projects/osg//wiki/Support/Tutorials
>
> and  see many tutorials with some note like  : "Code needs conversion to
> osgViewer" I don't  know if it's not wothless to take time to study these
> tutorials...
>

Um, if you consider tutorials as possibly "worthless" before even looking
at them, there isn't much that can be done for you. Only you can say
whether or not something helps you, so go and look at those tutorials. OSG
comes with plenty of examples too and there are also several books
available - the cookbook was mentioned already, there is also a beginners
book and quick start guide:

http://www.openscenegraph.com/index.php/documentation/books



> p.s. : there is a reason why http://trac.openscenegraph.org is so slow ?
>

That's the old website, use http://www.openscenegraph.com/ instead.

Concerning:

> as you can see, there is some  black parts, I don't know why... (p.s. I
> don't think they are some burnt triangles... cessnafire... like my
> invisible roomate says )


Could you post a screenshot? That would be best way to check that as your
code obviously doesn't work in Windows and on Linux my machine could behave
differently than yours (different GPU or drivers, for example).

Regards,

Jan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to