Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
NorthByNorthwest
Oct 9, 2012
Forgot to initialize some data on the GPU.

Adbot
ADBOT LOVES YOU

NorthByNorthwest
Oct 9, 2012

Zereth posted:

That's a cool effect, can you do it reliably and safely?

Since it's just reading uninitialized data, the patterns are highly variable, and might not come out the way you'd like, If you need quick and dirty noise, it might work. I'd recommend sampling from a noisy texture, you'll have finer control over the base color and the style of glitches.

If you're going for fake glitches, you'll probably get more fun by 'forgetting' to clear the buffer in between draws.

A few other experiments:
Normalizing an uninitialized vec3:

Multiplying the above by a sinusoidal time:


edit: Passing uninitialized data per vertex:

NorthByNorthwest fucked around with this message at 05:06 on Dec 9, 2014

NorthByNorthwest
Oct 9, 2012
Vertex Skinning is easy you guys, you just --

NorthByNorthwest
Oct 9, 2012

This is fantastic.

Bad index buffer? Or maybe vertex?

  • Locked thread