Google Groups Home
Help | Sign in
QuadArray with different image per face
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Melih Onvural  
View profile
 More options Apr 13, 7:15 pm
Newsgroups: comp.lang.java.3d
From: Melih Onvural <melih.onvu...@gmail.com>
Date: Sun, 13 Apr 2008 16:15:05 -0700 (PDT)
Local: Sun, Apr 13 2008 7:15 pm
Subject: QuadArray with different image per face
I have a QuadArray, and I can currently load a single image which
wraps itself over the entirety of the cube. I want a different image
on each face of the cube. I know that if I use mimap, then I can have
the layers necessary to have all of the images that I want to load,
but I have no idea as to how to present each face as its own image.
Any advice on this would be hugely appreciated. Thanks in advance,

--
Melih


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
PhoneixS  
View profile
 More options May 14, 5:31 am
Newsgroups: comp.lang.java.3d
From: PhoneixS <PhoneixSego...@gmail.com>
Date: Wed, 14 May 2008 02:31:36 -0700 (PDT)
Local: Wed, May 14 2008 5:31 am
Subject: Re: QuadArray with different image per face
May can be do with the texture coordinates. See the use of
setTextureCoordinates of any geometry.

It is "public void setTextureCoordinate(int texCoordSet, int index,
float[] texCoord)" where you use texCoordSet to select the texture,
index is the vertex that you are defining and texCoord is the
coordinate in the image. You can use the setTextureCoordinates method
to set all vertex of the same face in one step.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google