Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Sims style game

Sims style game

2004-01-20       - By Neto

 Back
Reply:     1     2     3     4     5     6  

There is an undocumented feature. There are 3 extra model.visibility values:
#front_nodepth, #both_nodepth, #back_nodepth. A model with _nodepth will
read the Z-buffer before being drawn, but will not write to it.

The result is: any model that is drawn after a _nopdepth model WILL be drawn
on top of it, even if it's positioned behind it. Only models that were drawn
before the _nodepth model will occlude it, because they already wrote to the
Z-buffer. The models are drawn in the exact order they are found in the
group("world").child list. If a model contains children, all children will
be drawn in the order they are in the list, and only after all children have
been drawn, the 3D xtra will render the next model in the root hierarchy. So
you can use groups and parent-child setups to control the scene drawing
order.

In a sims-like game, you'd need to have all 3D versions of the objects with
the _nodepth, and render them all before everything else. You'll need to do
a distance-based sort, to keep the drawing order accurate (but if you don't
allow camera rotation - only scrolling - you only need to do it once). Then
you draw the 2D objects (using camera-aligned planes, since backdrops will
ALWAYS be rendered before everything else) and the 3D objects.

-- -- Original Message -- --
From: <webmaster@(protected)>
To: <dir3d-l@(protected)>
Sent: Tuesday, January 20, 2004 3:40 PM
Subject: Re: [Dir3d-l] Sims style game


> Whatever they did with the Sims (I'm sure they used their own proprietary
> engine), the game runs in software mode and will run pretty fast on even
the
> crappiest gfx card imaginable. Its pretty impressive.
>
> Neto wrote : "use the nodepth trick to have the background 3D objects not
> render"...
>
> Neto, what do you mean by having background objects not render?
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ------
> This mail sent through IMP: http://horde.org/imp/
>
> __ ____ ____ ____ ____ ____ ____ ____ ____ ____
> Dir3d-l mailing list
> Dir3d-l@(protected)
> http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
>

__ ____ ____ ____ ____ ____ ____ ____ ____ ____
Dir3d-l mailing list
Dir3d-l@(protected)
http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l