Hmmm...interesting.

What I'm hearing is that it would be really cool if the XJ3D package could be
configured to work just as a loader of models (with none of the
event/interactivity stuff).  That way, I would think you could get much more
efficient models because they could be optimized.  You would not have to have a
branchgroup over everything like there is now.  Also you would not have to
start up the boatload of event stuff that's currently required.

Anyway, that's my enhancement request :)

Mike


Justin Couch wrote:
Michael P. McCutcheon wrote:

I'm now geting 60 FPS by simply stripifying the geometry returned by the
X3D loader.

There's a good reason for this - you are only sending half the data over
that was originally generated. The stripification process would give you
maybe a 20% speed increase, but certainly not 100%. Have a look at what
your code is doing - it only sets coordinates and generates normals. It
completely ignores the texture coordinate and per-vertex color
information that is supplied. If you're using a lot of geometry, cutting
the amount of data you're sending across the bus will be big performance
factor, and that's exactly what you've done here. So, really, there's
nothing particularly magical in what you've done. I bet that if you went
into the code and commented out the bits that were setting the texCoord
and color information that you would see a fairly similar level of
performance change.

Because VRML/X3D is dynamic and users can stuff around with the scene
graph at any time, we have to generate texture coordinates all the time,
as we don't know what they're up to. We cop some performance penalty
because of this  and there may be some optimisation that could be done,
but for now we have to assume the worst always.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                              - Greg Bear, Slant
-------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to