Game Development Community

An Idea...but i iz dumb :(

by Matt Laurenson · in General Discussion · 08/02/2002 (11:18 am) · 4 replies

Ok..here goes...

First off id like to point out that i have little know-how when its comes to Direct3D & the rendering pipeline...in fact i have a very poor understanding of 3D & maths...jst thought id warn u before i start...

I know that the hardware can light & shade a single 3D enitiy like a Cube or any other single mesh object...
I also know that a scene is usually constructed from many objects that are not connected...and that in this
situation the lighting of the objects does not take into account neighbouring objects....bla bla...im gonna get to the point in a minute...

I also believe that the hardware that renders geomtry to the screen requires that each face have at least three points...forming a triangle...(they start to laugh :o( )

right..now im done stating the obviouse...
I was wondering if it is possible to join all the mesh objects to the scene...by creating a line for each
object + connecting the object to the landscape via this line...maybe the connection would have to dynamically upadted everyframe to prevent pulling...
If this is possible..the line should be invisible - because there are not enough points to form a traingle +
the objects should cast shadows onto the landscape..because they are now part of the landscape mesh...
(Objects that require opacity maps to define there shape would not benefit from this though...like tree tops)

i dunno perhaps thats really dumb....tell me what you think + please dont get too offended by my crappy
understanding........


(Press Alt-E while playing Tribes2...hehe)

#1
08/03/2002 (4:07 am)
You'll notice that some object DO cast shadows on the landscape.

You dont acually "join" the two objects (thing + landscape) up, what you do is "project" the object silouette onto the landscape.

There are a few different ways of doing this using different hardware and giving different effects.

Torque currently does a reasonable job at this for player models, for most other models its switched off.

Phil.
#2
08/03/2002 (5:33 am)
Thanks Phil...
But i already knew that...i would like someone
tell me if my method would work - cuz the calculation
would be simpler.....join object via dynamic line must
be quicker than calculating shadow cast or duplicating
the object & forcing it black.......
can anyone help? i havent got the know how when it comes
to 3D.....

cheers..
#3
08/03/2002 (9:07 am)
Hardware lights don't do self shadowing, so your method of 'joining' objects will _not_ work.
#4
08/03/2002 (9:45 am)
K..thanks...jst
wanted to know out of interest.. :)
+sorry for posting this dumb idea :/