| View previous topic :: View next topic |
| Author |
Message |
thedrummer Newbie
Joined: 30 Nov 2002 Posts: 6
|
Posted: Tue Dec 03, 2002 8:15 am Post subject: MAP texture coordinates? |
|
|
Hello, I'm too programming to display duke nukem levels. But I still have a lot of problems with texture coordinates that you seem to have solved, can you give me some help with x/yrepeat and x/ypanning?
Thanx anyway, David |
|
| Back to top |
|
 |
MattH Lead GLBuild Programmer
Joined: 22 Sep 2002 Posts: 9 Location: UK
|
Posted: Tue Dec 03, 2002 2:12 pm Post subject: |
|
|
| Do you need help for the walls or floors/ceilings, or both? |
|
| Back to top |
|
 |
thedrummer Newbie
Joined: 30 Nov 2002 Posts: 6
|
Posted: Wed Dec 04, 2002 6:09 am Post subject: texture coordinates (next) |
|
|
In fact, I can display almost every walls without any problem, except some rare like the first level E1L1.MAP: in the main street at the very beginning when you've felt down from the drainage pipe, the wall in front of the the one you've slided where there are 2 windows (I don't know how to get there with glBuild?). Even if the use I make of x/yrepeat, x/ypanning, the stats, etc... seem to be ok almost everywhere, there is a problem there... the textures where nextsector/nextwall -1 and the texture where nextsector/nextwall != -1 are not corresponding.
Thanx for you're help (at least can you tell me how to get there with glBuild, it was a big help to determine the use of all that values) |
|
| Back to top |
|
 |
MattH Lead GLBuild Programmer
Joined: 22 Sep 2002 Posts: 9 Location: UK
|
Posted: Wed Dec 04, 2002 3:32 pm Post subject: |
|
|
| Do you mean the texture used to mask the area you would normally see through in a 2-way wall, i.e. a wall with the 1-way or masked bit set? |
|
| Back to top |
|
 |
thedrummer Newbie
Joined: 30 Nov 2002 Posts: 6
|
Posted: Thu Dec 05, 2002 6:35 am Post subject: |
|
|
No, the wall to display in 2 parts because nextwall/nextsector is not -1, here is a capture:
You can see than the textures are not corresponding. I can not understand why... |
|
| Back to top |
|
 |
MattH Lead GLBuild Programmer
Joined: 22 Sep 2002 Posts: 9 Location: UK
|
Posted: Thu Dec 05, 2002 7:46 am Post subject: |
|
|
| Can't see picture |
|
| Back to top |
|
 |
thedrummer Newbie
Joined: 30 Nov 2002 Posts: 6
|
Posted: Thu Dec 05, 2002 8:07 am Post subject: |
|
|
Strange... it displays well for me...
Anyway, not a problem, i'll try (and succeed) to fix that all. I work on the floors and ceilings at the moment, having problems of coordinates too large for gluTess to make the contours.
Thanx for your great job anyway.
David |
|
| Back to top |
|
 |
MattH Lead GLBuild Programmer
Joined: 22 Sep 2002 Posts: 9 Location: UK
|
Posted: Thu Dec 05, 2002 10:25 am Post subject: |
|
|
Picture works now.
OK, I assume that for the wall you are starting with the texture coordinates at the top and going all the way to the bottom. There is an align-to-top flag which means for the bottom part of the wall you have to start the texture coordinates from the top of the texture rather than carrying on from the top part of the wall. I think thats how it works anyway, I coded the wall textures many months ago and it's quite confusing anyway. I'll check properly later. |
|
| Back to top |
|
 |
thedrummer Newbie
Joined: 30 Nov 2002 Posts: 6
|
Posted: Thu Dec 05, 2002 1:07 pm Post subject: |
|
|
Well, i'm gonna try that, thank you very much.
Do you use gluTess**** to display floors and ceilings?
Don't you have any problems? |
|
| Back to top |
|
 |
MattH Lead GLBuild Programmer
Joined: 22 Sep 2002 Posts: 9 Location: UK
|
Posted: Thu Dec 05, 2002 5:29 pm Post subject: |
|
|
| Yeah, I use the tess functions. Didn't have any problems, they worked fine. |
|
| Back to top |
|
 |
thedrummer Newbie
Joined: 30 Nov 2002 Posts: 6
|
Posted: Wed Dec 11, 2002 3:14 pm Post subject: |
|
|
| All right I succeeded in all that! Thanx for all. Now I'm looking at the ART file format to have the animated textures... animated. Did you already thought about artificial intelligence? |
|
| Back to top |
|
 |
|