|
Hi Dean,
I think your problem probably comes from the lack
of lighting in your virtual world. If you don't have any lights then try
adding one. Suns Java3D tutorial chapter 6 covers lights pretty
good.
Here is an example for addition of basic ambient
lighting to BranchGroup root
/* add ambient lighting to the scene
*/ AmbientLight lightA = new
AmbientLight(); lightA.setInfluencingBounds(new
BoundingSphere()); root.addChild(lightA);
Check out other lights in the API as well,
point lighting is very cool.
Hope this helps,
Stewart.
----- Original Message -----
Sent: Tuesday, November 02, 1999 11:13
PM
Subject: [JAVA3D] Loading in
textures
I am trying to load in a VRML file or 3DS file that have
textures attached to it. So far I have been unsuccessfull in getting the
textures to show up in my virtual world. I don't know if I have to do
any additional work or if I rely on the loader to do all the necessary work to
allow the textures to show. My textures are located in the same
directory as my VRML/3DS file. And I have verified, in the VRML file,
that the specification for the texture file is correct. Can anyone help
me with this problem? Thanks very much for your time.
Dean Keeler
CNC Connection Corp
P.S. Ed, thanks for you suggestions regarding moving a
manipulating a view. I am currently trying to get it to work, but have
not been successfull. Any other suggestions is appreciated.
|