Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - SDD1965

#1
Ah, darn. Well that explains why  no amount of tweaking would rotate the Y-axis. Lol
Luckily only one of my effects needs to rotate on the y-axis so I'll just swap the effects out.
Thank you again for the prompt response and for the great site.  :D
#2
I need a little more help if you could.

I'm trying to rotate a texture, but the only change I get is a texture of double the width with no rotation at all. I am using GL2 if that matters.

Matrix matrix = new Matrix();
matrix.rotateY(5);
object3D.setTextureMatrix(matrix);

As mentioned earlier, I am just trying to figure out how to rotate a texture displayed inside a object3D.plane (picture a card rotating) but I do not want to rotate the object3D. Just the texture within the object3D. Can you tell me what  I'm missing in the code above? Thanks.
#3
Thanks Egon for the speedy reply.
Actually, when I mentioned the float[16] in the Matrix class I was asking because I was already using it to manipulate the texture using setTextureMatrix. After your reply I see that I must be using setTextureMatrix incorrectly and that dumping, changing, and setting the float[16] is not the way to go about it. I will try using setTextureMatrix with a matrix that was altered using other methods in the Matrix class. Thanks again.
#4
I've been looking like crazy online as well as on this site and I can't find any instruction on what the order of the float[16] in the matrix represent. I know the site tells me somewhere that each pair is the 1st, 2nd, etc., vertex but what I am looking for is a tutorial or example that tells me what happens as I change certain points.

Basically, by trial and error I have managed to come up with a squishy effect on a plane which is exactly what I was after but I really would like to understand what all the points represent and the effect they have on a plane.

I know that rotate, scale, and translate simplifies much of the most common effects but for certain actions it is better to have access to the texture matrix for additional effects and fine tuning.

For instance, at the moment what I am trying to do is create a swaying effect on a plane. Like a card rotating one direction and then the other on the y-axis. Even though I can do this with rotateY() I am already rotating the same object plane as part of a different effect, so I want to rotate the texture itself as a second independent rotation of the same object. That way I can use either one without resetting the other.

If there is an easier way to rotate the texture itself please let me know. But I would really love to find a tutorial on the float[16] of the matrix if it can be found anywhere.

Thank you in advance.
#5
News / Re: Away from keyboard for two weeks
August 13, 2015, 05:31:53 PM
Welcome back. I've been using your site and JPCT for a few months now as I learn both Java and JPCT/openGL. JPCT and your site has been immensely useful and helpful. I just wanted to say thanks.