00:00
00:00
Newgrounds Background Image Theme

OrangeWedge just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

3D Game Engine

4,968 Views | 61 Replies
New Topic Respond to this Topic

3D Game Engine 2005-05-21 19:07:14


For whom it may concern - don't say that I should've put this in the Programming Thread, because although this has to do with programming, it's a question about flash.

k, I just began scripting. I will not go into detail, but just to let you know that I'm not a noob (html, css, xhtml, as, php, cgi (w/ perl), js, mysql, apache...) those are the languages that i either know, or am learning. actually mySQL and apache aren't scripts, but...i guess they go under the PHP category.

anyways, now that you know my skill level, i have a simple question.

Is there any 3D engine that I can script via ActionScript 2.0, and NOT C++?

I want to make a 3d engine in actionscript, if possible, not c++. I know that this is a stupid question, but please answer it (i am only 12 yrs old :-P)

Response to 3D Game Engine 2005-05-21 19:14:39


Check out my sig...I'll admit the tutorial is kinda crappy and it might not be TOTALLY understandable but...the engine works...really well...and you can do a hell of alot of stuff with it (anything you would do in Swift 3D or something like that.


BBS Signature

Response to 3D Game Engine 2005-05-21 19:20:03


well, aztec, contact me, and then you can explain it more. once i get to understand it, i will give credit to you in a lot of stuff

...also, i will just learn how to do it in c++. isn't the c++ program freeware?

thanks for the help.

Response to 3D Game Engine 2005-05-21 19:20:43


This is free...assuming you have flash...which I already know you do.


BBS Signature

Response to 3D Game Engine 2005-05-21 19:25:31


no - im not talking about ur thing...

im asking if the c++ scripting program is freeware.

Response to 3D Game Engine 2005-05-21 20:58:10


where is a good 3d maker?????????????????

Response to 3D Game Engine 2005-05-21 22:38:36


A 3D game engine is possible. It's my current game project right now, and all the 3D scripting is done. However, just because you know a few web languages doesnt mean you can code a 3D engine. It requires a VERY good knowlege of 3D vector maths, most importantly the use of trig. Then you need to apply it to AS in a way that doesnt crash the Flashplayer, since this kind of thing is pretty intensive. Even then, you have to build a game with it, and it cant be 3D in the same way as C++ can, it can only handle a certain number of polygons, not enough to make a varyt simple character + environment even.

In short, its possible, but very tricky. I've been focusing on 3D AS for over a year now, and taken qualifications in maths + further maths, and only now am I ready to convert that knowlege into a game.

Good luck if you want to keep at it!

Tom

Response to 3D Game Engine 2005-05-21 22:54:28



In short, its possible, but very tricky. I've been focusing on 3D AS for over a year now, and taken qualifications in maths + further maths, and only now am I ready to convert that knowlege into a game.

Good luck if you want to keep at it!

Tom

this has nothing to do with this post but TOM UPDATE THE SFB FAN ART!!!!!

Response to 3D Game Engine 2005-05-22 00:59:05


At 5/21/05 10:38 PM, The_Super_Flash_Bros wrote: A 3D game engine is possible. It's my current game project right now, and all the 3D scripting is done. However, just because you know a few web languages doesnt mean you can code a 3D engine. It requires a VERY good knowlege of 3D vector maths, most importantly the use of trig. Then you need to apply it to AS in a way that doesnt crash the Flashplayer, since this kind of thing is pretty intensive. Even then, you have to build a game with it, and it cant be 3D in the same way as C++ can, it can only handle a certain number of polygons, not enough to make a varyt simple character + environment even.

In short, its possible, but very tricky. I've been focusing on 3D AS for over a year now, and taken qualifications in maths + further maths, and only now am I ready to convert that knowlege into a game.

Good luck if you want to keep at it!

Tom

I cant wait to see what you come up with, cause I'll never be able to make 3d in flash. What can I use to make shockwave games?? Is there anything free? 3d's max is the only one I know but its too expensive.

Response to 3D Game Engine 2005-05-22 11:34:35


You cannot make a 3D engine with Flash,not yet though.Maybe in Flash 8(probably Actionscript 3)you will be able to make a 3D engine.With Actionscript you can only make fake 3D engine,not like in Counter strike and all those 'real' games.
With C++ you can make 3D engines,but it is very hard..


BBS Signature

Response to 3D Game Engine 2005-05-22 11:46:47


At 5/21/05 10:38 PM, The_Super_Flash_Bros wrote: Tom

Show off...


Sup, bitches :)

BBS Signature

Response to 3D Game Engine 2005-05-22 11:50:26


At 5/21/05 10:38 PM, The_Super_Flash_Bros wrote: A 3D game engine is possible. It's my current game project right now, and all the 3D scripting is done. However, just because you know a few web languages doesnt mean you can code a 3D engine. It requires a VERY good knowlege of 3D vector maths, most importantly the use of trig. Then you need to apply it to AS in a way that doesnt crash the Flashplayer, since this kind of thing is pretty intensive. Even then, you have to build a game with it, and it cant be 3D in the same way as C++ can, it can only handle a certain number of polygons, not enough to make a varyt simple character + environment even.

In short, its possible, but very tricky. I've been focusing on 3D AS for over a year now, and taken qualifications in maths + further maths, and only now am I ready to convert that knowlege into a game.

Good luck if you want to keep at it!

Tom

PK: Game, that's it. I've been waiting for ages. Dim, Dan, John, and Richie. You guys are awesome. Anyway, I know that knowledge of some web languages will not help, so I guess I will just buy a C++ Compiler, and read this book I got on C++ 3D Game Engines. Maybe if you could help with some problems I may encounter...?

Well, my email is punkies04@hotmail.com

I know yours from your site. I might email you for help, if I come across problems.

Thank you, all!

Response to 3D Game Engine 2005-05-22 17:30:04


At 5/22/05 11:46 AM, DEADSiM2 wrote:
At 5/21/05 10:38 PM, The_Super_Flash_Bros wrote: Tom
Show off...

"Its hard to be humble when you're as great as I am" - Muhammed Ali

:P

Tom

Response to 3D Game Engine 2005-05-22 19:27:08


At 5/21/05 10:38 PM, The_Super_Flash_Bros wrote: A 3D game engine is possible. It's my current game project right now, and all the 3D scripting is done. However, just because you know a few web languages doesnt mean you can code a 3D engine. It requires a VERY good knowlege of 3D vector maths, most importantly the use of trig. Then you need to apply it to AS in a way that doesnt crash the Flashplayer, since this kind of thing is pretty intensive. Even then, you have to build a game with it, and it cant be 3D in the same way as C++ can, it can only handle a certain number of polygons, not enough to make a varyt simple character + environment even.

In short, its possible, but very tricky. I've been focusing on 3D AS for over a year now, and taken qualifications in maths + further maths, and only now am I ready to convert that knowlege into a game.

Good luck if you want to keep at it!

Tom

Heh...I'm a big step ahead of you. I'm currently working on a simple 3D car racing game. It would have the same gameplay as any modern platform racing game. I already have the engine done...I have one of the models I'm going to use, and I am going to script the track really soon. The actual code for the game part of it is almost identical to that of a 2D overhead racing game, so that's practically a cut and paste. The longest part will probably just be tweaking everything and making sure things fit together just right and gameplay runs well. By the way just incase anyone is wondering, doing 3D in flash is incredibly low file size. The entire 3D engine plus the car model is like 7 kb's all together. The full game would be about 30 kb without sound but I'm obviously using sound so that will probably bump it up to like 500-1000 kb's. Also, I find that it runs smooth as long as you keep the poly count to under a thousand or so.


BBS Signature

Response to 3D Game Engine 2005-05-22 20:02:54


interesting, aztec. i'd like help without c++ pls

Response to 3D Game Engine 2005-05-22 20:38:54


how do i draw a better sword i used macromidea fire works i just started tell me plz

3D Game Engine

Response to 3D Game Engine 2005-05-22 21:39:40


theres no secret to drawing a good sword ecxept not being drunk when you draw :P

Response to 3D Game Engine 2005-05-22 23:35:07


I've been working on my engine for the past 1.5 years...I hope to finish a game I've built around it by the end of this summer...or maybe tonight...who knows... depends on wether I want a full game or just a demo. I'm thinking it would be quite feasible to do a game like starfox for the original snes if one settles for preanimated backgrounds. Starfox for the 64 might be possible with an insane amount of time devoted to making each object in every level 3d.
though I do have a sweet ship already modeled.

aztec did you ever get the layering issue resolved on the surfaces of that cube in your demo?

and does anyone know anything about "texturising" fills of shapes one draws in actionscript? thats a very crude way of phrasing it...but i mean something like the triangle on demo number 8 at http://www.actionscript.cl/
if all else fails I will send Lifaros an email...but I'd be kind of embarrassed asking him for his source code.

Response to 3D Game Engine 2005-05-23 06:31:14


At 5/21/05 07:07 PM, Insignificance wrote: (i am only 12 yrs old :-P)

Wow,I am 12 too and I only know AS ): When did you learn all those programming languages and where?!


BBS Signature

Response to 3D Game Engine 2005-05-23 07:23:43


At 5/23/05 06:31 AM, Dark_Toaster wrote:
At 5/21/05 07:07 PM, Insignificance wrote: (i am only 12 yrs old :-P)
Wow,I am 12 too and I only know AS ): When did you learn all those programming languages and where?!

well, i got flash on christmas, and after about 3 months of flash, i started programming, so from march through present is how long it has taken. they really aren't that hard after you learn them. try some books. that's how i learned. also, i'm sure that people like tom from the super_flash_bros are willing to help :P

Response to 3D Game Engine 2005-05-23 08:28:54


At 5/21/05 07:25 PM, Insignificance wrote: no - im not talking about ur thing...

im asking if the c++ scripting program is freeware.

C++ isn't scripting it's hardcore programming

Response to 3D Game Engine 2005-05-23 08:41:51


At 5/22/05 11:35 PM, DeepBlue wrote:
and does anyone know anything about "texturising" fills of shapes one draws in actionscript? t

My new engine has complete and full texturizing, it can texturize bitmaps OR flash shapes (.swf) you just specify the path and the object and the texture is applied, however at this state the vector texturizing is really slow,

p.s.
tom, you don't have to know vector maths at all, you can just represent your lines with 3 equations (xy,xz,yz) and your planes as ax+by+cz+d=0 instead of doing vectors ((x,y,z)+t(a,b,c) nad (x,y,z)+t(a,b,c)+s(d,e,f))

I only switched to vectors lately, overall I still have to eventually convert everything to virtual points, vecrors just have a scalar length value too, so they're easier to use when initiallized properly,

the biggest problam is perspective, triangles were the first step in my way, cubes and boxes are rather easy to make, I can also do circles and elipses (which took me alot of time) the elipse texturizing is horrible (still needs alot of work), right now I'm starting to parse non-premitive shape, very annoying math :P

oh well, I've got a long way, I sure do hope the new flash player will help speed my 3d up

Response to 3D Game Engine 2005-05-23 09:36:08


Want to make a really good 3d engine ??? Forget about flash and code in C or C++ . Use openGL for teh 3d rendering. Its not only easier tahtn Direct3d but its better. Use the GLUT libs. to simplify ur work.
Some ppl would say : dont use C ...... well, Quake3 is coded in C and its the best 3d engine ever.
Want to saty with flash.....well...as someone said: u can make some pseudo 3d engines...but ull never be able to do some multitexturing nad lots of other stuff.

Response to 3D Game Engine 2005-05-23 09:47:39


Yeah, I think we're all agreed that pretty much any standard programming language other than AS is more suitable to making a 3D game.

However, my reasons for making the game in Flash are mainly audience based. If made in flash, I can deliver my game to an audience of millions through NG. Then I finally might be recognised as a good ASer (my last game on the portal was Nightmare, and the scripting is laughable)

I guess there's the element of challenge there too. To do what is so rarely done in the flash world, and by myself with all original code, thats a fairly hefty challenge. I enjoy a good challenge.

Oh, and Inglor, I'm toying with the idea of making my GoG minigame in 3D. Maybe a good old hack'n'slash...

Tom

Response to 3D Game Engine 2005-05-23 09:52:16


At 5/23/05 09:47 AM, The_Super_Flash_Bros wrote: Yeah, I think we're all agreed that pretty much any standard programming language other than AS is more suitable to making a 3D game.

Since when is AS a standart programming language? last time I checked it was a substandart scripting language ;) still alot more fun then most others to construct in,

Then I finally might be recognised as a good ASer (my last game on the portal was Nightmare, and the scripting is laughable)

Dude, regardless of "Nightmare" (which wasn't badly scripted) you're still undoubly one of the best scripters on newgrounds , I think that every single flasher here agrees on that. I'd like you to know that if you ever feel like selling any of your games, Games of Gondor would probebly buy them ;)

I guess there's the element of challenge there too. To do what is so rarely done in the flash world, and by myself with all original code, thats a fairly hefty challenge. I enjoy a good challenge.

Yea, that's why I started meddling with 3d in flash too :)

Oh, and Inglor, I'm toying with the idea of making my GoG minigame in 3D. Maybe a good old hack'n'slash...

You won't dare ;)
3d minigame> (anything anyone else can come up with)

Inglor

Response to 3D Game Engine 2005-05-23 10:02:57


I am so gonna learn scripting 3D when i'm done with my latest project...
im curently using Swift 3D for my 3D works, but a good script to make something in 3D will certenly boost my ego a bit...

Response to 3D Game Engine 2005-05-23 12:10:03


my 3d engine is 30kb so far, im working on adding collision into it, atm it has perspective, frustum culling, back face culling, clipping (to front and back plane of frustum and to edges of screen) you can also have also set polygons alpha value. ive just finished adding triggers into the engine for things such as automatic doors and lifts, along with the way ive used them in my sample which is that the level in it is split into sections with sets of triggers inbetween so that the sections appear and dissapear appropiately allowing for much much larger levels with no speed loss when used correctly. oh yeh, cameras ofcourse and because of the clipping, you can fully navigate objects and rooms without any visual problems with objects or plygons moving behind the camera and im thinking of adding basic directional lights into the engine instead of having the camera as a directional lightsource for the flat shading. ive been working on it for about a month now and im only 14 so im pretty chuffed with it.

Sample with fills

Sample as wire mesh

the second one shows how the triggers are being used.

Response to 3D Game Engine 2005-05-23 12:23:51


heavy and lacks hit tests, other then that, good work

Response to 3D Game Engine 2005-05-23 12:44:07


oh wait, its 35kb now, 1112 lines so far with comments, ~900 without comments

Response to 3D Game Engine 2005-05-23 12:55:20


i would like some help, myself, pls :P