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

javanerd

[java] Any experience with DirectX under MS Java?

3 posts in this topic

I''ve got one implementation of the engines in my GameFrame for Java library that uses DirectX 3.0 under Microsoft Java 3.x or higher. But I''ve ran into couple of problems with it. The first problem is that there seems to be no support for semitransparent DDSurfaces under that version of DirectDraw. This is quite stupid as it can be done under Java 1.1 and Java 2. Is this really the case or am I missing something? The second problem is that there seems to be no way to get hold of the raw DirectDrawSurface data. The bitmap effects (rotation, flip, color replacing etc.) I''ve implemented reload the used bitmap with pure Java code, process it and then save it to a temporary file that is then loaded by DirectX as a new DDSurface. Needles to say that is sssslllloooowwww process. Again am I missing something or is this just one more stupid truncation of the DirectDraw API when you use the Microsoft''s DirectX for Java thingie. If both cases are true, then I think I either will have to abandon DirectX at some point OR write C++ wrapper that uses DirectX 5.0/6.0/7.0 and that is then accessed from Java through JNI.
0

Share this post


Link to post
Share on other sites
mmhhh...
Well, you can go to the java.sun site, and there you''ll find Java3d api for Direct3D...
It should help you.
I don''t know if it allow access to other DirectX elements, but I know it include 3Dsound api.

Hope it helps.


-* Sounds, music and story makes the difference between good and great games *-
0

Share this post


Link to post
Share on other sites
Ummm... Sorry but that is of no help at all. I''m not trying to use any 3D stuff here.

I''m allready using the DirectDraw for 2D graphics in one of my engines, but these aforementioned points are like splinters under my fingernails. Every time I try to do something more involved than just load a bitmap and draw it on the screen I get set back by the non-complete Java to DirectX API mappings. I just wanted to know if anyone has found some kind of magical workaround to these limitations.

3D sound? Well that could be fun, but I''d satisfy in some sort of level and panning settings in Java 2''s audio clips. Or better yet, access to some low level mixing abilities where I could e.g. unpack MP3 stream and mix it to the sound effects stream. Propably I should be able to do this kind of stuff with Java Media API, but my experiences with that API otherwise aren''t that good. E.g. it has a huge latency (the time between the moment I tell a sound to play to the moment it actually can be heard).
0

Share this post


Link to post
Share on other sites
Ok, I understand the problem.
It''s pointers matter.
Although JAVA had pointers, they''re hidden.
Not sure you can use them with DirectX...

Something that I don''t understand, is why using JAVA with DirectX ?
C++ with DirectX will be fast but for WIN32 only, while JAVA with OpenGL is available for many platform, so it could be interesting.

If you don''t use OpenGL I think that id Java2d don''t use DX, you''ll have to write a wrapper, which will take much tims.

DDraw and DirectX is a low featured API, it''s not well implemented and had high end feature while forgeting sme basic ones...

If you want to switch to JAVA+OpenGL, tell me I''m interested in doing that.


-* Sounds, music and story makes the difference between good and great games *-
0

Share this post


Link to post
Share on other sites