Page 1 of 2

3D Planets

Posted: Mon Jul 30, 2012 11:04 am
by retrotails
Probably been done before, like everything else I've made, but I was bored. Also, I have no fucking clue what kind of math this uses nor do I remember how I came up with it.
Also, I cheated by using a prerendered shader thing (an image on the planet) that makes it look nicer.

Image

Arrow keys up & down change the sun, left & right spin the planet.
Needs canvases. Also is 100% hacks and 0% scalable.
I get 250 FPS, please tell me what you get.

Re: 3D Planets

Posted: Mon Jul 30, 2012 11:08 am
by Nixola
[OT]Is there a way to bring software canvas support on Windows?[/OT]

Re: 3D Planets

Posted: Mon Jul 30, 2012 11:17 am
by Roland_Yonaba
As I my computer doesn't feature canvas, I can't try.
Seems it looks good, though.

Re: 3D Planets

Posted: Mon Jul 30, 2012 11:19 am
by retrotails
Nixola wrote:[OT]Is there a way to bring software canvas support on Windows?[/OT]
This might work. It's 7 AM and I haven't had any sleep yet, so I'll work on the issues it has later.

Re: 3D Planets

Posted: Mon Jul 30, 2012 11:24 am
by Nixola
I wasn't saying that you have not to use canvases, I could reboot into Linux to launch your .loves anyway

Re: 3D Planets

Posted: Mon Jul 30, 2012 6:15 pm
by mickeyjm
Nixola wrote:[OT]Is there a way to bring software canvas support on Windows?[/OT]
All i can suggest is to forecably imply to people that they should use ImageData

Re: 3D Planets

Posted: Mon Jul 30, 2012 6:49 pm
by Nixola
Mickeyjim, that's exactly what I want to avoid. Canvas are fast and useful, it's not fair that some Windows users can't have them because Microsoft is dumb.

Re: 3D Planets

Posted: Mon Jul 30, 2012 7:06 pm
by Ref
mickeyjm wrote:
Nixola wrote:[OT]Is there a way to bring software canvas support on Windows?[/OT]
All i can suggest is to forecably imply to people that they should use ImageData
I think that part of the problem is people are not comfortable with the various types of data - I know I'm not.
I know there are at least three types of data types associated with display manipulations:
userdata, imagedata & image
examples:
userdata = love.graphics.newCanvas(w,h)
image = love.graphics.newImage( filename )
imagedata = userdata:getImageData()
image = love.graphics.newImage( imageData )
userdata = love.graphics.newSpriteBatch( image, size )
Can transfer userdata between threads but not imagedata.
canvases are a form of userdata so why do people have problems with them?
Presume PixelEffect can operate on any of the data types depending how effect is written??
I must admit that I don't appreciate what the differences are between these and so can't use them intelligently - don't even know where they reside - main memory or GPU memory.
Pretty basic stuff that's obvious once someone explains what's going on.
Looking for a simple examples (know they exist somewhere) for the use of imagedata & for SpriteBatch.
How about a little help for the programming challanged?

Re: 3D Planets

Posted: Mon Jul 30, 2012 8:55 pm
by Kadoba
Nixola wrote:Mickeyjim, that's exactly what I want to avoid. Canvas are fast and useful, it's not fair that some Windows users can't have them because Microsoft is dumb.
It's not really Microsoft. It's Intel. They have really bad OEM specific drivers that almost never get updated. If your Windows computer isn't ancient and it doesn't support canvases then it's likely a shitacular Intel driver.

My computer at work has an Intel chip and it took a driver update to be able to support canvases. The update was nearly impossible to find online and it took a call to my manufacturer's customer support before I was able to find them. Since the update my PC will switch to a different resolution every time it exits a screen saver or sleep mode. It's a huge pain in the ass but hey I have canvases now.

tldr; Intel blows

Re: 3D Planets

Posted: Mon Jul 30, 2012 9:07 pm
by namreb
150-180FPS - 3.2 GHz Intel Core i3 (iMac - Mountain Lion)