Tag Info

Hot answers tagged

4

Because operations dealing with objects and their locations, such as collision detection and filtering nearby objects, are so heavily used in games, it is common practice to use one or more spatial data structures to describe your world. Some examples of these structures are grids, octrees, or the classic scene graph - a tree storing relative ...


3

If the final shader outputs the image to the framebuffer, have a look at the glReadPIxels function (This function is often used to create screenshots in games example 1 | example 2) If you wish to get the data from a texture (in case the texture is larger than the screen resolution, this might be a better solution), have a look at the glGetTexImage ...


3

Using your own analogy: Why did people make COBOL? Why did people make C++ if C was around? Why did they make PHP? Why did they make Python? Ignoring the fact that some of those implementations are written in C themselves, this is the same thing. Some people want to make their own languages for new purposes and to do that you need to start with the ...


2

A "total conversion" mod usually means that you are not just going to replace assets, but that you are going to change game mechanics and actor behaviors. This usually requires programming skills. What kind of skills depends on the engine. Some engines have amazingly powerful map editors which can really do a lot (Defense of the Ancients was originally a ...


2

I can speak only for my self, but I implement my engine for sake of implementing it. It is fun for me. Plus the time spent learning an engine is roughly equal to implementing it yourself. It also gives you absolute control over the engine and you can specialize it for your task more easily (you would have to read pretty much everything about an engine, read ...


1

Don't directly translate the object in response to key presses. Instead, increase the speed in response to key presses, and then translate the object's position using that speed. That way the speed changes every frame. pseudocode: float speed = 0f; float maxSpeed = 20f; float accel = .2f; void Update() { if (Input.GetKey(KeyCode.I)) { speed += accel; ...


1

cf. What is the point in designing your own car (e.g. to take part in an F1 race) if there are existing car manufacturers who will sell you cars that already work? I looked over some other answers here and in the proposed dupe questions and one point not really being championed is that creating your own system affords you more technical (and, as a ...


1

To do something basic like a Hello World program on a console like the Nintendo 64 you wouldn't need to use the GPU to do the rendering, you can just write your message directly to the framebuffer. The framebuffer is were the rendered image is stored before it's scanned out to the TV. The RCP Documentation linked to at the bottom of this page does a very ...


1

Sometimes for compactness a self-made engine ( Despite thousands of lines of code ) can be more compact than a pre-made engine due to the fact that unused features can be removed. Also keep in mind that if you write your own engine from scratch, you'll know all the ins and outs of it. If you ever want to add a feature or change something, you can! Some ...



Only top voted, non community-wiki answers of a minimum length are eligible