Dxtank and template don't run

1 view
Skip to first unread message

Adam Stevenson

unread,
Jan 5, 2007, 4:31:14 PM1/5/07
to DXFramework
I have no problems compiling everything that comes with DXframework. I
can also run all the demos. The only problem is, when I compile the
dxtank tutorial, no window appears. Just nothing happens. Does anyone
know what is causing this and how to correct the issue before it
becomes a larger one?

Thanks

Jonathan

unread,
Jan 5, 2007, 5:52:19 PM1/5/07
to dxfra...@googlegroups.com
I don't have the code in front of me but try changing the initial resolution set in main.cpp in the call to Game::Load

Set it to something like 800 by 600 or lower if your screen is very small.

Let me know what happens.

Adam Stevenson

unread,
Jan 6, 2007, 10:21:56 AM1/6/07
to DXFramework
Thanks Jonathon, it works now. I was wondering if you could offer any
explanation as to why it doesn't work. I work on a 1280x800 desktop
resolution and run 1024x768 res games frequently that do work.

On Jan 5, 4:52 pm, Jonathan <voig...@gmail.com> wrote:
> I don't have the code in front of me but try changing the initial resolution
> set in main.cpp in the call to Game::Load
>
> Set it to something like 800 by 600 or lower if your screen is very small.
>
> Let me know what happens.
>

Jonathan

unread,
Jan 6, 2007, 12:17:25 PM1/6/07
to dxfra...@googlegroups.com
It is because the total window area is "client area" + the other window stuff (title bar, border, etc.) and that adds up to over 800 pixels tall and this causes things to fail. I'm sure there are ways around it, but I don't know enough about it yet.

If you launch the game full screen at 1024x768 it should work because it there is no other window stuff.

DXFramework needs to detect this and warn the user about it.

University of Michigan

Adam Stevenson

unread,
Jan 6, 2007, 1:46:33 PM1/6/07
to DXFramework
That makes sense, and thanks again for your help.

On Jan 6, 11:17 am, Jonathan <voig...@gmail.com> wrote:
> It is because the total window area is "client area" + the other window
> stuff (title bar, border, etc.) and that adds up to over 800 pixels tall and
> this causes things to fail. I'm sure there are ways around it, but I don't
> know enough about it yet.
>
> If you launch the game full screen at 1024x768 it should work because it
> there is no other window stuff.
>
> DXFramework needs to detect this and warn the user about it.
>

> On 1/6/07, Adam Stevenson <adamstevenson...@gmail.com> wrote:
>
>
>
>
>
> > Thanks Jonathon, it works now. I was wondering if you could offer any
> > explanation as to why it doesn't work. I work on a 1280x800 desktop
> > resolution and run 1024x768 res games frequently that do work.
>
> > On Jan 5, 4:52 pm, Jonathan <voig...@gmail.com> wrote:
> > > I don't have the code in front of me but try changing the initial
> > resolution
> > > set in main.cpp in the call to Game::Load
>
> > > Set it to something like 800 by 600 or lower if your screen is very
> > small.
>
> > > Let me know what happens.
>
> > > On 1/5/07, Adam Stevenson <adamstevenson...@gmail.com> wrote:
>
> > > > I have no problems compiling everything that comes with DXframework. I
> > > > can also run all the demos. The only problem is, when I compile the
> > > > dxtank tutorial, no window appears. Just nothing happens. Does
> > anyone
> > > > know what is causing this and how to correct the issue before it

> > > > becomes a larger one?--
> Jonathan Voigt
> Center for Cognitive Architecture
> University of Michigan

Reply all
Reply to author
Forward
0 new messages