Advertisement Jump to content


This topic is now archived and is closed to further replies.


Need help Java3D

This topic is 5429 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok I realise there might not be many people here who know anything about Java3D cos it is kinda specialized but i''ll try neway. Basically i''m following the texturing tutorial that is provided on the sun website but am getting an error with a section of their code.
1. TextureLoader loader = new TextureLoader("stripe.jpg", this);
2. ImageComponent2D image = loader.getImage();
3. Texture2D texture = new Texture2D();
4. texture.setImage(0, image);
5. Appearance appear = new Appearance();
6. appear.setTexture(texture);
I get an error on lines 4 and 6 saying that an indentifier is expected and the ^ points to the first bracket of the method in both cases. Does anyone have any insight into this????

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!