• 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

Library Hesitation (OpenGL)

3 posts in this topic

Seems like I'm posting a topic here every week so if you're on this forum often, you've probably run into me at some point.


Anyways, I'm making a 2D networked game in Java as a project for learning the language. So far I have only used libraries that were immediately available to me. My thought process behind this was I wanted to learn Java at the most basic level before incorporating libraries to "do things for me" or simplify tasks.


I'm not sure at what point I should change this mindset. Currently my game allows for multiple people to join in, run around, and collide with trees (just got my collision boxes working yesterday, super pumped!). I don't really know what direction the game will go in, I'm just trying to set up a lot of back-end stuff... dynamic systems for which I can start layering on content.


I started thinking about lighting. Now, my experience with lighting has been .. limited. I created a 2D tile-based game in a proprietary programming language designed to create interfaces for medical software. My lighting calculation was incredibly crude and basically involved "Loop through every single tile. For each tile, calculate all tiles between this tile and the player. If there is an object on any tile in this set of tiles, then the player cannot see this tile". It created a very blocky LOS lighting calculation. Some optimizations were made to make sure I wasn't checking tiles twice but overall it took about .5 seconds to move from one tile to the next.


Now, with my current game, it's not really tile-based anymore. I mean.. there are TILES (which I really just use as squares of floor), but all objects, including players, can be moved on a per-pixel basis. Which really means I need pixel-based lighting. I also wouldn't mind incorporating some fancier shading effects, although I really don't know much about them.


This is really the FIRST time I've ever used a real language and created GRAPHICS. I used C++ for a while and did all console based applications. I started to learn DirectX stuff but got caught up with Windows programming. I don't really know .. how a lot of this stuff works. I understand DirectX and OpenGL are designed to help software communicate effectively with hardware... that's about where my understanding ends.


So.. OpenGL. I see lots of people recommending LWGL (I think it's called), assuming it got popular after Minecraft. Do I need to use that? Can I just.. use OpenGL directly? OpenGL is *already* a utility to help draw graphics and if this is my first time delving into something like that.. I would kinda rather not use a library to "do everything for me".


So .. questions:

1) Is it possible to learn OpenGL without incorporating another library to help make use of it? Does it make sense to do that?

2) I'm enjoying Java2D so far, but I don't wanna go so far into it that when I finally DO decide to do some fancier stuff, I need to re-write my graphics 'engine' (I can call my draw screen class a graphics engine, right? :-P )

3) More of a general question.. what does it mean to LEARN OpenGL (or DirectX for that matter)? Is OpenGL just a set of libraries in itself? Multiple languages can USE OpenGL.. how is that possible if they all have their own syntax? I am woefully in the dark about how this works.


Thanks for reading,





Edit: Tuns out most of this stuff is discover-able with Google if you use the right terms. Seems like any language implementing OpenGL requires some sort of wrapper to utilize the functions. A more "standard" one for Java is JOGL. I guess the LWJGL is just another?

Edited by Chumble

Share this post

Link to post
Share on other sites

Yes, you can use JOGL and do the OpenGL stuff yourself.  The LWJGL is a low-level game library, but it includes more than just OpenGL, with code included for a framework, input, sound, and all that other stuff you don't realize you need when you first start making a game.


As for what it means to "learn" opengl, I'm still trying to figure that out myself.  :D


Share this post

Link to post
Share on other sites

This has cleared up quite a bit for me :) Thanks guys. I think I'm gonna read through http://openglbook.com/ to get a better understanding of OpenGL, then later down the line when I decide to implement it, I'll see what I wanna do for a "binding". 



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