• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

awigga

how do you setup direct3d version 7

4 posts in this topic

How do you setup direct3d version 7? i just need code with comments. so please help Styles
0

Share this post


Link to post
Share on other sites
Did you know that you''re kinda posting in an OpenGL section? Doesnt'' really matter though, read the documentation that comes with DirectX7 SDK, it''s really helpful and actually contains some pretty good tutorials. You do have to know how to use DirectDraw first though, but if you''re going to tangle with Direct3D you should know DirectDraw anyways! All the microsoft demo-code is commented and pretty well explained in the tutorials. Cheers!
0

Share this post


Link to post
Share on other sites
This really isn''t the right place for DirectX questions but since I know a real easy way to set up Direct3D, which I wish to share with the OpenGL people who say that Direct3D is hard to initialize I will tell you. (Please I''m not flaming anyone and I''m not saying that Direct3D is better than OpenGL, just that it is a lot easier to work with now than with previous versions )

Initialization of Direct3D, the easy way:


HRESULT CD3DApp::InitializeD3D()
{
// Initialize D3DX
HRESULT hr;
if( FAILED(hr = D3DXInitialize()) )
return hr;


// Create the D3DX context
// D3DX creates everything we need here
DWORD Flags = m_bFullscreen ? D3DX_CONTEXT_FULLSCREEN : 0;
hr = D3DXCreateContextEx( D3DX_DEFAULT, // Use the best acceleration
Flags,
m_hWnd,
NULL, // We don''t use a parent window
m_nColorBits,
m_nAlphaBits,
m_nDepthBits,
m_nStencilBits,
D3DX_DEFAULT, // Use one backbuffer
m_nWidth,
m_nHeight,
D3DX_DEFAULT, // Let D3DX choose refreshrate
&m_pD3DX );
if( FAILED(hr) )
return hr;


// Get a reference to Direct3DDevice
m_pD3DDev = m_pD3DX->GetD3DDevice();
if( m_pD3DDev == NULL )
return E_FAIL;


// Get a reference to DirectDraw
m_pDD = m_pD3DX->GetDD();
if( m_pDD == NULL )
return E_FAIL;


return S_OK;
}


And when you shut down the application you shut down Direct3D this way:


HRESULT CD3DApp::TerminateD3D()
{
// Release our DirectX objects
if( m_pDD )
{
m_pDD->Release();
m_pDD = 0;
}


if( m_pD3DDev )
{
m_pD3DDev->Release();
m_pD3DDev = 0;
}


if( m_pD3DX )
{
m_pD3DX->Release();
m_pD3DX = 0;
}


// Let D3DX do some final uninitializations
D3DXUninitialize();


return S_OK;
}


These functions are taken directly from my own little framework so all the variables that start with m_ is declared and initialized somewhere else, but I think you can figure out what they do.

The D3DXCreateContextEx() function has a little brother called D3DXCreateContext() that has less parameters, so it can be easier to use if you don''t need the extra features.


- WitchLord
0

Share this post


Link to post
Share on other sites
Since NeHe''s area is now an OpenGL type area, maybe someone should volunteer to moderate a DirectX section, just an idea.
0

Share this post


Link to post
Share on other sites