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

Stiby

[java] Back Buffer Problems in Java 1.1

4 posts in this topic

Hi all, First a bit about me, I am a professional multimedia developer who programs in C++ and ASM and currently making the move to Java so my first steps is to get to grips with graphics in Java so I have set myself two tasks one of which is to recreate my simple 3D FlightSim demo over to java in the next week my second challenge is to recreate DOOM or Part of in Java using my ASM/C++ experience to translate and reshape the DOOM engine to a totally OO engine over the next month and a half whilst on training so I will be needing your guys help to achive this goal. My first problem is back buffering in a "Frame" as I find that the code that works for an Applet "createImage( int, int )" dosn''t work in a Buffer it just returns a NULL pointer. What I am ultimatly after is a buffer of some kind that I can adjust and blit similar to DirectX buffers were I can get the surface pointer and render to directly and no ned to re-create the surface to blit the adjustments("g.drawImage(buffer, 0, 0)" or similar). Also working double buffering in a Frame. If you can help it would be most apriciated. Phill Phillip Stiby BSc(HONS) I program therefore cant spell!
0

Share this post


Link to post
Share on other sites
well if i were you i''d use the PixelGrabber to get @ my image source, parse to int[]. Then i could just assume a large array as a buffer and use some of those tryed & tested 86 Asm method logic to wing it through.
createImage won''t work unless you set the content up.
0

Share this post


Link to post
Share on other sites
Rather than use AWT you may want to look into Java 2D which provides better mechanisms for buffering. In the next version Java 2D will even be accelerated on the Windows platform (by hooking into DirectX).

Here is the link to the Java 2D FAQ on Sun''s Javasoft site.

http://www.javasoft.com/products/java-media/2D/forDevelopers/java2dfaq.html

The downside is that your applet will not function in most browsers with out the user having first installed the Java 2 Browser plug-in. If you are planning on eventually building your graphics programs as Java applications this won''t be a problem (as you can distribute the Java Runtime 2.0 with your app). If your goal is to distribute your graphics programs via browser then you will be stuck with AWT.
0

Share this post


Link to post
Share on other sites
Stiby -

You will want to look at the Toolkit class in your Java documentation. In your frame you can do something like this:


Frame f = new Frame();
Toolkit tk = f.getToolkit();
tk.createImage(...);


There are lots of methods to return an image in there... just choose the appropriate one...

-Nate
0

Share this post


Link to post
Share on other sites
Don''t ask me why but you have to do Component.addNotify() before Component.createImage() will work.
0

Share this post


Link to post
Share on other sites