Skip to main content

Poor performance / low frame rate

5 replies [Last post]
csergiu77
Offline
Joined: 2005-02-06

Hi

Well I have a scenegraph with some objects imported
from vrml files and a lot of boxes (1200 Box objects)

So when I move the view (camera) to see my model
when i pass near the boxes i have a very low frame rate
3 ,4 ,5 max.

When I don't include the boxes into my scenegraph
i get a better frame rate 15 16 17 max.This scene contains about 30 objects loaded from vrmk file.

apx. 1000 boxes are so hard to render?
they are grouped together like in a container terminal.

what can cause this?
is this scenegraph to large?

The computer is very good 2Gb DDRAM, a very good graphic card (128 Mb).

Please answer to me or give a hint

Regards

Cristian

PS. I have also noticed that when I tried the well known java3d HelloUniverse program with 1000 colored cubes it was very slow when i resized the window?

Do i do something wrong or java3d is slow ?

Thx again

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nikolai
Offline
Joined: 2003-06-10

> Actually VRML loader adds complexity to scenegraph.
> It adds a transform (TG) for every single shape in
> in scene,

Why would it do that, this is legal:

[code]Group {
children [
Shape {
}
Shape {
}
]
}[/code]

Alan Hudson

java3d-interest@javadesktop.org wrote:
>>Actually VRML loader adds complexity to scenegraph.
>>It adds a transform (TG) for every single shape in
>>in scene,
>
>
> Why would it do that, this is legal:
>
> [code]Group {
> children [
> Shape {
> }
> Shape {
> }
> ]
> }[/code]
Depends on how you do it. Xj3D needed to add SharedGroups around each
shape so DEF/USE and scripting would work correctly. In general
VRML/X3D scripting requirements force you into a very dynamic scenegraph
structure. We've considered making a special loader path that squashed
a lot of that out. The beginnings are in the codebase but we haven't
had the time to deal with it.

--
Alan Hudson

President Yumetech, Inc. www.yumetech.com
President Web3D Consortium www.web3d.org
206 340 8900

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

damonhd
Offline
Joined: 2005-10-23

Hi,

I'm happily using ~20,000 boxes on a 1GHz laptop, each box with its own transform (see http://gallery.hd.org/_3D/index.jsp for JWS app and source/docs), but I have found it essential to trim the visible/rendered area to keep performance OK.

Rgds

Rgds

Alessandro Borges

Actually VRML loader adds complexity to scenegraph.
It adds a transform (TG) for every single shape in scene, and in your case it
counts to slow down whole scene performance.
You can convert your vrml to Wavefront Object and load it. Each object in your scene will become a Shape3D, already transformed for target position.
There are several conversors available in the net. I recomend Deep Exploration (no free, but has trial).

java3d-interest@javadesktop.org escreveu:
Hi

Well I have a scenegraph with some objects imported
from vrml files and a lot of boxes (1200 Box objects)

So when I move the view (camera) to see my model
when i pass near the boxes i have a very low frame rate
3 ,4 ,5 max.

When I don't include the boxes into my scenegraph
i get a better frame rate 15 16 17 max.This scene contains about 30 objects loaded from vrmk file.

apx. 1000 boxes are so hard to render?
they are grouped together like in a container terminal.

what can cause this?
is this scenegraph to large?

The computer is very good 2Gb DDRAM, a very good graphic card (128 Mb).

Please answer to me or give a hint

Regards

Cristian

PS. I have also noticed that when I tried the well known java3d HelloUniverse program with 1000 colored cubes it was very slow when i resized the window?

Do i do something wrong or java3d is slow ?

Thx again
[Message sent by forum member 'csergiu77' (csergiu77)]

http://forums.java.net/jive/thread.jspa?messageID=97916

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

---------------------------------
Yahoo! Messenger com voz - Instale agora e faça ligações de graça.
[att1.html]

csergiu77
Offline
Joined: 2005-02-06

Thank you very much for your answer.

Maybe it will improve a little the performance if i convert from WRL to OBJ but the problem was added
by the large number of Box objects.
Without WRL files included in the scenegraph the performance was still poor because I have a lot of Box objects.

Box objects are so exepnsive to render?

Regards Cristian