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.
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.
3D Planets
- retrotails
- Party member
- Posts: 212
- Joined: Wed Apr 18, 2012 12:37 am
3D Planets
- 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
Re: 3D Planets
[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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
- Roland_Yonaba
- Inner party member
- Posts: 1563
- Joined: Tue Jun 21, 2011 6:08 pm
- Location: Ouagadougou (Burkina Faso)
- Contact:
Re: 3D Planets
As I my computer doesn't feature canvas, I can't try.
Seems it looks good, though.
Seems it looks good, though.
Last edited by Roland_Yonaba on Mon Jul 30, 2012 11:31 am, edited 1 time in total.
- retrotails
- Party member
- Posts: 212
- Joined: Wed Apr 18, 2012 12:37 am
Re: 3D Planets
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.Nixola wrote:[OT]Is there a way to bring software canvas support on Windows?[/OT]
- Attachments
-
- planetnocanvas.love
- (3.89 MiB) Downloaded 364 times
Re: 3D Planets
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: 3D Planets
All i can suggest is to forecably imply to people that they should use ImageDataNixola wrote:[OT]Is there a way to bring software canvas support on Windows?[/OT]
Your screen is very zoomed in...
Re: 3D Planets
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
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: 3D Planets
I think that part of the problem is people are not comfortable with the various types of data - I know I'm not.mickeyjm wrote:All i can suggest is to forecably imply to people that they should use ImageDataNixola wrote:[OT]Is there a way to bring software canvas support on Windows?[/OT]
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
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.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.
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
150-180FPS - 3.2 GHz Intel Core i3 (iMac - Mountain Lion)
Who is online
Users browsing this forum: No registered users and 5 guests