Kretren | 2010-01-01 17:36
moving textures along the pixel parameter
13
points ]
 (7 votes)

Yes, I have more problems. We already knew that.

Today's problem: I'm working with textures that are shifted along the x/y axis.

Here's an example of some of it that works:

setshader bumpspecmapworld
setshaderparam "specscale" 4 4 4

texture 0 "philipk/pk01_pan_wall02a1_d.jpg" 1
texture n "philipk/pk01_pan_wall02a_local.jpg" 1
texture s "philipk/pk01_pan_wall02a_s.jpg" 1

texture 0 "philipk/pk01_pan_wall02a1_d.jpg" 1 64
texture n "philipk/pk01_pan_wall02a_local.jpg" 1 64
texture s "philipk/pk01_pan_wall02a_s.jpg" 1 64

Here, the 256x128 texture was flipped to be 128x256, and then shifted 64 pixels on the x-axis.

So in theory, I know what I'm doing. However, I screwed up here, inexplicably:

setshader bumpspecmapparallaxglowworld
setshaderparam "specscale" 4 4 4

texture 0 lunaran/light_fifty1_d.jpg 0 0 64
texture n lunaran/light_fifty1_local.jpg 0 0 64
texture s lunaran/light_fifty1_s.jpg 0 0 64
texture g lunaran/light_fifty1_g.jpg 0 0 64
texture z lunaran/light_fifty1_h.jpg 0 0 64

This is a 64x128 texture that was NOT flipped, and is therefore shifted on the y-axis.

Any thoughts?

13
points
 (7 votes)
User login
Users on Quadropolis
1 guest & no users online
Fatality
29
points ]
 (3 votes)
Created 2019-08-13 23:33
1 week 3 hours ago
Fatality
29
points ]
 (3 votes)
Created 2019-08-13 23:36
1 week 3 hours ago
RaZgRiZ
40
points ]
 (4 votes)
Created 2019-08-05 17:12
2 weeks 1 day ago
27
points ]
 (3 votes)
Created 2018-02-13 11:00
1 year 26 weeks ago
87
points ]
 (9 votes)
Created 2011-09-04 02:41
7 years 50 weeks ago
20
points ]
 (2 votes)
Created 2019-06-25 17:55
8 weeks 9 hours ago
30
points ]
 (3 votes)
Created 2019-05-17 21:51
13 weeks 4 days ago
Kretrens
44
points ]
 (5 votes)
Created 2019-05-08 05:38
14 weeks 6 days ago
Sauce
45
points ]
 (5 votes)
Created 2018-08-22 19:15
51 weeks 6 days ago
65
points ]
 (8 votes)
Created 2018-07-12 17:59
1 year 5 weeks ago
7YearBitch
47
points ]
 (6 votes)
Created 2019-03-07 23:20
23 weeks 5 days ago
Ao1 Pointblank
57
points ]
 (6 votes)
Created 2019-04-28 17:57
16 weeks 2 days ago
17
points ]
 (2 votes)
Created 2018-12-04 15:42
37 weeks 11 hours ago
Created 2019-04-24 04:01
16 weeks 6 days ago
80
points ]
 (8 votes)
Created 2010-07-14 21:46
9 years 5 weeks ago
Fatality
60
points ]
 (7 votes)
Created 2019-04-01 02:30
20 weeks 2 days ago
Ao1 Pointblank
Created 2019-03-04 15:01
24 weeks 1 day ago
84
points ]
 (9 votes)
Created 2010-07-21 06:51
9 years 4 weeks ago
Ao1 Pointblank
81
points ]
 (9 votes)
Created 2018-03-22 02:14
1 year 21 weeks ago
Ao1 Pointblank
25
points ]
 (3 votes)
Created 2019-02-20 05:31
25 weeks 6 days ago
Who's new
  • impala97
  • Fixxxer
  • Gangler
  • DON
  • sevnnseven