All Questions
Tagged with game-engine shaders
35
questions
0
votes
1
answer
327
views
Can I export a Vector3 / Vector4 in a uv texcoord?
I was wondering if / how this is possible in Blender.
Shaders in game engines like unity and unreal read texcoords (aka UVs) as Vector4 properties. Blender seems to deal with these mostly as Vector2.. ...
1
vote
1
answer
336
views
How to change strength of studio light via python? (UPBGE)
Hello I would like to have the studio light strength change from 1 to 0 when entering a new scene. I assume that this is achievable via python, but what would the required script be? Thanks.
0
votes
1
answer
194
views
How to increase emission strength when a property value is reached with logic bricks? (UPBGE)
I have a game where I collect coins, which are counted using a game integer property. Is there a way of increasing the emission of a character upon reaching 10 coins? I tried keyframing emission as an ...
2
votes
1
answer
179
views
Portal animation plays in viewport, but not in game (UPBGE)
I created an animated portal which waves around when played, but for some reason it is completely stationary during gameplay. I linked the object and animation via logic bricks but it still does not ...
0
votes
1
answer
101
views
how can I share variables between glsl and python in the bge?
I am currently writing a glsl shader in the bge,
My question is, if I have glsl embedded into my python script, how can I if possible share memory/variables between my glsl and my python so the below ...
1
vote
1
answer
446
views
How do you make flat shading for games?
Just wanted advice on how to make flat shaders/renders like this for game characters. Especially transparent ones like the frog's raincoat and the glass cover of the terrarium. Any help would be ...
1
vote
1
answer
415
views
smoothing issue with tris
sometimes when i work with tris or i change the flow of the topology on the z axe i encounter some shading issues with smooth shading, if i decrease the normal shading it gets fixed (10 degrees) but i ...
0
votes
0
answers
70
views
Character Model Hair
I am working on a mid-poly character for a third person shooter in Unreal Engine 4, however I'm running into difficulty with her hair. So far I've been making basic hair cards, mainly just repeating ...
1
vote
0
answers
194
views
The GLSL Doesn't Work
There was a question about someone not being able to use GLSL shading and there was an answer which almost worked but half of the game was all black with a huge shadow. Please tell me a way to fix ...
0
votes
1
answer
127
views
Game Engine object getting darker as it scales
Working in game engine, objects are fine in 3d view, but once I start the game engine, object size has an inverse relationship to its material brightness. It's almost like there's a set amount of ...
0
votes
1
answer
86
views
How to make this shader code work propertly?
This is dont-know-where-I-downloaded blend file with a Box Blur Filter 2D. It is maybe the only blur filter I found on Internet (there's another but too much simpler). It makes a very good blur effect,...
2
votes
1
answer
272
views
How can I avoid seeing the inside faces of a semitransparent object in the game engine?
I want to know if it's possible to make an object transparent just based on how the object is rendered when it's not transparent. I want this to avoid seeing the faces inside or on the other side of ...
1
vote
2
answers
4k
views
How can I show the GLSL code generate by node?
Sorry for my english.
how can i show the code generate by the node and can i write my own node Element?
Can i add a uniform float var? in order to comunicate with the fragment shaders?
2
votes
1
answer
1k
views
Is it possible to set the vertex shader without overriding the fragment shader?
I'd like to make vertices of an object randomly move around a little. To do this, I created a vertex shader.
I assigned the vertex shader to the object's material with ...
2
votes
1
answer
793
views
Materials modified with GLSL in bge, return to original material (using only python)
I'm a noob and probably this is a completely silly question... Started using BGE two days ago...
I'm using GLSL to visualize a distance field while running in standalone player. I'm doing it using ...