Page 2 of 2

Re: Drawing primitives like circles and rectangles

Posted: Mon Mar 02, 2009 8:44 am
by Xcmd
Just to help with trouble-shooting, I'm running Ubuntu 8.10 32-bit with Love 0.5.0 and whatever version of Lua comes with it. Worked fine for me.

Code: Select all

function draw()
	love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
end
That's all I had in my game file. I made a new one expressly for the purposes of testing it.

Re: Drawing primitives like circles and rectangles

Posted: Mon Mar 02, 2009 12:03 pm
by rude
That's really odd.

Re: Drawing primitives like circles and rectangles

Posted: Mon Mar 02, 2009 1:44 pm
by iamwilhelm
Skofo wrote:
iamwilhelm wrote:
osuf oboys wrote: Try running a LÖVE application that does not contain anything except

Code: Select all

function draw(); love.graphics.rectangle(love.draw_line, 100, 100, 200, 200); end
yeah, the same thing happens. no rectangle unless I set the line width.

Wil
That is quite odd, I got a white rectangle. I'm running the same things as iamwillhelm. Did you try changing the background color to see if it's making a black rectangle for you?
I've tried explicitly setting both the color of the pen, as well as the background color, or both, to see if it's either one. It's not. It's the line width.

Code: Select all

function load()
   love.graphics.setBackgroundColor(255, 0, 0)
   love.graphics.setColor(128,128,0)
end

function draw() 
   love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
end
Where is the love code contained? Is there source that I can dig into? Maybe I can run the debugger or at least print out some status messages to a logger on my own machine.

Re: Drawing primitives like circles and rectangles

Posted: Mon Mar 02, 2009 4:55 pm
by Robin
iamwilhelm wrote:I tried it out again to reproduce it. It only happens with rectangles.

Code: Select all

love.graphics.rectangle(love.draw_line, 100, 100, 200, 200)
without setting the width, it doesn't show up. I'll put it as a bug in the issue tracker
On Win XP I had the same problem, but I gave up on the idea of rectangles altogether and used an image.

Re: Drawing primitives like circles and rectangles

Posted: Mon Mar 02, 2009 5:56 pm
by Xcmd
Query: are any of you having this problem running a 32-bit operating system or a 64-bit? And, yes, there IS a 64-bit XP.

Re: Drawing primitives like circles and rectangles

Posted: Mon Mar 02, 2009 7:52 pm
by iamwilhelm
Xcmd wrote:Query: are any of you having this problem running a 32-bit operating system or a 64-bit? And, yes, there IS a 64-bit XP.
I'm running a 32-bit OS.

Re: Drawing primitives like circles and rectangles

Posted: Tue Mar 03, 2009 2:07 am
by osgeld
Xcmd wrote: And, yes, there IS a 64-bit XP.
yep i have it on my other drive, works splendidly

Re: Drawing primitives like circles and rectangles

Posted: Tue Mar 03, 2009 5:18 am
by Xcmd
Welp I'm out of ideas. Unless somehow you guys have Lua installed already and your version is over-writing Love's version. Or vice-versa. But I'd thought Love called a self-contained Lua implementation...

Re: Drawing primitives like circles and rectangles

Posted: Tue Mar 03, 2009 7:14 am
by bartbes
It does, I myself have lua installed seperately as well.
As to the problems: you don't happen to have some crappy video card or video driver?

Re: Drawing primitives like circles and rectangles

Posted: Tue Mar 03, 2009 1:19 pm
by iamwilhelm
bartbes wrote:It does, I myself have lua installed seperately as well.
As to the problems: you don't happen to have some crappy video card or video driver?
I installed Lua separately. Hrm, I might have a crappy video card. I'm running a panasonic toughbook, and it's the intel 82x graphics chip. Once I get my other ubuntu machine up, I'll try it on there.