Shaderoth

u/Shaderoth


r/tipofmytongue•

I would have seen this in 2001 or 2002, it felt more like a movie than a TV show but I saw it on Australian Foxtel (don't recall what channel). I only saw a few scenes in the middle of the film but this is what I remember:

A guy murders someone with an ice-pick, grabbed from an actual ice bucket so not planned in advance. I think it's in a hotel room. After the killing he chops the body up (offscreen, I believe) and remarks to the camera "who'd have thought he could have so much blood in him?".

We then see him drive to the shore of a lake, it is snowing, and he takes two duffle bags containing the corpse out of the car's boot and throws them into the lake.

The muderer was white, dark-hair

111

r/tipofmytongue•

I only saw this a couple of years ago, I think, but I cannot remember where. Here's what I remember: It was a short clip that looked like it was taken from a longer movie. My best guess at the time period is 70s or 80s, based on the look of the animation. A character who looked like a solder in some science-fiction army (had a futuristic helmet on) is riding around in either a wheelchair or a helicopter or possibly both. Definitely in a machine of some kind.

He flies around a bit, possibly in pursuit of another character and maybe fires missiles at them?

The specifics of the action didn't leave as much of an impression as the animation, which is unlike anything I've ever seen before. It's

27

r/XWingTMG•

I've found a bug in the official squad builder app that renders your asmodee/FFG account incapable of making or saving squads ever again. The issue persists across the web app, android and IOS versions, and I've so far managed to ruin two accounts with it. The way I found to trigger it is to create this list:

The Doom List

(60) Bossk [YV-666 Light Freighter]

(0) Jamming Beam

(6) Jabba the Hutt

(2) BT-1

(2) False Transponder Codes

(2) Tactical Scrambler

(1) Hound's Tooth

Points: 73

​

(68) Fenn Rau [Fang Fighter]

(3) Fearless

Points: 71

​

(41) Zealous Recruit [Fang Fighter]

Points: 41

​

(6) Nashtah Pup [Z-95-AF4 Headhunter]

(3) Feedba

405

r/pocketoperators•

Pretty much what the topic says. While messing with the manual note selection (hold lit step, turn knob A) I've noticed that you are restricted to the key of the current pattern but get one bonus note that isn't actually in that key:

C maj - A#

B maj - A

A maj - G

It just seems to be the major scales, actually, C minor doesn't have an extra note. Does anybody know why this is?

23

r/gamemaker•

I'm working on a game that uses the sprite stacking technique for both sprites and lighting, it works kind of like this:

  1. Turn on gpu depth testing.
  2. Draw all the non-light sprite stacks, passing the depth of each slice into the shader as a uniform and using a vertex shader to set the z coordinates of each vertex to this depth.
  3. Copy the fully rendered scene to a backup surface for later reference.
  4. Turn on subtractive blending and call gpu_set_zfunc(cmpfunc_equal)
  5. Draw all the lights over the scene (lights are stacks of sprites that form spheres or cones that approximate the spread of a light source). Because we've set the z
14

r/gamemaker•

SOLUTION: The topic title is misleading, the problem is not uniforms at all. If you're getting weird issues trying to encode floats as colour values, this might help.

The issue seems to be trying to encode floats that have more precision bits than you're actually encoding. The solution is to just replace:

float value = number * factor;

with:

float value = floor(number * factor);

This fixes it.

Original Post:

I'm attempting to get a shader to take a uniform float and encode it as colour data to be drawn to a surface that will then be used as a depth buffer for further drawing. I'm using GMS2.

My project is a raycasting renderer, and I'm already encoding thousands of values as

62


r/gamemaker•

See title. I'm trying to create a lookup texture for a shader, and the sanest way to do it that I can see is:

  1. Fill a buffer with your data (32-bit floats in my case, which map nicely to the 4 color channels).

  2. Move the buffer data to a surface.

  3. Get the texture handle for the surface and pass to shader as a uniform.

The issue I'm having is that the data in the buffer doesn't make it to the surface. The surface always draws as transparent black (verified with debugger).

Here is the code I'm using to fill the buffer:

//buffer debuggery
var moop = buffer_create(4*4*screenWidth,buffer_fast,1)
buffer_seek(moop,buffer_seek_start,0);

repeat (4*4*screenWidth)
{
22

r/gamemaker•

**NOW RESOLVED! Details: There's a cap on how big an array you can pass into a shader, and its a lot less than 224 elements regardless of what the compiler output says (I cant get above ~100). Breaching this limit makes shader compilation take an extremely long time, and also seems to be bypassed by commenting out random lines of code. I dunno.

If you are having this problem, here is the solution: Do not pass data into a shader as an array unless it's tiny. For large datasets you should instead stuff them into a texture and then pass in the texture. This is more complicated, find a tutorial or something.

/////////////////////////////////////////////////////////// My shader is not compili

14

r/gamemaker•

I'm trying to make my game crash more frequently.

One of the things I like to do to catch stupid mistakes is initialize variables in such a way that if they are used without being modified they will cause the game to crash.

For example: any variable that's going to be used as an array index I initialize to -1, because -1 is never a valid array index and will crash the game immediately with a distinctive error message. I tried to use the same trick for a script which returned an instance id - which is how I learned that the self keyword actually has a constant value of -1. Oops.

Enter undefined, a special value which is guaranteed to never (as far as I can tell) resolve to a valid in

11

r/gamemaker•

I'm working on an RTS game and realised that an extremely common pattern I'm going to be using is: With each member in this list of units, do something. As my units are stored in ds_lists (representing control groups) it's pretty easy to iterate over them but I'll end up typing the exact same loop hundreds of times with only the few lines of instructions at the center being different. Worse, my code will become a pain to read as loop boilerplate drowns out my code's intent. Fortunately, there is a simple solution:

///iterate(unit_list,"script");
var list = argument0;
var script = asset_get_index(argument1);

var t = ds_list_size(list);
var i = 0;

while (i < t
46

r/gamemaker•

I recently started looking into UDP networking in GameMaker, and had real difficulty finding a "this is how you send and receive packets"-level guide. So I wrote one. There's a bit more explanation in the guide itself, but if you're only interested in the minimum example code I've reproduced it below:

This code assumes you have one object representing the server and another representing the client. These can be in the same game instance, in two instances on one machine, or on two different machines - it makes no difference. All the code does is send and receive mouse co-ordinates, but can be easily extended to send

2312

You've reached the end of this feed.