Questions tagged [game-engine]
The (BGE) Blender Game Engine (discontinued, blender 2.41 - 2.79) allows you to create interactive 3D applications, game prototypes and simulations.
2,132
questions
66
votes
2
answers
25k
views
How do blender units and meters, feet, or yards correlate?
If I'm using blender game engine, how do blender units work in relation to gravity, acceleration, or weight? Is there a rough physical world equivalent?
40
votes
5
answers
50k
views
What will happen with Blender 2.8 game engine?
Blender has just purged the entire game engine from 2.8. There is no "Game Engine" mode anymore and there isn't even a logic editor. I tried installing a GitHub Blender release with the game engine ...
24
votes
1
answer
2k
views
What's Wrong with Quaternion Rotation in the Game Engine?
Steps:
I created two identical objects, and animated them to rotate 360 degrees.
I used euler for the first object and quaternion for the second.
In the Viewport they rotate the same, but in the Game ...
19
votes
3
answers
15k
views
How can I generate camera shake?
I would like to generate camera shake in either a render or in BGE. How can I accomplish this?
19
votes
1
answer
2k
views
How can I make my gear simulation in the BGE work?
I have the movement and rotation restrained properly, but the simulation is not behaving like it should. both objects are rigid body objects.
How can I make my gear simulation work?
17
votes
0
answers
2k
views
Per-Vertex lighting in GLSL?
How can I achieve per-vertex lighting (like in single/multi-texture shading) in GLSL with all of the other GLSL features (like buffer shadows, texture layers, etc.)? Bonus points if it can be done in ...
16
votes
4
answers
3k
views
How do you detect collisions with fast objects like bullets?
I am currently trying to make a tank to work in the game engine. I have the body roughly done and am trying to get the gun to work. Just making the barrel create a shell at a high velocity doesn't ...
16
votes
3
answers
8k
views
How to simulate magnetism In Blender?
Is there a way to create magnetism in Blender? Using the physics engine or the game engine, I want to create BuckyBalls (the magnetic toys) within Blender.
15
votes
1
answer
2k
views
How could I place objects (buildings) on a flat surface in the BGE?
I'm working on an RTS in BGE, and I am not sure how I could make it so you can place buildings on flat surfaces (or unless there is an easier way). I would love to know how to place buildings when you ...
15
votes
1
answer
20k
views
How to render an environment to a Cube Map in Cycles
Usually, when I create environment maps I do it in Cycles. I render out a single equirectangular image, and it's easy.
But recently I find myself creating content that needs to work in Blend4Web, ...
15
votes
4
answers
14k
views
How to convert Quaternions keyframes to Euler ones in several Actions?
I created a character for a game. It has IK legs. I animated its foot and didn't realize that they were Quaterinon. I made lot of actions with it.
Now... as I will make more actions with this ...
15
votes
2
answers
2k
views
How can I make a fluid simulation in game engine
Is there a way to simulate a fluid in the game engine? It doesn't have to be 100% realistic (but not a cycling 2D animation). It just needs to be recognizable as water.
Optimally, there should be a ...
15
votes
4
answers
1k
views
Text objects look slightly differently in viewport and game engine
I have text objects in my scene that I'd like to use in the HUD for a game. When they exist as text objects, I get a different result in a viewport and in game engine once I start playing the game.
I ...
14
votes
1
answer
2k
views
Applying Dupli-Objects
Is it possible to bake dupliverts into one mesh for the BGE? (I have a large ground landscape that I use as the parent to duplicate trees, and the BGE doesn't support most modifiers.)
13
votes
2
answers
12k
views
Controlling BGE properties with python script
I would like to know how to change the values of properties added using the "AddGameProperty" option in the game logic UI using python code? I want to write code that changes the 'Property' value in ...
12
votes
2
answers
2k
views
Making weather effects in the BGE
This type of snowfall looks nice:
If that example was made in Blender Internal or Cycles, I'd say particles were used - but particles clearly don't work in the BGE. How can a weather effect such as ...
12
votes
1
answer
26k
views
How to set render engine in blender?
I'm new to blender. How do you change the render engine?
According to this video, the button should be along the top. I've searched google, and the blender documentation with no luck.
https://www....
12
votes
3
answers
5k
views
Controlling armature through python
I need to control an armature using Python so that I can animate a biped model using data from a text file. I've been using this tutorial and some other sources to try and do so, but I can never see ...
12
votes
1
answer
1k
views
How can I get a bullet-time effect (slow motion) in the BGE?
I'd like to transition from normal speed to slow-motion on certain events, such as a keypress.
Is it possible to animate time in the game engine?
If so, how?
12
votes
2
answers
3k
views
How to run scripts in the background of the game engine without freezing or opening new Blender instances on Windows?
The Blender game engine does not move into the next frame if all the active scripts have not yet finished.
Say we have an HTTP script in the game. The script retrieves data from a server. I presume ...
12
votes
2
answers
1k
views
BGE. Is it possible to create transparent plane with blur filter?
17 09 2015
here is blend to test: https://dl.dropboxusercontent.com/s/cwpyem6zve6r2u4/blur5.blend
I'm still trying to figure out how to add blur filter to plane to make under plane objects all ...
11
votes
1
answer
3k
views
Bullet physics compound shape
I'm trying to to create a compound shape pretty much in the same way I did in my C++ code.
Create three shapes (two btCylinderShape, and one ...
11
votes
2
answers
1k
views
Game Engine does not conserve momentum
I am trying to setup some physical simulation in the BGE where it would be best if the the total energy of the system is conserved. However, if looks like I can't get the physics engine to keep the ...
11
votes
1
answer
594
views
Save screenshot (bge) without writing to disk
This is a little odd but I need to save a screen-shot as an array (numpy array for eg) without writing to disk. The idea here is to create and then call the array once per frame in an external script ...
10
votes
3
answers
10k
views
Can I turn a procedural displacement into geometry?
I was following this tutorial to create procedural rocks: https://www.youtube.com/watch?v=UFsVzDXYOKw
It gives some really nice results (that I admittedly don't fully understand), the only problem is ...
10
votes
4
answers
9k
views
Can python be used to edit a Text Object?
That is, can python code replace, for example, a single letter in a Text Object or insert a letter or string into a Text Object.
Note that I'm not talking about replacing a Text Object with some ...
10
votes
1
answer
1k
views
Can modifiers be called in the Game Engine?
Can modifiers be called in the Blender Game engine and called using actuators?
For example, could the explode modifier be called when you jump on a box?
If so, are there some modifiers that work ...
10
votes
2
answers
950
views
Make path move like snake in snake game
In my game I have a Nurbs curve in the XY plane. I have a rigged car, that has a follow path constraint, so that it follows this curve.
I would like to make the ...
9
votes
2
answers
12k
views
Animating eye texture in a head mesh
I'm trying to animate a mesh with different eye textures but it's not working.
This is a texture made by me to animate but I still couldn't figure out how to do it. I've seen tutorials on the ...
9
votes
1
answer
7k
views
Is it possible to render outlines in BI/Cycles using this technique for the BGE?
I want to achieve this outline effect outside of the game engine for animations, without using freestyle. Is it possible to make this effect work in Cycles or BI?
9
votes
1
answer
1k
views
Is it possible to snap objects to faces in the Blender Game Engine?
I recently have been experimenting with X-27's excellent answer on how to place objects dynamically in the BGE. I have been trying to figure out how to do the same thing, only make it possible to snap ...
9
votes
2
answers
729
views
No Rasterizer module
I am trying to go trough a simple Blender tutorial in which I need to use module Rasterizer. Unfortunately my Blender has no such module. As far as I know Blender has its own Python so there should be ...
9
votes
2
answers
3k
views
Why texturing in game engine looks different than in render mode?
I am learning Blender, and at the moment I am trying to create very simple game. The point I am stuck at is texturing problem. I have created a simple maze and added two different materials for floors ...
9
votes
1
answer
17k
views
Texture appears in render but not in game engine
It renders like this, but when I play the game it has no texture. Why doesn't the texture show up in the game engine?
Here is the file:
http://filedropper.com/textured
9
votes
2
answers
3k
views
Is there a way to use a MIDI controller as a sensor in the Game Engine?
I'd like to use a MIDI enabled device, in this case a mixer with knobs and faders, as a controller for the game engine, to do a live projection and change some parameters in real time.
The only ...
9
votes
1
answer
8k
views
Get the rotation of an object in the game engine
How would I get an object's rotation and set that as another's velocity? Like if I had Object A, that has the rotation data, and Object ...
9
votes
2
answers
530
views
How to implement "air-strafing" in the BGE?
Introduction
What exactly is "air-strafing"?
Air strafing is a technique in which a player would sync strafe keys and mouse movements when in-air. (For example, if you press the right strafe key, ...
8
votes
3
answers
2k
views
Why can I see through a box in blender game engine? [duplicate]
I have a problem where I can see through a box in blender game, see picture. This effect changes so that the near side of the "chassis" of the truck is invisible when I rotate the model
What can I do ...
8
votes
1
answer
3k
views
Create custom physics for an object with python
Blender has physics options which we can enable for our objects - cloth , fluid etc. Is there a way I can add a custom physical behavior to my objects, where this behavior is modeled as a python ...
8
votes
1
answer
803
views
Making an Interface in blender game engine
I am learning how to make interfaces in the game engine, and I have set up 2 buttons: an exit button and a play button. When one of the buttons receives a left click, it either closes Blender or goes ...
8
votes
2
answers
12k
views
Change Text Color in Blender Game Engine?
I want to change the color of some text in my game. I've tried adding materials, but whenever I press P to play the game, the text stays the same white color. Any ideas?
8
votes
2
answers
6k
views
Why is my text pixelated?
Within my game I have some cubes with text which render fine. In addition to the cubes I want to display some static text, e.g. the current score. The score text has the camera as parent and a copy ...
8
votes
2
answers
4k
views
How to procedurally generate an infinite terrain using perlin noise
For a game I'm making in the blender game engine, I need to generate an infinite terrain - preferably in chunks and unloading when they get too far away.
Perlin noise would probably be a good way to ...
7
votes
3
answers
9k
views
How to change material's color in blender game engine?
I am making a new racing game in BGE. I want my game to have a feature to change car color in-game (car consists of multiple materials, but currently I want to change body material). How do I make ...
7
votes
3
answers
2k
views
Is there another way besides particles to make fire in the game engine?
I would like to make high pressure jets of flame for a character in the game engine.
Here is my question:
What would be/is the most time efficient manner to do this in since particles aren't ...
7
votes
2
answers
9k
views
How can I prevent a pause at the end of animation loop to have fluid motion.
At the end of my animation, the animation pauses a bit then loops again, how can I stop the slow pause, and let the loop work fluently?
7
votes
4
answers
14k
views
How to Set a Property Value in Blender Game Engine?
How would I set a property value with python in the Blender game engine?
7
votes
1
answer
444
views
Why does blender crash when my missile disapears in the BGE?
In the following scene, I have a camera parented to a missile. When the missile collides with any collision mesh, it disappears. The logic setup is pictured below.
However, when the missile ...
7
votes
2
answers
4k
views
Run a script only once in BGE
I have a script that I only need to run once. What I usually do for startup scripts is an Always > Tap Sensor. This python script is being activated by a message sensor with the tap setting enabled. ...
7
votes
2
answers
617
views
Put complex shape flat on the table
I have a complex (i.e. irregular, concave) shape obtained by photogrammetry. Now, I'd like to put it flat on a table. How to achieve this? (It ridiculously balances one point now. )
Is there a smart ...