News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

A little Rugby

Started by kevin, February 21, 2006, 11:18:16 PM

Previous topic - Next topic

kevin

Here's a bit of tech demo i've been working on.  Uses the same engine (sorta) as the 2D platformer in 3D camera tech demo from the other week.

Runs pretty good, even on the crusty old duron



Videos

Watch on youtube






Download

 2.5 Rugby Source



Ian Price

"It's goooooooooooooooood!" Reminds me of John Madden's on Megadrive. :)

I presume the pitch is accidently incorrectly orientated? (the numbers kind of give that away :P).

Anyway, rugby [shudder] reminds me of cold, wet winter days when I was still at school - days when rugby boots were attracted to a boy called Dale like pins to a magnet...  :o

I can certainly see this folded plane goodness being used a fair old bit in the future. :D
I came. I saw. I played some Nintendo.

kevin

Yeah the ground is back to front, will have to fix that i guess

 Anyway, here's some nicer player art.  Pretty :)

Ian Price

Excellent stuff, but I thought you'd be more into Oz rules football than rugby.

Speaking of which, are there actually any rules in Oz rules football? :P
I came. I saw. I played some Nintendo.

kevin

#4
QuoteExcellent stuff, but I thought you'd be more into Oz rules football than rugby.

True, I can't say I'm a rugby fan. To be honest, I've hardly even seen it.

Anyway, we've been approached to assess the viability of producing a small rugby game in PB.  From the design doc required, it certainly seems viable.  I dunno if it'll go any further though..

QuoteSpeaking of which, are there actually any rules in Oz rules
football?

Apart from don't die ? Erm, not really :)

Ian Price

LOL - That's what I thought :P
I came. I saw. I played some Nintendo.

Digital Awakening

So if you do die you get some penalty? ;)

Anyway, that looks awesome :) Would it be hard to set up stuff like 3D walls?
Wisit my site at: DigitalAwakening.net

kevin

Yeah, we've just been talking about that.   Going to throw in some mock up art and see how it'll look.  It should be fine on the far end, and with a little tinkering it should be ok left/right edges also.   The issue is that PB doesn't have a perspective correct texture mapping.  Since it was never designed to do such things.

The geometry in the world actually represents a 3D scene, but the output relies upon some fixed assumptions to make the illusion work.  The primary assumption is that the camera doesn't rotate. Which is what they want apparently.    In can change height and tilt forward and back. But that's about it.  Anything else would break it anyway.. :)

kevin

More WIP Screen shots with much nicer art work

Have added

 - goal posts
 - far stadium
 - alpha player shadows
 - alpha blended hud

Digital Awakening

This would be kinda cool to use for Archon Fields in the future.

I was thinking though, what about mouse interaction with these kinds of 3D planes? Would be nice it there where commands that check a 2D point "collision" with the 3D plane.
Wisit my site at: DigitalAwakening.net

kevin

QuoteI was thinking though, what about mouse interaction with these kinds of 3D planes?

  Above is just good old fashion 3D geometry.  The viewer can view it from any angle/position you like.  However, in this case because the camera doesn't need to rotate,  i've translated the field into a list of rectangular quads.    Since the quads are not square and PB doesn't support perspective texture mapping the illusion is lost if the viewer attempts to view the scene from an arbitrary angle.  But If the viewer looks straight ahead the scene retrains the perspective illusion.

 However if the field was translated into a list of smaller square quads, you could view it anyway you liked.  There's a few exceptions though, the main one is clipping.   Since the current PB scene buffer/camera solutions only consider the uniform Z of any captured object, there's no provision for clipping the surface against the near/far planes.  So surface can't be partly in front/behind on the camera. There either in front or not.


QuoteWould be nice it there where commands that check a 2D point "collision" with the 3D plane.

 I assume you mean checking a ray against the geometry.   Which would be needed for picking polygons from a camera view say.

kevin

Colourizing  Player Sprites

In this pic i'm  test a method for colourizing a players uniform via code. Seems to work ok :)

Draco9898

#12
wow, how's that work?
do you just look at a series of colors on the players shirtsthen create different player images for every colour?
DualCore Intel Core 2 processor @ 2.3 ghz, Geforce 8600 GT (latest forceware drivers), 2 gigs of ram, WIN XP home edition sp2, FireFox 2.

"You'll no doubt be horrified to discover that PlayBasic is a Programming Language." -Kevin

Digital Awakening

QuoteI assume you mean checking a ray against the geometry.   Which would be needed for picking polygons from a camera view say.

Yeah, that's pretty much all my post was about. Any rays planned?
Wisit my site at: DigitalAwakening.net

kevin

QuoteYeah, that's pretty much all my post was about. Any rays planned?

 Yes, once more 3D-ism's are introduced (primarily a internal mesh format for starters) we can look at building 3D intersection functions in.