LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Globe

Root / Submissions / [.]

12Me21Created:
Download:4DY3EEH3
Version:3.7Size:513 KB
Displays an image on a sphere. Changes from version 1: -increased speed (around 2x) -now writes a function into slot 2 instead of using a FOR loop -removed quality setting since it's faster to just use a smaller size and SPSCALE it up.

Instructions:

1: load map image using LOADMAP:
DIM MAP%[0,0]
MAP%=LOADMAP(file,u,v,width,height)
u: image X start v: image Y start width: image width height: image height (like SPSET) 2: generate sphere function:
SPHERESETUP radius,width,height,precision
radius: radius of sphere to draw width: image width height: image height precision: angle precision (number of decimal places to keep in the angle value. Higher values can take longer to load initially, and might exceed the maximum program size) 3: draw sphere
DIM OUT%[radius*2-1,radius*2-1]
SPHERE angle,MAP%,OUT%
GLOAD x,y,radius*2-1,radius*2-1,OUT%,TRUE,FALSE
angle: angle to display the sphere at (must be between 0 and 1)

I'm not sure the Moon is a planet.

Do you want me to send you the 3D version?

Replying to:Perska
I'm not sure the Moon is a planet.
But what IS a planet?

Replying to:Perska
I'm not sure the Moon is a planet.
According to Wikipedia- A planet is an astronomical body orbiting a star or stellar remnant that
  • is massive enough to be rounded by its own gravity,
  • is not massive enough to cause thermonuclear fusion, and
  • has cleared its neighbouring region of planetesimals.
:)

Replying to:Perska
I'm not sure the Moon is a planet.
I never said it was a planet. I said I included maps of planets, but I didn't say all of them were planets. EDIT: A planet is a planet, you can't say it's only a half.

Looks sweet. there was something like this on PTC that You drew a picture on a rectangle and then it made it into a holographic looking globe.

Replying to:Joshuaham123
Looks sweet. there was something like this on PTC that You drew a picture on a rectangle and then it made it into a holographic looking globe.
Yeah, that's what inspired me to do this.

Wow impressive amount of code.

How do you make it not so pixilated?

Fancy! If it's extensible, it'd be cool if someone based a game around it. Or at least used it in the background.

Replying to:haloopdy
Fancy! If it's extensible, it'd be cool if someone based a game around it. Or at least used it in the background.
part of the cutscene for finding a new planet?

Replying to:Perska
I'm not sure the Moon is a planet.
Well, 12 """Me""" 21, hear me out.

I figured out how to make it around 3-4 times faster! The disadvantage is that now you have to wait like 3 seconds for SB to compile it.

Replying to:12Me21
I figured out how to make it around 3-4 times faster! The disadvantage is that now you have to wait like 3 seconds for SB to compile it.
i know this would completely change your code, but... horizontal axis rotation?

Replying to:12Me21
I figured out how to make it around 3-4 times faster! The disadvantage is that now you have to wait like 3 seconds for SB to compile it.
I tried, but I'm not sure how. It's a lot more complicated, I think.

Now it can draw a 239x239 sphere at 10 FPS... With 45000 lines of code...

Replying to:12Me21
Now it can draw a 239x239 sphere at 10 FPS... With 45000 lines of code...
oh I guess I should actually upload the new version at some point...

Replying to:Joshuaham123
How do you make it not so pixilated?
There's a quality setting I think. But I'm going to upload a new version that will run twice as fast.

Replying to:12Me21
Now it can draw a 239x239 sphere at 10 FPS... With 45000 lines of code...
Okay andrito give 12Me21's account back </lumage>

Seems pretty cool. Could it be used for a simple KSP clone of some type, or would it lag too much?