Almar
Moderator
Netherlands
192 Posts |
Posted - May 16 2004 : 3:12:49 PM
|
Hmm, I still have one problem left.
http://vulcanus.its.tudelft.nl/~unreal/sponge/YALGSetup.exe ( 2.8mb)
That's the latest version of YALG. It still might have weird map stuff for testing. Anyway, if you rotate mirrors - some of them -, weird white surroundings are visible. I have no idea why this happens. The Tu/Tv coords are simply correct, and then I simply rotate the vertices... it should just work. But somehow this white happens, as if the texture is not the correct height.. but it only happens at a few angles .
I hope someone might have experienced this before and has a suitable solution for it. Note that these are TL Vertices, rendered as Trianglelists(6 for a square, rotated using sin/cos)
Thanks :) |
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 16 2004 : 3:35:29 PM
|
I don't know exactly but... can you rotate them another way instead of using sin/cos? Because these functions sometimes can return some un-precise values un-precise enough so it screws up all your game. Also aren't the tiles rotated just 90 degrees? So you can manually swap 0->1 and 1->0 or something like that.
|
Whatever. Who knows... |
|
|
masterbooda
Swordmaster
277 Posts |
Posted - May 17 2004 : 01:02:27 AM
|
I have had this problem several times, and I noticed it only happens when I have multiple tiles on one texture... I have tried to get information on this and I have had no luck... as far as I could tell it has something to do with the filtering process of textures... but have no idea how to get rid of it or turn it off.... have tried every possible filter and still the same result... What is happening is the texture is bleeding from around the tu, tv points.... The only way I could get around this is by having multiple textures... If you find a way to fix this problem please respond... thanks...
DaBooda out....
P.S. the sin cos way of rotation didn't cause my problem, because when I tried the smaller one tile texture, the problem went away... but on an older card, I didn't have this problem at all, so its some kind of hardware filtering... is the only thing I can guess... |
DaBooda Team is back: http://dabooda.789mb.com/ |
|
|
cjb0087
Knave
Australia
76 Posts |
|
EACam
Warrior
154 Posts |
Posted - May 17 2004 : 10:27:19 AM
|
Mirroring is not rotating...so just flipping the tu and tv coordinates would'nt work.
E.g. This texture:
xzzx xxxy xxxx
rotated 180 degrees:
xxxx yxxx xzzx
mirrored vertically:
xxxx xxxy xzzx |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 17 2004 : 11:16:06 AM
|
Yeah but if you look closer...
This texture...
xzzx xxxy xxxx
Mirrored vertically...
xxxx xxxy xzzx
And then horizontally...
xxxx yxxx xzzx
Is the same as it rotated 180 degrees.
Also this polygon here... 1------2 | xzzx | | xxxy | | xxxx | 3------4
...has the following Tu, Tv coordinates:
Vertex 1: 0,0 Vertex 2: 1,0 Vertex 3: 0,1 Vertex 4: 1,1
But if you change it this way...
TexCoords(Vertex1) = TexCoords(Vertex3) TexCoords(Vertex2) = TexCoords(Vertex1) TexCoords(Vertex3) = TexCoords(Vertex4) TexCoords(Vertex4) = TexCoords(Vertex2)
The texture will be rotated 90 degrees. |
Whatever. Who knows... |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 17 2004 : 1:48:24 PM
|
I fixed it by reading:
"Directly Mapping Texels to Pixels"
in the DX8 SDK. Simply subtracting 0.5 from every X coordinate of the quad seams to have worked just fine
|
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 17 2004 : 2:02:09 PM
|
So there is someone that reads the SDK docs after all...
(man that really looks so confusing...) |
Whatever. Who knows... |
|
|
Sr. Guapo
Swordmaster
USA
272 Posts |
Posted - May 17 2004 : 5:40:11 PM
|
Wow, I didn't know anyone could discern useful information from the SDK docs... I salute you... |
|
|
EACam
Warrior
154 Posts |
Posted - May 17 2004 : 7:43:12 PM
|
Same here...but I've discovered how much code Jack Hoxley ACTUALLY copied! |
|
|
Eric Coleman
Gladiator
USA
811 Posts |
Posted - May 17 2004 : 11:21:52 PM
|
LOL, yeah, his tutorials do tend to follow the SDK tutorials very closely. VoodooVB was also a source. He would turn discussions that people had on that forum into a tutorial for his website, or at least it seemed that way, lol.
Its a shame he isn't updating his website anymore. The last thing he wrote was for C++. |
|
|
Almar
Moderator
Netherlands
192 Posts |
Posted - May 18 2004 : 12:41:00 AM
|
quote: Originally posted by Eric Coleman
LOL, yeah, his tutorials do tend to follow the SDK tutorials very closely. VoodooVB was also a source. He would turn discussions that people had on that forum into a tutorial for his website, or at least it seemed that way, lol.
Its a shame he isn't updating his website anymore. The last thing he wrote was for C++.
Most of the older (and then I mean being here, not you Bryk ) people over here get.. older.. and need to work and stuff liek that, making less time available to write tutorials. Unfortunatly, it seems that the younger generation does not do that either, afaik (nofi :P) |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 18 2004 : 10:50:56 AM
|
Cool, I'm in the "younger generation". Just tell me a subject that I can write a tutorial for. |
Whatever. Who knows... |
|
|
EACam
Warrior
154 Posts |
Posted - May 18 2004 : 2:05:06 PM
|
Fluid Dynamics please... |
|
|
VBBR
Moderator
Brazil
617 Posts |
Posted - May 18 2004 : 3:04:20 PM
|
Hum I said a subject I CAN write about... not a subject about something I even don't really know exactly what it is... |
Whatever. Who knows... |
|
|
Peter
Administrator
Canada
67 Posts |
Posted - May 18 2004 : 3:52:49 PM
|
Its the dynamics of fluids ;)
Basically how objects behave in fluids, like water, air etc. For example if you're designing an airplane the flow of air over its wings would be considered fluid dynamics.
Sounds like interesting stuff but its very computationally expensive, I think that there are some equations that cant even be solved fully yet. I don't know too much about fluid dynamics though, I think some engineers take it 3rd and 4th year but I doubt I willl since its not the type of physics i'm going into. |
Talos Studios - VoodooVB - VB Gamer
|
|
|