Search found 54 matches

by dizzykiwi3
Sat Mar 14, 2015 5:34 am
Forum: General
Topic: Help with a blur filter and GLSL?
Replies: 4
Views: 1057

Help with a blur filter and GLSL?

I'm not at all versed in OpenGL, but I really love the concept of blur and focus, and would love to be able to use it in my game. As I understand it, for a standard box blur (or should I be trying for gaussian instead?) I need to make the value the average of all the neighboring values, weighted for...
by dizzykiwi3
Sun Mar 01, 2015 7:21 am
Forum: Libraries and Tools
Topic: [library] shine - post processing effects for everyone
Replies: 26
Views: 11524

Re: [library] shine - post processing effects for everyone

This is AMAZING.
Do you know if it works with cameras and scissors? I seem to be having troubles with it, and I'm not sure if its because of my misuse of it or incompatibility with those.
by dizzykiwi3
Sat Feb 07, 2015 7:57 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 2462

Re: A very quick question about Lua and variable reassignmen

That still doesn't seem to be working... I'm testing it in the local console of Zerobrane Studio To be specific I'm trying to do a function like this function returntobase(val,i,base) if val > base then if val - i < base then val = base else val = val - i end elseif val < base then if val + i > base...
by dizzykiwi3
Sat Feb 07, 2015 6:30 am
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 2462

Re: A very quick question about Lua and variable reassignmen

So... what should I do to accomplish what I need?
by dizzykiwi3
Fri Feb 06, 2015 6:54 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 2462

Re: A very quick question about Lua and variable reassignmen

The code for the table values though doesn't seem to be working for me

Code: Select all

variable1 = {["a"] = 12, ["b"] = 5}
function setit(x)
x = 10
end

setit(variable1.a) --variable1.a is now 10
when I copy and paste that into my local console, variable1.a still returns 12
by dizzykiwi3
Fri Feb 06, 2015 6:49 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 2462

Re: A very quick question about Lua and variable reassignmen

That was outrageously clear and concise Hugo, thanks a bunch!
by dizzykiwi3
Fri Feb 06, 2015 6:47 pm
Forum: General
Topic: Overriding setPitch
Replies: 3
Views: 705

Re: Overriding setPitch

I was thinking about doing that, it'd just save me some time if I could override it. I'm also a bit unfamiliar with using the color and self parameters in lua functions so I wanted to try it out is this syntax close to correct? It isn't working but I think it's close? origsetPitch = setPitch functio...
by dizzykiwi3
Fri Feb 06, 2015 6:37 pm
Forum: General
Topic: A very quick question about Lua and variable reassignment
Replies: 12
Views: 2462

A very quick question about Lua and variable reassignment

This may be a very simple question, but I'm just curious

say I have a function setit

Code: Select all

function setit(x)
x = 5 end
if I define a variable bob to be 10 and pass it through setit, bob will still be equal to 10. Why is this the case?
by dizzykiwi3
Fri Feb 06, 2015 5:38 pm
Forum: General
Topic: Overriding setPitch
Replies: 3
Views: 705

Overriding setPitch

This probably has a simple solution but I'm a bit unfamiliar with Lua How would I go about overriding the setPitch function so that I can have it link to a speed value so that it ramps down during slow-motion moments The way I'm currently trying to do it is rampspeed = .1 origsetPitch = Source:setPi...
by dizzykiwi3
Sun Jan 11, 2015 5:01 pm
Forum: General
Topic: Rumble not working?
Replies: 4
Views: 1068

Re: Rumble not working?

IT'S ALIIIIIIIIIVVVVVVEEEEEE!!!!!!
for the 360 controller at least

Thanks so much!! I was replaying bioshock and was just blown away by how atmospheric as simple an input as rumble was.