• Our new ticketing site is now live! Using either this or the original site (both powered by TrainSplit) helps support the running of the forum with every ticket purchase! Find out more and ask any questions/give us feedback in this thread!

Object Textures?

Status
Not open for further replies.

The Snap

Established Member
Joined
10 Jun 2005
Messages
3,148
Hi guys,
I am currently making a few objects for the JLE extension by Chris and I. However, I have hit an error. The texture I have applied appear back to front ie: the word is backwards!

Here are the texture coordinates:

SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 0, 1,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 1, 0,

How can I change them to make the texture appear the correct way around?

Thanks, :D
 
Sponsor Post - registered members do not see these adverts; click here to register, or click here to log in
R

RailUK Forums

Dennis

Established Member
Joined
8 Aug 2005
Messages
2,676
Location
Trowbridge
RichardH said:
Hi guys,
I am currently making a few objects for the JLE extension by Chris and I. However, I have hit an error. The texture I have applied appear back to front ie: the word is backwards!

Here are the texture coordinates:

SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 0, 1,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 1, 0,

How can I change them to make the texture appear the correct way around?

Thanks, :D

to flip the texture horizontally, change the code to....

SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 1, 1,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 0, 0,

If you need to flip the texture vertically, change the code to....


SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 1,
SetTextureCoordinates,3, 1, 1,


Don't forget, you can also repeat textures (change the x and / or y offset values from 1 to any number greater than 1) and that you can display only parts of textures (by changing the x and / or y offset values to <1) - but having different offset values will distort the texture, eg


SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 0.2, 1,
SetTextureCoordinates,2, 0.5, 0,
SetTextureCoordinates,3, 1, 0,
 

The Snap

Established Member
Joined
10 Jun 2005
Messages
3,148
Dennis said:
RichardH said:
Hi guys,
I am currently making a few objects for the JLE extension by Chris and I. However, I have hit an error. The texture I have applied appear back to front ie: the word is backwards!

Here are the texture coordinates:

SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 0, 1,
SetTextureCoordinates,2, 0, 0,
SetTextureCoordinates,3, 1, 0,

How can I change them to make the texture appear the correct way around?

Thanks, :D

to flip the texture horizontally, change the code to....

SetTextureCoordinates,0, 0, 1,
SetTextureCoordinates,1, 1, 1,
SetTextureCoordinates,2, 1, 0,
SetTextureCoordinates,3, 0, 0,

If you need to flip the texture vertically, change the code to....


SetTextureCoordinates,0, 1, 0,
SetTextureCoordinates,1, 0, 0,
SetTextureCoordinates,2, 0, 1,
SetTextureCoordinates,3, 1, 1,


Don't forget, you can also repeat textures (change the x and / or y offset values from 1 to any number greater than 1) and that you can display only parts of textures (by changing the x and / or y offset values to <1) - but having different offset values will distort the texture, eg


SetTextureCoordinates,0, 1, 1,
SetTextureCoordinates,1, 0.2, 1,
SetTextureCoordinates,2, 0.5, 0,
SetTextureCoordinates,3, 1, 0,

Thanks a lot! :D :D :D Will sort it now! :D
 
Status
Not open for further replies.

Top