• 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.


  • Content count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About jast112

  • Rank
  1. OpenGL

    Quote:Original post by BionicBytes It would seem that you do not have a valid glViewPort() values. ... which may imply an invalid context. Can you be sure that when you call this method you really do have a valid gl context? 1st Thanks for the replay. So how to check that its valid or not?
  2. OpenGL

    Omg tnx ill see and give it a try. Okay tested it and im getting Index was outside the bounds of the array Exeption on line System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(video_width, video_height, stride, pixelFormat, (IntPtr)buffer[0]); //made some changes here I looked thoruh with steps and video_width = video[2]; video_height = video[3]; size = 3 * video_width * video_height; // both video width and height are 0 why is that ... [Edited by - jast112 on April 22, 2008 9:51:34 AM]
  3. OpenGL

    Quote:Original post by LordOrion Hi, I'm not an expert of C# and how it is interfaced with OpenGL, so I cannot help you with the context... but seeing your code I've noticed that you are trying to read pixels from the Back Buffer: GL.glReadBuffer(GL.GL_BACK); Try read the front Buffer instead. Back buffer is often cleared immediately after the swap or immediately before begin a new frame so you cannot rely on its content. I hope this can help Thanks for your help but GL_FRONT Same Black Screen. But im buidling it in C# but C++ ways help allsow.
  4. Hey. I have injected dll to 3rd party opengl app. And now i need to get context of the app window.How can i get the context ?? Main goal is to take the screenshot. Im trying to take like fraps does in C#. This code i used to get but some how the screenshot is black. This is the only opengl function in dll. [CODE] Bitmap b = new Bitmap(s.Width, s.Height, PixelFormat.Format32bppRgb); BitmapData bd = b.LockBits(new Rectangle(0, 0, s.Width, s.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppRgb); GL.glReadBuffer(GL.GL_BACK); GL.glReadPixels(0, 0, s.Width,s.Height, GL.GL_RGB, GL.GL_UNSIGNED_BYTE,bd.Scan0); //b.RotateFlip(); b.Save(@"D:\screen67023.Jpeg", ImageFormat.Jpeg); b.UnlockBits(bd); [/CODE] What Am i missing? Any help is good. Regards, KJ.
  5. OpenGL

    Why are my screenshots black am i missing something???
  6. OpenGL

    Thanks Gage64 Your very helpful.
  7. OpenGL

    Thanks for your quick answers. But can u point me a direction where can i see informtion about C# opengl. Opengl im pretty dum :D
  8. Hey all. Anyone can tell me why are my screenshots black???? plz help ty Im using CsGl Here is the code. [CODE] Size s = Size; Bitmap b = new Bitmap(s.Width, s.Height, PixelFormat.Format32bppArgb); BitmapData bd = b.LockBits(new Rectangle(0, 0, s.Width, s.Height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb); GL.glReadPixels(0, 0, 1600, 1200, GL.GL_BGRA_EXT, GL.GL_UNSIGNED_BYTE, bd.Scan0); b.UnlockBits(bd); //b.RotateFlip(); b.Save(@"D:\screen.bmp", ImageFormat.Bmp); [/CODE] Regards, fadah. [Edited by - jast112 on April 16, 2008 11:40:33 AM]
  9. OpenGL

    so u should take the screenshots with opengl or what?
  10. Hello. I have problem when my game is in opengl mode it takes black screenshots what should be the problem? Here is the screenshot code. [CODE] PresentParameters PresentParams = new PresentParameters(); PresentParams.Windowed = true; PresentParams.SwapEffect = Microsoft.DirectX.Direct3D.SwapEffect.Discard; DXDevice = new Microsoft.DirectX.Direct3D.Device(0,DeviceType.Hardware, this,CreateFlags.SoftwareVertexProcessing, PresentParams); Surface buff = DXDevice.CreateOffscreenPlainSurface(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, Format.A8R8G8B8, Pool.SystemMemory); DXDevice.GetFrontBufferData(0, buff); SurfaceLoader.Save(@"D:\test.bmp", ImageFileFormat.Bmp, buff); [/CODE]
  11. Hello again. I was finding out that the best way to do a screenshot on vista is to hook the dll file with a 3rd party app. So my question is How do u hook a win api screenshot code to a 3rd party app? All suggestion, links, source codes are welcome. Regards, fadah
  12. Okay. Problem was vistas window manager.I stoped it and now im just getting black screenshot with shift - printscreen. Anyone could help me out?
  13. shift printscreen takes the screenshot of a games background what is in loading mode :D.
  14. Quote:Original post by TheTroll This is my suggestion; *** Source Snippet Removed *** Hope that helps you out. theTroll Whit Your Code same result only form desktop but still the counter strike box in top left. Im using GDI32 and user32 Apis. Its like when the shot is taken the app it makes the alt tab effect :) I see same restult for a sec when i press alt tab. I really cant figure it out.Maby someone has a working screenshot code for vista in C#.
  15. Hello ALL. Im trying to take Screenshot of an opengl game on vista but i get black screen. Here is what it makes i added timer and GDI GetForgroundWindow(); to make handle, and the picture ends up with http://img267.imageshack.us/my.php?image=temp2323no7.gif Look at the uper left corner where the game window goes It should be Fullscreen on pic but its not.When the image is taken my game window is fullscreen all the time but on picture like this.What would be the reason? When i set my game window to d3d it works create no problems... So the problem is with opengl ( my os is vista premium ); Problem is only with vista on xp works fine with opengl mode... What should i do My vista is running directX 10 Plz help. Sry about my english. Thank you!