Run G3D-base program on other comp

9 views
Skip to first unread message

Loki

unread,
Oct 27, 2009, 9:04:26 AM10/27/09
to G3D Users
I've compiled demos/models on my Visual C++ myself and trying to run
it on other computer where MSVC++ has never been ang got an error (in
russian but in English in can be translated as "Program configurated
incorrectly, try to reinstall it". How should I compile program with
G3D to run it on another computer?
___________
Thanks

Morgan McGuire

unread,
Oct 27, 2009, 12:55:45 PM10/27/09
to g3d-...@googlegroups.com
A release build that contains all of the files listed at the bottom of log.txt should work on any computer.  Specifically, look at the bottom of your log.txt file, copy anything it loaded into the current directory, and then keep doing that until your program isn't loading files outside its directory.  Then just release those files with your executable.  If you don't want a lot of files you can put them in a .zip file and update the paths in your program to look inside the zipfile--all G3D routines except video loading can load from zip files directly.

-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan

Loki

unread,
Oct 27, 2009, 1:31:29 PM10/27/09
to G3D Users
Thanks a lot for your reply

Actually log.txt isn't created 'cause program crashes before that file
created... On computer where MSVC presents it works fine.. I even
can't reveal why it doesn't run because of there is no log.txt.. It
seems to me it requires some option of compiling in MSVC


On Oct 27, 9:55 pm, Morgan McGuire <morga...@gmail.com> wrote:
> A release build that contains all of the files listed at the bottom of
> log.txt should work on any computer.  Specifically, look at the bottom of
> your log.txt file, copy anything it loaded into the current directory, and
> then keep doing that until your program isn't loading files outside its
> directory.  Then just release those files with your executable.  If you
> don't want a lot of files you can put them in a .zip file and update the
> paths in your program to look inside the zipfile--all G3D routines except
> video loading can load from zip files directly.
>
> -m
>
> Prof. Morgan McGuire
> Computer Science Department
> Williams Collegehttp://cs.williams.edu/~morgan

corey taylor

unread,
Oct 27, 2009, 1:31:55 PM10/27/09
to g3d-...@googlegroups.com

If that doesn't work (and depending on the exact error), you might need to install the runtime libraries for the specific visual studio version you're using to build G3D.

corey

On Oct 27, 2009 12:56 PM, "Morgan McGuire" <morg...@gmail.com> wrote:

A release build that contains all of the files listed at the bottom of log.txt should work on any computer.  Specifically, look at the bottom of your log.txt file, copy anything it loaded into the current directory, and then keep doing that until your program isn't loading files outside its directory.  Then just release those files with your executable.  If you don't want a lot of files you can put them in a .zip file and update the paths in your program to look inside the zipfile--all G3D routines except video loading can load from zip files directly.

-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan

On Tue, Oct 27, 2009 at 9:04 AM, Loki <lok...@gmail.com> wrote: > > > I've compiled demos/models...

Loki

unread,
Oct 27, 2009, 1:32:12 PM10/27/09
to G3D Users
Thanks a lot for your reply

Actually log.txt isn't created 'cause program crashes before that file
created... On computer where MSVC presents it works fine.. I even
can't reveal why it doesn't run because of there is no log.txt.. It
seems to me it requires some option of compiling in MSVC


On Oct 27, 9:55 pm, Morgan McGuire <morga...@gmail.com> wrote:
> A release build that contains all of the files listed at the bottom of
> log.txt should work on any computer.  Specifically, look at the bottom of
> your log.txt file, copy anything it loaded into the current directory, and
> then keep doing that until your program isn't loading files outside its
> directory.  Then just release those files with your executable.  If you
> don't want a lot of files you can put them in a .zip file and update the
> paths in your program to look inside the zipfile--all G3D routines except
> video loading can load from zip files directly.
>
> -m
>
> Prof. Morgan McGuire
> Computer Science Department
> Williams Collegehttp://cs.williams.edu/~morgan

Morgan McGuire

unread,
Oct 27, 2009, 1:37:01 PM10/27/09
to g3d-...@googlegroups.com
I mean, you look at the log.txt on the computer where it works to make sure you've got all of the files you need.  log.txt reports if you load files outside your directory.


-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan


Vitaly Shevtsov

unread,
Oct 27, 2009, 6:19:31 PM10/27/09
to g3d-...@googlegroups.com


2009/10/27 Morgan McGuire <morg...@gmail.com>



--
Шевцов Виталий

Loki

unread,
Oct 28, 2009, 5:59:18 PM10/28/09
to G3D Users
Good afternoon!

Thanks for your reply, Morgan... Your advice was useful.. But now I
have another question... I know English not very well so I try to
explain what I need as clear as I can... I'm looking at demos/ and
can't understand such thing: is G3D:: class or namespace? Have you got
primitive 3d-shooter or something like this that I could examine to
understand how G3D works? demos/ is too hard to me 'cause I use G3D at
the first time

____________________
Many thanks to your job and wasting time

On Oct 27, 10:37 pm, Morgan McGuire <morga...@gmail.com> wrote:
> I mean, you look at the log.txt on the computer where it works to make sure
> you've got all of the files you need.  log.txt reports if you load files
> outside your directory.
>
> -m
>
> Prof. Morgan McGuire
> Computer Science Department
> Williams Collegehttp://cs.williams.edu/~morgan
>
> On Tue, Oct 27, 2009 at 1:31 PM, Loki <loki...@gmail.com> wrote:
>
> > Thanks a lot for your reply
>
> > Actually log.txt isn't created 'cause program crashes before that file
> > created... On computer where MSVC presents it works fine.. I even
> > can't reveal why it doesn't run because of there is no log.txt.. It
> > seems to me it requires some option of compiling in MSVC
>
> > On Oct 27, 9:55 pm, Morgan McGuire <morga...@gmail.com> wrote:
> > > A release build that contains all of the files listed at the bottom of
> > > log.txt should work on any computer.  Specifically, look at the bottom of
> > > your log.txt file, copy anything it loaded into the current directory,
> > and
> > > then keep doing that until your program isn't loading files outside its
> > > directory.  Then just release those files with your executable.  If you
> > > don't want a lot of files you can put them in a .zip file and update the
> > > paths in your program to look inside the zipfile--all G3D routines except
> > > video loading can load from zip files directly.
>
> > > -m
>
> > > Prof. Morgan McGuire
> > > Computer Science Department
> > > Williams Collegehttp://cs.williams.edu/~morgan<http://cs.williams.edu/%7Emorgan>

zetadin

unread,
Oct 29, 2009, 7:56:41 AM10/29/09
to G3D Users
G3D is a namespace. But you don't need to specify "using namespace
G3D;" since it is already done in G3DAll.h, which you should usually
include in your headers.

If you don't understand what is going on in the engine, it might be
helpful to look at the G3D classes index in the manual at
http://g3d-cpp.sourceforge.net/manual/annotated.html. That was how I
learned G3D :). If you don't know what something does or if you are
searching for a class to do something specific, you can usually find
it in there. You can find the same information if you go through the
source code, but this tends to be faster.

I would also like to now about any existing opensource FPS using G3D.
It would be useful to look at since I still could not get collision
detection to work properly in my program.

Regards.
Yuriy Khalak (Zetadin)

Morgan McGuire

unread,
Oct 29, 2009, 1:15:45 PM10/29/09
to g3d-...@googlegroups.com
G3D is a namespace.

The demos are the simplest examples we have.  There are also some other people who have written code they are willing to share or have posted on the web...anybody reading this should also feel free to reply!


-m


Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan


Cesareo of Mexico

unread,
Oct 29, 2009, 1:33:17 PM10/29/09
to g3d-...@googlegroups.com
Im in a development of an artistic project wich is intended to use a lot of 3D. I hope to release it in high quality in the final version, so it need to use a good 3D framework.

I just give up for now. Installing and running the G3D over OSX is not clean, nor easy, nor inmediate. But this is for now, I really want to run it in the next version of this project as the complilable-non cocoa demos are great. Hope I can help later for the cocoa thing.

--
Cesareo Aguirre
http://robot-alien.com/

Ivan Vodopiviz

unread,
Oct 29, 2009, 1:39:25 PM10/29/09
to g3d-...@googlegroups.com
Maybe it would be a good idea to make a list of interesting features
and start coding simple feature demos. I'm not asking the G3D
developers to tackle such a task, but maybe a few developers from the
community could make it. I haven't used G3D much yet, but I'm willing
to write at least a few of these demos.

Given the rather low-level nature of G3D, some stuff could be
difficult to do: ie. Collision detection can be implemented in a
gazillion ways, but maybe it's possible to develop simple examples
just good enough to be used as starting points.
--
Iván Vodopiviz

Cesareo of Mexico

unread,
Oct 29, 2009, 2:13:06 PM10/29/09
to g3d-...@googlegroups.com
Iván, thats the idea, because this installation is for very advanced engineers. Must be a shotcut for this implementation, so we spend some good time in the documentation for the API than for the installation process.

Im trying papervision3d for flash and is a simple library that you can put into the same folder for your projects. That way may be the best for G3D.

--
Cesareo A.

Ivan Vodopiviz

unread,
Oct 29, 2009, 2:22:30 PM10/29/09
to g3d-...@googlegroups.com
The previous, and so far, latest stable release of G3D was fairly
straightforward to install. But I always compiled from source, so I
can't really tell.

In my previous message I was talking about putting together a bunch of
small code tutorials to show off certain features of G3D, or little
"How-to" demos.

Cheers,
--
Iván Vodopiviz

Morgan McGuire

unread,
Oct 30, 2009, 1:12:54 AM10/30/09
to g3d-...@googlegroups.com
In my previous message I was talking about putting together a bunch of
small code tutorials to show off certain features of G3D, or little
"How-to" demos.

That's a great idea.  I recommend using the Wiki to organize efforts here:

http://sourceforge.net/apps/mediawiki/g3d-cpp/index.php?title=Main_Page

-m
 
Reply all
Reply to author
Forward
0 new messages