Jasoco's 3D Engine Thread: Go to Page 6 Please!

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Jasoco's 3D Model Extravaganza.. NOTHING IS "NORMAL" ANYMORE

Post by Jasoco »

Made a little progress today. Well, after chasing a confusing bug for a while. I now have a representation of the ship. Well, it's a box right now until I get it working 100% correctly at which point I guess I'll design a ship to replace it.

Next I need to create bullets (Lasers) and bombs that can be shot. As well as make the ship tilt. Also, collision detection. Oh, and tilting of the screen and horizon. Oh, and a horizon. Oh, and maybe dots along the ground to help your perspective tell that you're flying. Oh and enemies.

Turning off BackFace checking for the StarFox game seems to help the speed a tiny bit.

I have a theory that if I create levels in sections and only load each section two at a time, the one the player is in and the next one. Then unload the one the player was in when he enters the next one at which point I load the next next one, I might be able to make much longer levels and faster framerates. Theory. It should work. If I figure out how.

I discovered I can make polygons move by giving their points a name (Like "player"), then check the name when running through the points table and manipulate thusly as long as I save the model's original X, Y and Z offsets. Whoo.

This all sounds like jibberish to you, but I hope to have a nice prototype for you guys soon.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Jasoco's 3D Model Extravaganza.. NOTHING IS "NORMAL" ANYMORE

Post by Robin »

Jasoco wrote:I have a theory that if I create levels in sections and only load each section two at a time, the one the player is in and the next one. Then unload the one the player was in when he enters the next one at which point I load the next next one, I might be able to make much longer levels and faster framerates. Theory. It should work. If I figure out how.
It would only work with levels that are not to dynamic, though.
Jasoco wrote:This all sounds like jibberish to you, but I hope to have a nice prototype for you guys soon.
No, it doesn't. ;)
Help us help you: attach a .love.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Jasoco's 3D Model Extravaganza.. NOTHING IS "NORMAL" ANYMORE

Post by Jasoco »

Robin wrote:
Jasoco wrote:I have a theory that if I create levels in sections and only load each section two at a time, the one the player is in and the next one. Then unload the one the player was in when he enters the next one at which point I load the next next one, I might be able to make much longer levels and faster framerates. Theory. It should work. If I figure out how.
It would only work with levels that are not to dynamic, though.
Well, I'm not looking at creating Star Fox 2 (That game sucked so much. I mean WTF? It was a completely different direction!) where you have fully 3D levels you can go any direction in. I just want the simple on-rails one-way flight of Star Fox. So basically it would make sense. Load one section at a time and unload a section as soon as the last polygons leave the field of view.

The way I assume Star Fox worked is that polygons were only created when they pop into frame. And if you've played Star Fox, you'll notice the draw distance is really low. Polygons and enemies don't show up until they're very close. My game would have a closer distance though. (Due to much faster computing power than what an SNES with a coprocessor could do back then.)

Still looking for a perfect method for rotating a whole model. Should be easy. I just need to figure out how to rotate a single point around a certain other point. i.e. I take the new vertex location, and rotate it around it's original offset. Something to do with Sine and Cosine of course. Anyone have any ideas?

Also, the 3D model viewer project is still alive, I will probably use it to create the models themselves. This new project is a proof of concept that will hopefully become real. A real 3D space shooter.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Jasoco's 3D Model Extravaganza.. NOTHING IS "NORMAL" ANYMORE

Post by Jasoco »

Nope. Figured it out! Now I can rotate all the points in a 3d model, then place it into the 3D world. So I should now be able to have dynamic scenery that moves and turns and all sorts of stuff. Not sure yet whether I'm going to make the enemies 3D or sprites. If I can't get it running super fast enough I'd have to go with sprites just to save frames and processing time. But I'm hoping to be able to make 3D enemies instead.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Jasoco's 3D Model Extravaganza.. Does anyone like STAR FOX?

Post by Jasoco »

Just an update to show off what I was working on last night.
Arwing power!
Arwing power!
Arwing.jpg (77.94 KiB) Viewed 3084 times
It's an Arwing! Modeled after the original ones from Star Fox. The engine even flashes like the original. And yes, that is a shadow.

It doesn't roll or tilt yet though I am working on it. Is anyone interested in a Star Fox style space shooter made in Löve? I am!

Still need to do collisions and enemies/obstacles that can hit you. And lasers and missiles. The goal is to emulate the Star Fox engine as closely as possible. Also I have to put a grid of dots on the ground and make it a gradient to give it a feeling of depth. Also something in the sky like clouds and mountains.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Jasoco's 3D Model Extravaganza.. Does anyone like STAR FOX?

Post by kikito »

Do a barrel roll!

... I had to say it, sorry.
When I write def I mean function.
User avatar
zipperipper
Prole
Posts: 45
Joined: Thu Jan 14, 2010 7:59 pm
Location: UK

Re: Jasoco's 3D Model Extravaganza.. Does anyone like STAR FOX?

Post by zipperipper »

Epic. :ultraglee:

looks like ima have to try and improve my 3D rendering thingy :P
Error 404, consciousness not found.
Geti
Party member
Posts: 112
Joined: Tue Oct 20, 2009 6:38 am

Re: Jasoco's 3D Model Extravaganza.. Does anyone like STAR FOX?

Post by Geti »

I'm impressed.. How many FPS does this get on your machine?
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Jasoco's 3D Model Extravaganza.. Does anyone like STAR FOX?

Post by Jasoco »

It varies. I haven't optimized the level code so all polygons are loaded at once instead of loading groups at a time to speed up the for pairs() loops.
User avatar
hryx
Party member
Posts: 110
Joined: Mon Mar 29, 2010 2:28 am
Location: SF<CA<USA

Re: Jasoco's 3D Model Extravaganza.. Does anyone like STAR FOX?

Post by hryx »

Jasoco wrote:It's an Arwing! Modeled after the original ones from Star Fox. The engine even flashes like the original. And yes, that is a shadow.
*THUNK*
That was the sound of my jaw hitting the floor.
Which is very odd, since the floor here is carpeted.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests