Search found 85 matches

by RedHot
Tue Jul 23, 2013 9:20 pm
Forum: Support and Development
Topic: [Pixelshader] extern arrays
Replies: 4
Views: 1752

Re: [Pixelshader] extern arrays

Until OpenGL 4.3 the array size used to be fixed. Now we can use shader storage buffer objects which get rid of the problem in a way.
by RedHot
Sat Jul 20, 2013 5:10 pm
Forum: Support and Development
Topic: box2d + collision + object destruction + memory issues
Replies: 3
Views: 832

Re: box2d + collision + object destruction + memory issues

Before I can help could please explain why every frame your game consumes more memory?
by RedHot
Sat Jul 20, 2013 4:42 pm
Forum: Support and Development
Topic: Share a Shader!
Replies: 321
Views: 157029

Re: Share a Shader!

Too many lines of code for a quick debugging session ;)
by RedHot
Thu Jul 18, 2013 9:59 am
Forum: Support and Development
Topic: Create a message box without using libraries by others
Replies: 6
Views: 1856

Re: Create a message box without using libraries by others

With very little fiddling I have managed to allow printing letters one by one by a custom delta.

Lua is such a nice thing

Check it out :)
by RedHot
Wed Jul 17, 2013 6:46 am
Forum: Games and Creations
Topic: The Nuclear USSR [Version 7]
Replies: 75
Views: 8439

Re: The Nuclear USSR [Open Beta]

It's "On behalf" not "on behave" ;)
by RedHot
Tue Jul 16, 2013 9:16 am
Forum: Support and Development
Topic: Linking DLL modules
Replies: 5
Views: 2049

Re: Linking DLL modules

You just need to get straight what kind of linking you wish to use. If you get an error stating that a certain DLL was not found, just build everything as static.
by RedHot
Sun Jul 14, 2013 1:11 pm
Forum: Libraries and Tools
Topic: My 4KB Hypnotic Thing, wanna share yours ?
Replies: 41
Views: 8177

Re: My 4KB Hypnotic Thing, wanna share yours ?

Just change 16 to 16.0
by RedHot
Sat Jul 13, 2013 7:16 pm
Forum: Libraries and Tools
Topic: My 4KB Hypnotic Thing, wanna share yours ?
Replies: 41
Views: 8177

Re: My 4KB Hypnotic Thing, wanna share yours ?

I must have omitted the "extern S", my bad. When you are doing arythemtic operations in C or C++ if you'd divide int by a float (f.i) 4/2,5 , the int gets promoted by default to a float, so you'd get 4,0/2,5 . Same goes for shaders using Nvidia drivers. AMD is different. The shader won't compile if ...
by RedHot
Fri Jul 12, 2013 10:49 pm
Forum: Libraries and Tools
Topic: My 4KB Hypnotic Thing, wanna share yours ?
Replies: 41
Views: 8177

Re: My 4KB Hypnotic Thing, wanna share yours ?

Ref wrote:Can't come up with anything here.
Just spinning my wheels.
Your example won't work on AMD cards as AMD drivers are extremly picky when it comes to casting from int to float. I assume you are using an nvidia card and haven't experienced the problem.

FTFY.
by RedHot
Sat Jul 06, 2013 6:46 pm
Forum: Support and Development
Topic: [SOLVED] How to do this visual effect?
Replies: 16
Views: 4316

Re: [Question] How to do this visual effect?

Instead of preaching generic and useless info I will try to get to the core. Draw every frame to canvas, send canvas to a shader. Since Love2d doesn't provide a straight-forward access to Vertex Shader you can use the Fragment Shader called "Effect" in Love2d. In this very effect, use function calle...