Forum Topic: My First (working) 3d Engine

(6,899 views • 241 replies)

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

<< < > >>
Happy

zenyara

Reply To Post Reply & Quote

Posted at: 1/31/09 02:07 AM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

***** FUNCTION LIST *****

This is a list of possible behaviors to be included in the editor:

screenShake(moveX,moveY,duration); // screen shakes for specified intensity and duration

screenHit(mc, duration); // when player gets hit it casts a movie clip at the screen (could be mud, blood, pebbles, snow, etc)

alert(msg);// spawns an alert box similar to javascript alert();

prompt(msg);// spawns a prompt box that looks for a confirmation or rejection response

showHUD();// spawns or hides player HUD

showConsole();// spawns or removes in-game editor console

playSound(snd,tm,duration,loops);// plays target sound at specified time, duration, or loops

rollCredits();// spawns credits from array and "rolls" them - we could use this to display the map team or whoever makes a specified game with the engine.

loadGame(game);// spawns target game that will load-in as movie object

showOptions();// spawns options dialogue box or closes

reload(weapon);// reload a target weapon using rules of that weapon

spawn(obj,x,y,z);// spawns object at target xyz

autoRotate(obj,dx,dy,dz,spd,duration);// auto-rotates target object with target degrees of rotation and speed for specified duration

destroy(obj,how);// destroys target object with specified method (will trigger animation)

remove(obj):// removes target object completely

edit(obj);// edits target object attributes and behaviors

create(obj,x,y,z);// creates target object at specified x,y,z

// this is just a short list for now

Check out the latest updates:

Toga Games (crew)

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 1/31/09 10:51 AM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Minimap finished, well pretty much. Wall clipping will be a cinch now.


None

SK8ninja

Reply To Post Reply & Quote

Posted at: 1/31/09 11:38 AM

SK8ninja EVIL LEVEL 08

Sign-Up: 08/08/08

Posts: 569

At 1/31/09 10:51 AM, StaliN98 wrote: Minimap finished, well pretty much. Wall clipping will be a cinch now.

Wow, this sounds pretty awesome. Good luck, you could make one of the best flash on newgrounds with all this

Who do you think is awesomer: Satan or Jebus?? PM SK8ninja your vote.

SATAN : 9 JEBUS : 10

BBS Signature

None

GustTheASGuy

Reply To Post Reply & Quote

Posted at: 1/31/09 11:50 AM

GustTheASGuy LIGHT LEVEL 08

Sign-Up: 11/02/05

Posts: 11,418

At 1/31/09 12:01 AM, Kwing wrote: Sick!! Man, I wish I had AS3.

Then get it.
http://www.adobe.com/products/flex/flexd ownloads/index.html
http://haxe.org/

#ngprogramming at irc.freenode.net
haXe | Keel imperative | Spyro! | Thru you


None

StaliN98

Reply To Post Reply & Quote

Posted at: 1/31/09 12:47 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Here is the minimap so far, as you can see I am having a problem with a weird error where if a line starts in front of you, and ends behind you, it chops off the part that's behind you. Hmm.
http://spamtheweb.com/ul/upload/310109/6 3936_main.php


None

Super-Yombario

Reply To Post Reply & Quote

Posted at: 1/31/09 01:42 PM

Super-Yombario FAB LEVEL 06

Sign-Up: 03/16/07

Posts: 1,178

Eww, the mouse controls are so annoying...
I suggest reverting to your Arrow Keys/WASD controls. However, I did like the minimap.

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: 1/31/09 01:51 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Has anyone made a function to check if two lines are intersecting? Can't think of a way to go about checking that.


None

BillysProgrammer

Reply To Post Reply & Quote

Posted at: 1/31/09 01:57 PM

BillysProgrammer LIGHT LEVEL 16

Sign-Up: 09/17/08

Posts: 2,242

Super, be quiet. The mouse controls are for panning views. Its stupid just to have forward, angles, back, left and right.

Think about it..


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 1/31/09 02:01 PM

Glaiel-Gamer NEUTRAL LEVEL 28

Sign-Up: 12/28/04

Posts: 8,071

The mouse controls kinda suck the way you have it right now

What you do is this:

divide the screen into 3 regions:

|   |          |   |
| 1 |    2     | 3 |
|   |          |   |

When the mouse is in region 2, only move the screen when you move the mouse (like if you move 2 pixels to the left, rotate the camera a small bit to the left and stop). If the mouse is in 1 or 3, move it like you have right now.


Resigned

zuperxtreme

Reply To Post Reply & Quote

Posted at: 1/31/09 02:39 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,626


Expressionless

zuperxtreme

Reply To Post Reply & Quote

Posted at: 1/31/09 02:40 PM

zuperxtreme NEUTRAL LEVEL 08

Sign-Up: 01/02/05

Posts: 1,626

At 1/31/09 02:39 PM, zuperxtreme wrote: Trig, dude...

http://local.wasp.uwa.edu.au/~pbourke/ge ometry/lineline2d/

Gah. That was for "StaliN98"...

Stupid NG with no edit function...

Also, awesome work OP. That minimap looks great even with that little glitch.


None

KynetiK-27

Reply To Post Reply & Quote

Posted at: 1/31/09 02:54 PM

KynetiK-27 NEUTRAL LEVEL 10

Sign-Up: 07/23/06

Posts: 740

This project is looking more and more delicious every time I look at it =þ

Nice job Stalin, keep it up !


None

StaliN98

Reply To Post Reply & Quote

Posted at: 1/31/09 03:29 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 1/31/09 02:39 PM, zuperxtreme wrote: Trig, dude...

http://local.wasp.uwa.edu.au/~pbourke/ge ometry/lineline2d/

Thanks, I'll see if I can get clipping working using that.


None

StaliN98

Reply To Post Reply & Quote

Posted at: 1/31/09 04:17 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

What the hell? Every so often, CS4 decides to randomly remove all my brackets in my code, leaving things like

private var walls:Array = new Array  ;

which doesn't matter much, and:

wid + 3 * -.5

which should be:

(wid + 3) * -.5

Which in the previous form completely fucked up the 3D rendering function. Now I have to trawl through all of my code, putting ( and ) where I think they used to be.


None

Nano256

Reply To Post Reply & Quote

Posted at: 1/31/09 04:26 PM

Nano256 DARK LEVEL 13

Sign-Up: 02/12/05

Posts: 1,473

Then don't use autoformat :P

Move on to ActionScript 3.0 already!
The third post below this one is a lie.

BBS Signature

None

Duchednier

Reply To Post Reply & Quote

Posted at: 1/31/09 05:00 PM

Duchednier LIGHT LEVEL 17

Sign-Up: 06/14/05

Posts: 1,244

At 1/27/09 06:57 PM, ikool wrote: Lol, its fun to run through walls... The 3D engine looks great! I hope to see more later.

I know nothing about AS3 and i'm a flash artist, so i'l have you know i have NO IDEA how you did this, but i can see huge potential for this :D nice job!

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 1/31/09 06:52 PM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

At 1/31/09 02:01 PM, Glaiel-Gamer wrote: The mouse controls kinda suck the way you have it right now

What you do is this:

divide the screen into 3 regions:

| | | |
| 1 | 2 | 3 |
| | | |

When the mouse is in region 2, only move the screen when you move the mouse (like if you move 2 pixels to the left, rotate the camera a small bit to the left and stop). If the mouse is in 1 or 3, move it like you have right now.

Ok, put that in, as well as a prototype wall clipping, not perfect yet. I need to sleep.
http://spamtheweb.com/ul/upload/310109/8 5883_main.php


None

Nuttro

Reply To Post Reply & Quote

Posted at: 1/31/09 07:26 PM

Nuttro LIGHT LEVEL 22

Sign-Up: 04/26/07

Posts: 848

At 1/31/09 06:52 PM, StaliN98 wrote:
At 1/31/09 02:01 PM, Glaiel-Gamer wrote: The mouse controls kinda suck the way you have it right now

What you do is this:

divide the screen into 3 regions:

| | | |
| 1 | 2 | 3 |
| | | |

When the mouse is in region 2, only move the screen when you move the mouse (like if you move 2 pixels to the left, rotate the camera a small bit to the left and stop). If the mouse is in 1 or 3, move it like you have right now.
Ok, put that in, as well as a prototype wall clipping, not perfect yet. I need to sleep.
http://spamtheweb.com/ul/upload/310109/8 5883_main.php

Awsome, much progress and precision aiming (this is still gonna be a first person shooter right?). Now you should try on ceilings and upper levels using stairs/elevators.
Textures are a bit raw but I'd say that's temporary right?


None

zenyara

Reply To Post Reply & Quote

Posted at: 1/31/09 11:21 PM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

At 1/31/09 07:26 PM, Nuttro wrote:
At 1/31/09 06:52 PM, StaliN98 wrote:
At 1/31/09 02:01 PM, Glaiel-Gamer wrote: The mouse controls kinda suck the way you have it right now

What you do is this:

divide the screen into 3 regions:

| | | |
| 1 | 2 | 3 |
| | | |

When the mouse is in region 2, only move the screen when you move the mouse (like if you move 2 pixels to the left, rotate the camera a small bit to the left and stop). If the mouse is in 1 or 3, move it like you have right now.
Ok, put that in, as well as a prototype wall clipping, not perfect yet. I need to sleep.
http://spamtheweb.com/ul/upload/310109/8 5883_main.php
Awsome, much progress and precision aiming (this is still gonna be a first person shooter right?). Now you should try on ceilings and upper levels using stairs/elevators.
Textures are a bit raw but I'd say that's temporary right?

Yes, we have not yet created the texture library, so only one texture is available right now. When the editor is more advanced we'll have the ability to click a line (wall) and view a popup box that has all the data of that line/object and we'll be able to apply any texture from our library, as well as behaviors (destructable walls, sound triggers, spawn triggers, ect)

Check out the latest updates:

Toga Games (crew)

BBS Signature

Happy

zenyara

Reply To Post Reply & Quote

Posted at: 1/31/09 11:39 PM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

Ok, put that in, as well as a prototype wall clipping, not perfect yet. I need to sleep.
http://spamtheweb.com/ul/upload/310109/8 5883_main.php

I think you can add a "bounce" factor which will allow the player to keep sliding down the wall instead of "sticking" to it.

Check out the latest updates:

Toga Games (crew)

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 2/1/09 04:42 AM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Don't worry, I just wanted to get basic clipping done before midnight. I'll do the rest today.


None

Nuttro

Reply To Post Reply & Quote

Posted at: 2/1/09 05:33 AM

Nuttro LIGHT LEVEL 22

Sign-Up: 04/26/07

Posts: 848

At 2/1/09 04:42 AM, StaliN98 wrote: Don't worry, I just wanted to get basic clipping done before midnight. I'll do the rest today.

Will this be something like doom?


None

StaliN98

Reply To Post Reply & Quote

Posted at: 2/1/09 05:52 AM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

More like Wolfenstein 3D, because it can't handle any sort of Y axis. So maps will all be one level high, etc.


None

Nuttro

Reply To Post Reply & Quote

Posted at: 2/1/09 05:56 AM

Nuttro LIGHT LEVEL 22

Sign-Up: 04/26/07

Posts: 848

At 2/1/09 05:52 AM, StaliN98 wrote: More like Wolfenstein 3D, because it can't handle any sort of Y axis. So maps will all be one level high, etc.

Well that's a shame :(


None

Keith

Reply To Post Reply & Quote

Posted at: 2/1/09 06:02 AM

Keith NEUTRAL LEVEL 09

Sign-Up: 04/18/04

Posts: 1,221

Very Nice

Reminds me of the old windows screensaver maze lol

BBS Signature

None

Nuttro

Reply To Post Reply & Quote

Posted at: 2/1/09 06:05 AM

Nuttro LIGHT LEVEL 22

Sign-Up: 04/26/07

Posts: 848

At 2/1/09 06:02 AM, Kanadian-Keith wrote: Very Nice

Reminds me of the old windows screensaver maze lol

I miss that :(


Happy

zenyara

Reply To Post Reply & Quote

Posted at: 2/1/09 08:06 AM

zenyara NEUTRAL LEVEL 13

Sign-Up: 06/17/05

Posts: 1,200

We're going to have a nice update very soon with:

fixed wall clipping
player "bounce"
first-person hand (rough)
HUD (rough)
jump (w/sound)
crouch
maybe some other sounds, perhaps background music and ambient sound
walking sound

Check out the latest updates:

Toga Games (crew)

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 2/1/09 10:06 AM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Does anyone know the ascii of left shift? Its not on asciitable.com, or its not called shift.


None

adam2510

Reply To Post Reply & Quote

Posted at: 2/1/09 10:18 AM

adam2510 EVIL LEVEL 13

Sign-Up: 10/02/05

Posts: 3,726

just type SHIFT its much easier

ps. i like what i see :)

Web Hosting: Free! Premium!

BBS Signature

None

StaliN98

Reply To Post Reply & Quote

Posted at: 2/1/09 10:32 AM

StaliN98 LIGHT LEVEL 10

Sign-Up: 07/27/07

Posts: 690

Oh yeah!

doi

All times are Eastern Standard Time (GMT -5) | Current Time: 04:19 AM

<< 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!