3D API Overview - 1.3.2 Beta

@Simeon… given such forthcoming awesomeness I don’t see how you can call the update 1.3.2 and keep a straight face :slight_smile:

Here’s my next go with 3D:

That’s incredible @Andrew! Would you consider allowing us to include your roller coaster as an advanced 3D example project?

Of course. Let me clean up the code and I’ll post it here.

If anyone has any suggestions on improvements …

Holly crap! You did it yet again.

Oh. And for improvements, just for an example, figure out a way to draw a changing background. That would be greate in examples.

@Andrew_Stacey Just incredible! :smiley:

When this is released, I call turning bit invaders into 3D! It’s easy enough (I think)…

Hey, so we have 2D physics, but with 3D graphics, is there any chance we will get 3D physics eventually?

@Andrew_Stacey - wow awesome demo Andrew :smiley:

Hi Andrew,

Excellent demo!

Question for anyone, are there any plans to enable provision of a 2D bitmap which you could use to wrap around a sphere and the rotate it? Most of the demos I have seen are based on cube faces.

Bri_G

If you skip to 7:20 on this video:

http://youtu.be/Qkfo-ynYS7Y

you’ll see an image rendered to a spherical mesh. A little earlier, there’s an image on a toroidal mesh.

And here’s a picture of a spherical mesh with an image rendered to it: http://t.co/YY1JCbfw.

Both of these were done in the pre-true-3D era. I would do them differently now, but only because it would be easier code.

Hi Andrew,

Just what I was looking for. Was this code written for a pre-pad PC version of Codea?
Are the routines likely to be encode in Pad Codea?

I’d like to play around with those when they arrive.

By the way - good video - do you have anymore on YouTube?

Bri_G

Hi Andrew,

Just what I was looking for. Was this code written for a pre-pad PC version of Codea?
Are the routines likely to be encode in Pad Codea?

I’d like to play around with those when they arrive.

By the way - good video - do you have anymore on YouTube?

Bri_G

HI Andrew,

Don’t answer that - checked out on U-tube and found your other vids. You’ve been busy. Noted with interest the sand in a box video and reminded me of a game for the Acorn Archimedes (ca.1991) in which you have to direct liquids to avoid loss. See this:

http://www.youtube.com/watch?v=yFIy_GsKfU0

Not bad for the day. Perhaps someone could pad it.

Bri_G

These were written in Codea. But they were written before I got the chance to play around with 3D meshes. Indeed, the first version of the shape explorer predates meshes in Codea. So I had to do all the projection calculations “by hand” which made the code complicated and the speed slow. I’d write them very differently now. I did start rewriting them using the new capabilities, but decided it would be easier to simply redo them from scratch than try to rejig the existing code. But I’ve never been one for doing the same thing again, so the code ended up as the roller coaster (above).

So they’re more a relic of the “good old days” when we had to do 3D by hand. However, I like to think that the presence of projects like this helped convince TTL that native 3D was a Good Idea.

At time of writing, all of my videos on YouTube were created using Codea. You can get the lot at http://www.youtube.com/user/mapstacey.

Hi Andrew,

You might want to push my last post onto another discussion (or new) as it’s not 3D, just a simulation which I think can be improved today with the physics engine.

Do you have any chemistry background as I noted some of the models provided in the videos were remeniscent of the molecular modelling packages I used in the past?

Br_G

New version of the roller coaster: now with a sprite in a cart that can try to collect jewels as (s)he goes around the track. Two videos with different tracks:

http://youtu.be/28kErwYfCfk

http://youtu.be/FC1NcwrS8NE

The frame rate is actually 60fps, the slow-down to about 40 is because of the videoing.

Wow! Nice! For the background, did you just plot random points?