Nikhilesh,

Concerning your first point, most of the 3D model loaders (including the
one we wrote for 3DS) use "TextureLoader" to read in the texture
graphics.  TextureLoader automatically adjusts for the 2 to the Nth
power requirement.

- John Wright
Starfire Research

Nikhilesh Haval wrote:
>
> Hello,
> I have been working on java3d for my dissertation project and I have some
> observations and questions.
>
> 1. I am using Sun's VRML Loader to load the textured geometry. In the
> documentation it says that the textures have to be of 2 to the power n, but
> if i use the VRML loader to read the textured geometry, any size of texture
> works. No exceptions are thrown. Since the objective of my dissertation is
> not to go into the detailed working of j3d and time being on very short
> supply, I decided not to invest time in this issue, but all the same I am
> quite curious about this.
>
> 2. In my application, I have used the keyNavigatorBehavior for navigating. I
> also have some bounds defined around each object which are used to identify
> the visual object and display the relevant text and image in other jpanels.
> When the view bounds intersects the bounds of the visual objects, my view
> gets thrown off (actually it accelerates very fast in the direction of
> travel before the two bounds intersect). What is the reason for such a
> behavior? Do I need to use threads to finish executing all the key stroke
> events and then start the process of retrieving other data and display the
> contents in other panels?
>
> 3. This one is a major problem: As already mentioned before, my application
> displays relevant image in another panel after identifying a visual object
> in the canvas3d. I found that the display of  a small image (after it is
> completely available in the buffer) is slow. When the mouse is double
> clicked on the small image, a new jframe+jpanel opens displaying a bigger
> image. This is even slower. It hardly takes time to load the image (I check
> this with system.out) but it takes more than 8 seconds, sometimes even 15
> secs, to display (paint) the image (576 x 432 pixels ~160kb jpg) on the
> JPanel. This happens only for the first time. Media tracker gives the same
> problem. I tried to locate the source of the problem by creating a small
> test file (which does not use any j3d) to check the image loading time. This
> test file works fine with jdk1.2.2 but not with jdk1.3.0 or higher. First my
> suspicion was on the machine I was using (probably corrupt windows files).
> So I formatted the disk and reinstalled windows and even updated the video
> card drivers. Second suspicion was corrupt download of jdk installation.Yet
> the problem of slow image display persists. Finally I tried Image Icons
> inside JLabel and it shows images well under a second. Since this is only a
> work around and not a solution to the problem, this question haunts me. I am
> using quite a good configuration machine(P-III 450MHz, 16MB Riva TNT, 256MB
> RAM, Win98, jdk 1.3.1 and j3d1.2.1_02) so it could not be the processor
> problem. Has anyone faced a similar problem? What could be going wrong?
>
> Thanks for any comments, directions.
>
> Nikhilesh
> Just landed on the planet called "Programming"!
>
> ===========================================================================
> 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