Forum Topic: My First (working) 3d Engine

(6,954 views • 241 replies)

This topic is 9 pages long. [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ]

<< < > >>
None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/9/09 05:11 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Ok, clipping is done, and varying player height. WASD to move, SPACE to jump.
http://spamtheweb.com/ul/upload/090309/7 6202_main.php


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/9/09 07:16 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Any ideas / suggestions / bugs?


None

liaaaam

Reply To Post Reply & Quote

Posted at: 3/9/09 07:32 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,542

At 3/8/09 12:11 PM, StaliN98 wrote: How do I bypass this so that oneArray isn't sharing values with twoArray?

I think there is a way to do this by copying the array to a bytearray then reading it back or something like that.

At 3/9/09 01:40 PM, StaliN98 wrote: Hmm, some questions for optemisation:

As long as you're using AS3 and remembering to use ints rather than doubles (Number) for any numbers that have no floating point.. then it'll all be fine. Just keep your code readable.


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/9/09 07:59 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 3/9/09 07:32 PM, liaaaam wrote: Just keep your code readable.

Oh dear.


None

liaaaam

Reply To Post Reply & Quote

Posted at: 3/9/09 08:54 PM

liaaaam NEUTRAL LEVEL 22

Sign-Up: 12/11/04

Posts: 14,542

At 3/9/09 07:59 PM, StaliN98 wrote: Oh dear.

It's not that difficult to do, and it's very important =p lazy.


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 3/10/09 01:59 PM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,604

Ok, clipping is done, and varying player height. WASD to move, SPACE to jump.
http://spamtheweb.com/ul/upload/090309/7 6202_main.php

Looking good, though is it possible to either make it less pixelated or clip when further away? it looks very badly pixeled when your standing against a wall
I love the ability to walk over stuff, and jump onto things!
Add a good mouse for left and right ability, and some gunning ability and post it up! cant wait to see a counter strike styled engine coming from this!

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/10/09 04:49 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Working on floorcasting now, have it working for the floor but not on top of walls yet. Also, switched to mouse like you asked, so A and D now strafe.
http://spamtheweb.com/ul/upload/100309/7 4947_main.php


None

zuperxtreme

Reply To Post Reply & Quote

Posted at: 3/10/09 04:58 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,627

Looking great!

Things look a bit too pixelated, what's the reason for that?

Also, mouse is good, but it's annoying to have to constantly move it to the left or right to turn, which will eventually leave the mouse on the far left/right side of the screen.

How about having areas that if the mouse is in it'll turn. Say 30-40 pixels down from the left and the same for the right? Maybe 2 different sets of areas. One set to make it turn slowly and the others(closer to the edges) faster.

Does that make any sense?


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/10/09 05:02 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 3/10/09 04:58 PM, zuperxtreme wrote: How about having areas that if the mouse is in it'll turn. Say 30-40 pixels down from the left and the same for the right? Maybe 2 different sets of areas. One set to make it turn slowly and the others(closer to the edges) faster.

Does that make any sense?

I've tried that before, it just gets annoying when you start turning right for no reason when you accidentally look too far right. I forgot to mention that if you hold SHIFT, your mouse is detached.
It's pixelated because it just runs to damn slow when it's at high quality. I have yet to optimize, so there is still hope.


None

IWasBanned

Reply To Post Reply & Quote

Posted at: 3/10/09 05:05 PM

IWasBanned LIGHT LEVEL 02

Sign-Up: 03/03/09

Posts: 241

You had it right the first time.Now...
It was much better with the walls all orange/one color for the framespeed. It also looked better then
than it is now. Go for the old thing with the new controls. Itll be much better when u add enemies too because you'll tell what are the enemies. Remember, your not going to make a Call of Duty game in flash.

<3Columbian Roastmasters <3
Each time someone uses hitTest, God kills a kitten. Please, learn real collision testing. - henke37


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/10/09 05:23 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 3/10/09 05:05 PM, IWasBanned wrote: You had it right the first time.Now...
It was much better with the walls all orange/one color for the framespeed. It also looked better then
than it is now. Go for the old thing with the new controls. Itll be much better when u add enemies too because you'll tell what are the enemies. Remember, your not going to make a Call of Duty game in flash.

The old engine wall inferior in many ways. Mainly that it couldn't handle huge maps, couldn't do vertical and couldn't do textures. I'm sorry, but I'm sticking with this.


Sad

evan210

Reply To Post Reply & Quote

Posted at: 3/10/09 05:24 PM

evan210 FAB LEVEL 25

Sign-Up: 05/14/07

Posts: 3,647

you should go back to the first one you made. that one was awesome.


None

IWasBanned

Reply To Post Reply & Quote

Posted at: 3/10/09 05:28 PM

IWasBanned LIGHT LEVEL 02

Sign-Up: 03/03/09

Posts: 241

At 3/10/09 05:23 PM, StaliN98 wrote: The old engine wall inferior in many ways. Mainly that it couldn't handle huge maps, couldn't do vertical and couldn't do textures. I'm sorry, but I'm sticking with this.

i don't mean go with the old wall engine, but use the One color walls. Cuz the pixalated walls hurt my eyes. It also destroys the framerate. Plus who needs multi-storie maps.C'mon this is flash.

<3Columbian Roastmasters <3
Each time someone uses hitTest, God kills a kitten. Please, learn real collision testing. - henke37


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/10/09 05:44 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Texturing itself hardly affects framerate, but I need the multiple levels for the style of game I want to make.


None

trig1

Reply To Post Reply & Quote

Posted at: 3/10/09 05:51 PM

trig1 NEUTRAL LEVEL 15

Sign-Up: 10/04/05

Posts: 2,108

At 3/9/09 05:11 PM, StaliN98 wrote: Ok, clipping is done, and varying player height. WASD to move, SPACE to jump.
http://spamtheweb.com/ul/upload/090309/7 6202_main.php

Very nice. The clipping works superbly. Only thing you should do now is upping the resolution a bit (at the moment it's a bit horrible to look at). But the jumping and clipping is awesome.

Doing stupid things like doing loops backwards (starting at the end then decreasing to zero); binary logic instead of a bunch of if/elses; and data types speed things up. But ternary slows things down, so you might wanna avoid it.

All of those things make barely any difference though.
BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/10/09 06:01 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Doing stupid things like doing loops backwards (starting at the end then decreasing to zero);

Ok, thanks, I'll try that.

binary logic instead of a bunch of if/elses; and data types speed things up.

Apparently Ifs and Elses are slightly faster than .. ? .. : ..., but thanks for suggesting.

But ternary slows things down, so you might wanna avoid it.

So should I use an int that can be 0 or 1 instead of booleans?

All of those things make barely any difference though.

Any increase of FPS is a good thing, so thanks.

I've been using this mainly to get it faster.


None

trig1

Reply To Post Reply & Quote

Posted at: 3/10/09 07:06 PM

trig1 NEUTRAL LEVEL 15

Sign-Up: 10/04/05

Posts: 2,108

At 3/10/09 06:01 PM, StaliN98 wrote:
binary logic instead of a bunch of if/elses; and data types speed things up.
Apparently Ifs and Elses are slightly faster than .. ? .. : ..., but thanks for suggesting.

... ? ... : .... is ternary, and it's very slightly slowwer than ifs and elses. What I meant by binary logic was something like

var b = (Key.isDown(Key.LEFT)-Key.isDown(Key.RIG HT))

instead of a bunch of ifs/elses for it. You can only apply it in certain situations, but I'm pretty sure it speeds it up. But I think AS3 killed that method of doing stuff, so forget I said it.

But ternary slows things down, so you might wanna avoid it.
So should I use an int that can be 0 or 1 instead of booleans?

Nooooo, definatly keep booleans instead of ints, booleans are far smaller memory wise. I just didn't explain myself properly first time lol.

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/10/09 08:20 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

ah, sorry, got confused. Thanks for the advice


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 3/12/09 09:30 AM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,604

any new updates?

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

Super-Yombario

Reply To Post Reply & Quote

Posted at: 3/12/09 11:15 AM

Super-Yombario FAB LEVEL 06

Sign-Up: 03/16/07

Posts: 1,178

PEOPLE, STOP ASKING. If he has updates, he will post them. GOSH. He has more projects than this, and I know he has at least one other advertised project, so that's a few projects he has there. He will update this when he has updates. He's not sitting there with a full-blown Call of Duty remake contemplating whether or not to tell you!

RIP Ed McMahon - RIP Farrah Fawcett - RIP Michael Jackson
But wait, there's more...
RIP Billy Mays


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/12/09 03:28 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 3/12/09 11:15 AM, Super-Yombario wrote:

He's not sitting there with a full-blown Call of Duty remake contemplating whether or not to tell you!

Well, actually...
I'm just figuring out the maths behind drawing floors on top of walls at the moment.


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 3/12/09 03:40 PM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,604

@staliN
sry for sound so obnoxious, im just really excited to see this finished :P
@ Super-Yombario
dont have to be a ass about EVERYTHING. seriously, is the only thing you can do on this site, annoying people?

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/12/09 04:16 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 3/12/09 03:40 PM, Yambanshee wrote: @staliN
sry for sound so obnoxious, im just really excited to see this finished :P

No problem, and I'm excited to see it finished too!


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/12/09 06:35 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 3/12/09 06:32 PM, script-11 wrote: can you give us a download link

for the source files or the .swf?


Elated

fjgamer

Reply To Post Reply & Quote

Posted at: 3/15/09 03:17 PM

fjgamer EVIL LEVEL 08

Sign-Up: 08/15/08

Posts: 268

Very nice!
I've been trying to make something similar, but I just couldn't figure out how to make anything decent that would run well in Flash. Mine didn't have jumping, either. I sort of gave up when I realized I have no idea how to make models from Blender work with my Flash library. ;D Let alone copy over the lighting and textures from said Blender files. All that aside, though, nice engine! Is it CS4? Or is it possible the source would work in CS3? I read that it was AS3, so it has to be CS3 or later... or that open source stuff.


None

StaliN98

Reply To Post Reply & Quote

Posted at: 3/15/09 03:58 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

It's all in AS3, so it will work in CS3 and CS4. I'll post the source files when some things are fixed.


Elated

IgNoT

Reply To Post Reply & Quote

Posted at: 3/15/09 08:32 PM

IgNoT NEUTRAL LEVEL 02

Sign-Up: 03/15/09

Posts: 7

phew that took a while to read haha, it looks amazing so far dude well done, i could never set myself a task like that and stick to it (lack of willpower i guess) lol. Keep up the good work and i think i speak for most people on this thread when i say i cant wait to see it finished! javascript:MakeSmileySelection(15);


None

Yambanshee

Reply To Post Reply & Quote

Posted at: 4/16/09 08:07 AM

Yambanshee DARK LEVEL 11

Sign-Up: 10/05/08

Posts: 1,604

its been soo long!! update?

AS2||AS3||Motox
Thanks to hdxmike for the sig :]

BBS Signature

None

turtleco

Reply To Post Reply & Quote

Posted at: 4/17/09 12:00 PM

turtleco FAB LEVEL 07

Sign-Up: 03/01/08

Posts: 915

At 1/27/09 05:00 PM, StaliN98 wrote:
This was made completely on my own, except for when I asked here about the new classes in AS3 (thanks again). What do you think of it so far? Any ideas for a game to make out of it?
http://spamtheweb.com/ul/upload/270109/7 8554_main.php

you could make an exploration game like metroid, where you run around and try tof ind a key or knife to open a door to go somewhere else. basically i was thinking it would be like a guy is ona space ship then it crashes and he needs to get a hammer to break through the door yadda yadda yadda... then gets a machete to cut through thick vines blah blah story line... beautiful scenery... then gets a flash light to see through a cave, and then a rock to kill something with, and so on...


Happy

zenyara

Reply To Post Reply & Quote

Posted at: 4/21/09 02:07 AM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

At 4/16/09 08:07 AM, Yambanshee wrote: its been soo long!! update?

I'm working on a different 3D technique now. I have scaling and rotation working, and it uses a 2D map to update the 3D one.

It's just another way of going about it. I'll post it pretty soon.

Check out the latest updates:

Toga Games (crew)

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 03:38 PM

<< Back

This topic is 9 pages long. [ 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!