Shortcut to Easy Graphics with G3D?

5 views
Skip to first unread message

downtime

unread,
Dec 7, 2009, 3:36:32 AM12/7/09
to G3D Users
Hi again guys.

And thank you for the creation of the G3D project. I downloaded and
installed G3D two days ago (working fine by the way), not because I
wanted to be study 3D graphics in deep, but because I wanted an easy
shortcut to simple graphics and maybe later more powerful graphics
using VC++ with G3D.

For the past year I have been programming simple and also some more
advanced console applications and is having great fun with this.
However I am a bit stuck when the requirement is dictating graphics. I
have studied Windows API's and also made the demo programs using API's
that is descriped in VC++ tutorials however I find it not very
intuitive to change an already made console application to an
application which run in a graphical window. On this I can see from
the postings on the WWW that I am not alone.

So my question is: What would the most simple application look like
using G3D which creates a window which can receive input from the
keyboard and output text from the keyboard in the window and also save
the input in a string variable like this:

1. Create a G3D Window and display it on screen ----> 2. Wait for
keyboard input char ----> 3.Display the chars in the G3D window as
the user types --> 4. On enter make newline (write the original string
in a file) and repeat with 2. ---> 5. on escape exit G3D window.

(I know the small program above is not really using G3D to its
extent).

Kind Regards

Kurt.

corey taylor

unread,
Dec 8, 2009, 12:10:01 AM12/8/09
to g3d-...@googlegroups.com
Hi Kurt,
 
Honestly, I would start with the "starter" demo.  That demo sets up G3D a little further than you describe below, but it provides the full capability of G3D while allowing you to do the small investigations.
 
It sounds like you need to focus on how to use GApp.  This class provides a wrapper around the Window application you are talking about.  In it, it creates the OS-specific window and handles the event processing, OpenGL initialization and performs actions such as buffer swapping.
 
If you starting reading more about that class and look at how to use the functions such as onEvent and onUserInput, you will start to feel more comfortable.
 
GApp provides an interface for drawing "surfaces" or models that you can probably ignore for now (onPose, etc).  Instead, focus on learning how to draw things to the screen with Draw and GFont.  Note that GApp gives you a font object to work with (debugFont I think).
 
corey


--

You received this message because you are subscribed to the Google Groups "G3D Users" group.
To post to this group, send email to g3d-...@googlegroups.com.
To unsubscribe from this group, send email to g3d-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/g3d-users?hl=en.



downtime

unread,
Dec 8, 2009, 2:55:16 AM12/8/09
to G3D Users
Tx Corey.

I already made the starter demo and it works fine. My next step is to
try actually to use G3D to somehing usefull and it seems that the
class you are talking about can be used
Do you by the way have a small sample program which uses this class?

Anyway I really appreciate your reply and will get start to work on it
right away.

Kind Regards

Kurt.
On Dec 8, 2:10 pm, corey taylor <corey.tay...@gmail.com> wrote:
> Hi Kurt,
>
> Honestly, I would start with the "starter" demo.  That demo sets up G3D a
> little further than you describe below, but it provides the full capability
> of G3D while allowing you to do the small investigations.
>
> It sounds like you need to focus on how to use GApp.  This class provides a
> wrapper around the Window application you are talking about.  In it, it
> creates the OS-specific window and handles the event processing, OpenGL
> initialization and performs actions such as buffer swapping.
>
> If you starting reading more about that class and look at how to use the
> functions such as onEvent and onUserInput, you will start to feel more
> comfortable.
>
> GApp provides an interface for drawing "surfaces" or models that you can
> probably ignore for now (onPose, etc).  Instead, focus on learning how to
> draw things to the screen with Draw and GFont.  Note that GApp gives you a
> font object to work with (debugFont I think).
>
> corey
>
> > g3d-users+...@googlegroups.com<g3d-users%2Bunsu...@googlegroups.com>
> > .

corey taylor

unread,
Dec 8, 2009, 10:33:04 AM12/8/09
to g3d-...@googlegroups.com

I believe all of the demos including starter use it.

corey

On Dec 8, 2009 2:55 AM, "downtime" <kurt....@hotmail.com> wrote:

Tx Corey.

I already made the starter demo and it works fine. My next step is to
try actually to use G3D to somehing usefull and it seems that the
class you are talking about can be used
Do you by the way have a small sample program which uses this class?

Anyway I really appreciate your reply and will get start to work on it
right away.

Kind Regards

Kurt.

On Dec 8, 2:10 pm, corey taylor <corey.tay...@gmail.com> wrote: > Hi Kurt, > > Honestly, I would sta...

> On Mon, Dec 7, 2009 at 3:36 AM, downtime <kurt.fra...@hotmail.com> wrote: > > Hi again guys. > > >...

> > g3d-users+...@googlegroups.com<g3d-users%2Bunsu...@googlegroups.com>

> > . > > For more options, visit this group at > >http://groups.google.com/group/g3d-users?hl=en. ...

Reply all
Reply to author
Forward
0 new messages