Drawing primitives like circles and rectangles

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Drawing primitives like circles and rectangles

Post 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.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Drawing primitives like circles and rectangles

Post by rude »

That's really odd.
iamwilhelm
Prole
Posts: 16
Joined: Thu Feb 12, 2009 5:53 pm
Contact:

Re: Drawing primitives like circles and rectangles

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Drawing primitives like circles and rectangles

Post 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.
Help us help you: attach a .love.
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Drawing primitives like circles and rectangles

Post 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.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
iamwilhelm
Prole
Posts: 16
Joined: Thu Feb 12, 2009 5:53 pm
Contact:

Re: Drawing primitives like circles and rectangles

Post 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.
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: Drawing primitives like circles and rectangles

Post by osgeld »

Xcmd wrote: And, yes, there IS a 64-bit XP.
yep i have it on my other drive, works splendidly
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Drawing primitives like circles and rectangles

Post 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...
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Drawing primitives like circles and rectangles

Post 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?
iamwilhelm
Prole
Posts: 16
Joined: Thu Feb 12, 2009 5:53 pm
Contact:

Re: Drawing primitives like circles and rectangles

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 84 guests