• 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.
Sign in to follow this  
Followers 0
aravind

High Quality (Poster Quality) Screenshots.. hi i did coding for HD screenshots in Perspective view but how to do it in orthogonal view.?

2 posts in this topic

I need to take High Definition Screen shots in my directx(C#) application. and i found out the solution in Game Programming gems2 book, and i implemented it in my application and it is working fine, but the problem is they gave the algorithm for Perspective view , now i need to take same HD screen shots in Orthogonal View...

 

 

The idea behind tis is we are splitting the screen into 9 quadrants and set the projection matrix then take screen shots and we get 9 pictures then we are stitching it to one picture, and the below alogorithm values works well for perspective view but it doesnt work for orthogonal view, i need to know the left,right,top,botom values for orthogonal view..!!

 

 

void GpgPerspective (double fovy, double aspect, double Near, double
Far, int subrect)
{
double fov2, left, right, bottom, top;
fov2 = GpgDegToRad(fovy) * 0.5;
top = Near/(cos(fov2)/sin(fov2));
bottom = -top;
right = top*aspect;
left = -right;
if (subrect == -1) //Regular full screen
GpgFrustum (left, right, bottom, top, Near, Far);
else if (subrect == 0) //UL
GpgFrustum(left, left/3.0, top/3.0, top, Near, Far);
else if (subrect == 1) //UC
GpgFrustum(left/3.0, right/3.0, top/3.0, top, Near, Far);
else if (subrect == 2) //UR
GpgFrustum(right/3.0, right, top/3.0, top, Near, Far);
else if (subrect == 3) //ML
GpgFrustum(left, left/3.0, bottom/3.0, top/3.0, Near, Far);
else if (subrect == 4) //MC
GpgFrustum(left/3.0, right/3.0, bottom/3.0, top/3.0, Near, Far);
else if (subrect == 5) //MR
GpgFrustum(right/3.0, right, bottom/3.0, top/3.0, Near, Far);
else if (subrect == 6) //BL
GpgFrustum(left, left/3.0, bottom, bottom/3.0, Near, Far);
else if (subrect == 7) //BC
GpgFrustum(left/3.0, right/3.0, bottom, bottom/3.0, Near, Far);
else if (subrect == 8) //BR
GpgFrustum(right/3.0, right, bottom, bottom/3.0, Near, Far);
}
 
 
 
void GpgFrustum (double left, double right, double bottom, double
top, double zNear, double zFar)
{
float matrix[16] = { 1.0f, O.Of, O.Of, O.Of,
0.Of, 1.Of, 0.Of, 0. Of,
O.Of, O.Of, 1.0f, O.Of,
0. Of, 0. Of, 0. Of, 1 . Of } ;
matrix[0] = (float) (2. 0*zNear/ (right-left j) ;
matrix[5] = (float) (2. 0*zNear/ (top-bottom) );
matrix[8] = (float) ((right+left)/(right-left)) ;
matrix[9] = (float) ((top+bottom) /(top-bottom) );
matrix[10] = (float) (-(zFar)/(zFar-zNear)) ;
matrix[11] = (float) (-1 .0) ;
matrix[14] = (float32) (-(zFar*zNear)/(zFar-zNear)) ;
#endif
//Now set this matrix as the current projection matrix
}
Edited by aravind
0

Share this post


Link to post
Share on other sites

You could try rendering to texture - any modern card will support 16384x16384 for stupidly high quality output in a single pass. Note that a 16384x16384 RGBA texture requires 1GB of video memory.

Edited by mark ds
0

Share this post


Link to post
Share on other sites

Yes you are probably correct, modern cards will support very large render textures.

 

However I have to use this same technique myself on some platforms.

 

The OP should have an equivalent to glOrtho in his code base, from his post I'll take a guess at GpgOrtho.

 

Use that instead of the perspective matrix and he should be okay

0

Share this post


Link to post
Share on other sites

You could try rendering to texture - any modern card will support 16384x16384 for stupidly high quality output in a single pass. Note that a 16384x16384 RGBA texture requires 1GB of video memory.

This can, by the way, even be done even with considerably smaller render targets, and at virtually any resolution (not limited to anything in particular, except the space on your harddisk) if you don't mind doing the final composition by hand.

 

Instead of one @163842 render, you can do 16 @40962 renders of the same scene, with a sub-pixel jitter (i.e. you are effectively supersampling the scene). Or you could do 256 renders @40962 which gives you the information necessary to create a 655362 image. Of course that would be a 16 GiB image, so doing the final composition is a bit of a challenge, you'd either have to do it in smaller tiles, or on the CPU  (maybe even out of core, if your machine doesn't have that much RAM).

 

Doing several identically-sized shots and compositing them may have benefits in terms of mipmaps and differentials, too. If you render something at a different resolution, you won't be using the same mipmap levels, and your procedural content that uses dFdx() or the like will not be the same either.

 

Lastly, the supersampling technique allows you to cheat on your posters. You can for example trivially add a high quality motion blur (simply render a very, very slowly animated scene instead of a single static one, and crank up the numbers of screens by another few dozen).

Edited by samoth
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0