3D Planets

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

3D Planets

Post 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.
Attachments
earth.love
Only has Earth, much smaller file
(542.17 KiB) Downloaded 456 times
planets.love
Has many planets
(3.89 MiB) Downloaded 458 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: 3D Planets

Post by Nixola »

[OT]Is there a way to bring software canvas support on Windows?[/OT]
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Roland_Yonaba
Inner party member
Posts: 1563
Joined: Tue Jun 21, 2011 6:08 pm
Location: Ouagadougou (Burkina Faso)
Contact:

Re: 3D Planets

Post by Roland_Yonaba »

As I my computer doesn't feature canvas, I can't try.
Seems it looks good, though.
Last edited by Roland_Yonaba on Mon Jul 30, 2012 11:31 am, edited 1 time in total.
User avatar
retrotails
Party member
Posts: 212
Joined: Wed Apr 18, 2012 12:37 am

Re: 3D Planets

Post 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.
Attachments
planetnocanvas.love
(3.89 MiB) Downloaded 364 times
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: 3D Planets

Post by Nixola »

I wasn't saying that you have not to use canvases, I could reboot into Linux to launch your .loves anyway
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
mickeyjm
Party member
Posts: 237
Joined: Thu Dec 29, 2011 11:41 am

Re: 3D Planets

Post 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
Your screen is very zoomed in...
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: 3D Planets

Post 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.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Ref
Party member
Posts: 702
Joined: Wed May 02, 2012 11:05 pm

Re: 3D Planets

Post 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?
User avatar
Kadoba
Party member
Posts: 399
Joined: Mon Jan 10, 2011 8:25 am
Location: Oklahoma

Re: 3D Planets

Post 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
User avatar
namreb
Prole
Posts: 3
Joined: Mon Jul 30, 2012 8:41 pm

Re: 3D Planets

Post by namreb »

150-180FPS - 3.2 GHz Intel Core i3 (iMac - Mountain Lion)
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests