Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsShowcase → More progress
More progress
2008-04-13, 8:50 PM #1
I'm finally at a point where I feel like I can show this to people. I've spent the last few weeks re-coding my old 3d app to use a much better data structure and switching from vector rendering to per-pixel rendering.

The upsides: allows for smooth shading, texture mapping, normal mapping, etc.

The downsides: much slower, at least right now. I'm working on optimizing the code and making some changes, so hopefully this will improve in the future.

As of right now I also have texture mapping implemented, I'll hopefully post a demo soon.

In case anyone cares, the model is around 1500 polys:
http://www.markvandeweghe.com/flash/engine1.html
2008-04-13, 11:21 PM #2
looks pretty sweet.. I've never seen this done before (besides your last one), 3d games at the tip of your browser
"Nulla tenaci invia est via"
2008-04-13, 11:41 PM #3
There are several 3D libraries for Flash, but none of them will ever be that fast due to the fact that it's using software.

Shockwave, on the other hand, can do real 3D acceleration.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2008-04-14, 5:53 AM #4
Originally posted by Emon:
There are several 3D libraries for Flash, but none of them will ever be that fast due to the fact that it's using software.


Very true. This project has been constantly evolving, mostly because I keep thinking of new things I can try out with it. I don't have big plans for it, it's mainly a chance for me to get some practice working with and implementing some of the basic 3D functions handled by hardware.
2008-04-14, 5:55 AM #5
me jane u tarzan
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2008-04-14, 8:41 AM #6
is that as2 or as3?
[01:52] <~Nikumubeki> Because it's MBEGGAR BEGS LIKE A BEGONI.
2008-04-14, 8:48 AM #7
Originally posted by mb:
is that as2 or as3?


Actionscript 3. I can't even begin to imagine how slow it would run on 2...
2008-04-14, 3:17 PM #8
Well I don't know what you do for a living, but AS3 developers are few and far between. I suggest looking into that
[01:52] <~Nikumubeki> Because it's MBEGGAR BEGS LIKE A BEGONI.
2008-04-16, 7:13 AM #9
Just because I was bored last night...

Environment mapping:
http://www.markvandeweghe.com/flash/engine2.html

It's not 100% accurate yet, this is more of a proof of concept that it's possible to implement.
2008-04-17, 7:59 PM #10
gj, vahngendhghwe!

The env mapping is pretty impressive
2008-04-17, 8:41 PM #11
Originally posted by mb:
Well I don't know what you do for a living, but AS3 developers are few and far between. I suggest looking into that


:colbert:


also enviro mapping looks sweet
[01:52] <~Nikumubeki> Because it's MBEGGAR BEGS LIKE A BEGONI.
2008-04-17, 9:43 PM #12
What kind of framerate could you get with less detailed models and not as much effects
"Nulla tenaci invia est via"
2008-04-18, 6:11 AM #13
Originally posted by Z@NARDI:
What kind of framerate could you get with less detailed models and not as much effects


I'll get back to you on that in a day or two. I actually spent most of last night working on performance and made a fair amount of progress, but there are still a few things I'd like to do.

Originally posted by mb:
Well I don't know what you do for a living, but AS3 developers are few and far between. I suggest looking into that


First of all, are you serious? For some reason I thought AS3 developers were a dime a dozen. Secondly, I would love to work in this field, but I have yet to find (or really look for) a job in a good location that pays as well as my current job. Any suggestions?
2008-04-18, 5:36 PM #14
I am serious. AS3 developers are in high demand.

If youre looking around, i know for a fact that firstborn ( http://www.firstbornmultimedia.com/ ) and RG\A ( http://www.rga.com/default.htm?v=1.0 ) are looking for coders.

Fantasy interactive are pretty cool, but Im not sure if they're looking right now. http://www.fantasy-interactive.com/index.html
[01:52] <~Nikumubeki> Because it's MBEGGAR BEGS LIKE A BEGONI.
2008-04-18, 10:09 PM #15
mb: Thanks for the links...I'll look a bit further into this when I get a chance.

In the meantime, the results from a fair amount of optimization and code re-working:
http://www.markvandeweghe.com/flash/engine3.html

There are a few issues with culling at this point, those will be fixed soon.

If you guys are bored, I'd be interested in hearing what sorts of frame rates you're getting for this example as well as the basic specs of the computer you're running it from.
2008-04-19, 3:36 AM #16
Averaging around 10.5 on a Thinkpad T60 w/ 1.83 ghz centrino duo and 1.5 gb RAM
Dreams of a dreamer from afar to a fardreamer.
2008-04-19, 9:35 AM #17
I'm getting around 12 on a Dell Precision M60 1.5ish ghz and 1 GB ram.
"Flowers and a landscape were the only attractions here. And so, as there was no good reason for coming, nobody came."
2008-04-19, 11:05 AM #18
max out at 14 (avg probably 12-13) amd 3200+ 2.0ghz 2 GB ram
"Nulla tenaci invia est via"
2008-04-19, 11:06 AM #19
Averages 10 on my Core 2 Duo E4300 with 2 GB of RAM.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2008-04-19, 11:25 AM #20
8-17 usually around 13 on a 2 GHz Pentium M with 1GB ram
Warhead[97]
2008-04-19, 11:25 AM #21
Averages 10 on my Core 2 Quad Q6700 with 4 GB of RAM.
2008-04-19, 3:39 PM #22
Thanks for everyone's input so far...very helpful.

(un)fortunately, I already have a significant update. This one is getting much closer to my final performance goal with this project. If you don't mind, I'd be interested in people's fps with this one as well:
http://www.markvandeweghe.com/flash/engine4.html

:psyduck:
2008-04-19, 3:55 PM #23
No more bloom? :(
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2008-04-19, 4:00 PM #24
Originally posted by ECHOMAN:
No more bloom? :(


I have plans for that...but not until I get base performance to a point that I'm happy with.
2008-04-19, 5:23 PM #25
I get about 20-25 FPS
ᵗʰᵉᵇˢᵍ๒ᵍᵐᵃᶥᶫ∙ᶜᵒᵐ
ᴸᶥᵛᵉ ᴼᵑ ᴬᵈᵃᵐ
2008-04-19, 11:55 PM #26
It's hard to tell, i think i saw flashes of 20-40, but it's pretty well centered on 30, solidly.
Warhead[97]
2008-04-20, 5:47 AM #27
high 20s to mid 30s.

very nice refinement compared to the original.

(Core 2 2.4ghz, 2gb ram)
Sneaky sneaks. I'm actually a werewolf. Woof.
2008-04-20, 3:48 PM #28
Can't tell. Looks like it jumps from 18 to 35 or so. You should replace the counter with a short-term average.
2008-04-21, 8:04 AM #29
Originally posted by Jon`C:
Can't tell. Looks like it jumps from 18 to 35 or so. You should replace the counter with a short-term average.


Agreed. I didn't really need it when frame rates were lower, but with the performance updates it's getting harder and harder to tell what the numbers are.



ALSO, I've been trying to think up a name for this renderer. Not that I have huge plans for it, but I'm probably going to put a simple website/blog together at some point and release an API in case anyone wants it. What do you guys think of Silverback3D (taken from the current model). Good? Bad? Any other suggestions?
2008-04-21, 11:44 AM #30
Originally posted by BobTheMasher:
It's hard to tell, i think i saw flashes of 20-40, but it's pretty well centered on 30, solidly.


+1

Also, I like Silverback3D for a name. What do you think about testing an object with closer to 10,000 polys?
"Nulla tenaci invia est via"
2008-04-24, 5:39 PM #31
To keep this bad boy from dropping off the list...specular reflections:

http://www.markvandeweghe.com/flash/engine6.html
2008-04-27, 9:03 PM #32
Phong shading:
http://www.markvandeweghe.com/flash/engine9.html

Simple toon renderer:
http://www.markvandeweghe.com/flash/engine10.html
2008-04-28, 5:58 PM #33
Both lookin' good!
2008-09-13, 1:10 PM #34
Added:

* 3ds loader
* Faster/better environment mapping

Here's a demo with a few different models and rendering modes:
http://www.markvandeweghe.com/flash/engine13.html

I'm also planning on releasing an alpha version to the public in about a week, in case anyone here is at all interested.
2008-09-13, 1:33 PM #35
Can you make it so we can click and drag it to see it better rather than waiting for the model to finish its slow rotation? And once you let go of the mouse button, the rotations just resumes? That would be swank. :D
DO NOT WANT.
2008-09-13, 3:02 PM #36
This is becoming quite an impressive pure-Flash 3d software engine. Great job. Are there existing similar products on the market?
Dreams of a dreamer from afar to a fardreamer.

↑ Up to the top!