Search found 35 matches

by mode7
Thu Sep 27, 2012 2:35 pm
Forum: Support and Development
Topic: Question about coloring images
Replies: 4
Views: 1932

Question about coloring images

Hey everybody, I have a question about coloring my drawings: Im trying to add a fog effect to my 3d camera. As the distance gets bigger, the fog color is supposed to gradually turn completely opaque. I tried using love.graphics.setColor but it is only possible to 'tint' the drawable in the color. Se...
by mode7
Tue Sep 25, 2012 8:37 pm
Forum: Support and Development
Topic: Reading current transformation stack
Replies: 2
Views: 1328

Re: Reading current transformation stack

Thanks for the answer. Well I added the missing functionality,maybe someone will find it useful: local _scaleX, _scaleY, _dx, _dy, _angle = 1,1,0,0,0 local stack = {} local old_scale = love.graphics.scale local old_translate = love.graphics.translate local old_rotate = love.graphics.rotate local old...
by mode7
Tue Sep 25, 2012 2:11 pm
Forum: Support and Development
Topic: Reading current transformation stack
Replies: 2
Views: 1328

Reading current transformation stack

I'm trying to implement a simple mip-mapping support for my engine. Though I rely heavily on graphic.push() and graphics.pop() function to do my camera and object drawing it is hard for me to determine which is the current scale. I was searching the wiki but didn't find any function about how to rea...
by mode7
Sun Sep 02, 2012 10:49 am
Forum: Support and Development
Topic: Get the original filename of a userdata object? Possible?
Replies: 8
Views: 1926

Re: Get the original filename of a userdata object? Possible

Thanks for ther quick answer. I already thought a wrapper would be needed.
Thanks for the code example. I'm pretty new to lua though and I dont know exactly what you are trying to do here. could you give me a hint ;)
by mode7
Sun Sep 02, 2012 8:52 am
Forum: Support and Development
Topic: Get the original filename of a userdata object? Possible?
Replies: 8
Views: 1926

Get the original filename of a userdata object? Possible?

Hello everyone, this is my first post even though i've been lurking for a while now. I have the following problem: I'm working on an xml encoder/ decoder that easily allows me to read and write my tables (which contain everything from custom classes to userdata) to and from xml. Everything works fin...