The Matrix vs. The Texture

Post your problems and installation issues here!

The Matrix vs. The Texture

Unread postby _o_OOOO_oo-Kanawha » Thu Sep 11, 2014 3:03 pm

By using a simple matrix transformation on the shape file of the signal post and a repositioning of the head I was able to create a proper right hand side searchlight block signal.

However, on close inspection there is something off. It sort of seams the texture mapping is inside out, or however to describe it.
Take a close look at the right hand signal's base and notice there is no solid concrete block, nor is the mounting tube the same as on the left hand signal.
Do I need to "reverse" the texture sheet or will a remapping with different coordinates and "direction" do? There is hardly any info available.
SH_Searchlight_ABS_R.jpg
You do not have the required permissions to view the files attached to this post.
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm

Re: The Matrix vs. The Texture

Unread postby MontanaRails » Thu Sep 11, 2014 6:29 pm

I agree. Looking at the shadows, it appears to be mapped inside out! Very odd...
Image
MontanaRails
 
Posts: 668
Joined: Sun Nov 14, 2010 2:08 am

Re: The Matrix vs. The Texture

Unread postby Bananarama » Thu Sep 11, 2014 10:46 pm

It's not that it's mapped inside out, rather that the faces have been flipped.
Cheers!
Marc - 3DTrains

Image
User avatar
Bananarama
 
Posts: 2749
Joined: Sat Feb 14, 2009 1:17 am
Location: Another Planet

Re: The Matrix vs. The Texture

Unread postby _o_OOOO_oo-Kanawha » Fri Sep 12, 2014 8:53 am

Hack wrote:It's not that it's mapped inside out, rather that the faces have been flipped.


Probably, since a matrix transformation:
Code: Select all
-1 0 0
 0 1 0
 0 0 1
is supposed to do that.

What should I do with the texture sheet? Flip that as well by using this transformation:
Code: Select all
-1 0
 0 1
, since it is only 2 dimensional?

I cannot open the .PCxDx file with RW_Viewer, it is all garbled. Do I need to decode it first?
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm

Re: The Matrix vs. The Texture

Unread postby buzz456 » Fri Sep 12, 2014 10:08 am

Or use RSBinTool from the library.
Buzz
39 and holding.
"Some people find fault like there's a reward for it."- Zig Ziglar
"If you can dream it you can do it."- Walt Disney
Image
User avatar
buzz456
Site Admin
 
Posts: 20925
Joined: Sun Mar 21, 2010 8:30 am
Location: SW Florida

Re: The Matrix vs. The Texture

Unread postby _o_OOOO_oo-Kanawha » Fri Sep 12, 2014 12:51 pm

Thanks Buzz, no I am able to open the texture. It shows signal posts and ladders in one, two or three heads height.
I don't think flipping the texture will do however. Hack is right, it is the mapping that is flipped along with the shape.
Here is a view from the rear, lit side. Notice the origal hass light gray faces facing the sun, while my hacked signal is dark.
SH_Searchlight_ABS_R(back).jpg

The shadow side of my signal is light gray.
SH_Searchlight_ABS_R(groundlevel).jpg

In theory one could re-map the texture, but only with access to the source of the shapefile. Hacking the shapefile doesn't seem an option as I could find no anchor coordinates, vector or whatever pertaining to wrapping the texture. The actual blobs are gobbledygook to me.
Two shaders use the signalpost texture:
TrainBaseObjectDiffuse.fx and Lit3DirSingle, both have some 3 dimensional vectors which pertain to lighting I think.

Here my knowledge ends as I haven't textured a model yet.
You do not have the required permissions to view the files attached to this post.
Edwin "Kanawha"
Image
The Chessie, the train that never was ... (6000 hp Baldwin-Westinghouse steam turbine electric)
User avatar
_o_OOOO_oo-Kanawha
 
Posts: 3231
Joined: Mon Nov 14, 2011 2:12 pm


Return to Problems and Peculiarities

Who is online

Users browsing this forum: No registered users and 1 guest