Baron of Hell
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Texture Scrolling Prob In ZDoom
 
Author
All times are GMT. The time now is 08:28. Post New Thread    Post A Reply
mmnpsrsoskl
Spasmolytic


Posts: 1787
Registered: 06-01


I was stuffing around with texture scrolling before...I want to make a texture scroll up and down, when pressing a switch.

Just to try and get it working to start with, I wrote this script:

#include "zcommon.acs"

script 1 OPEN
{
TranslucentLine (1, 128);
Scroll_Texture_Both (-1, 50, 0, 0, 0);
}

The texture scrolls through the floor and disappears? It's supposed to do that? I didn't think you could use Scroll_Texture_Down, cause it has no parameter for lineid (I mean, no where to put it)...

So...I thought it would scroll like a waterfall, and not just move the texture down through the floor :P

Mind you this is on a 2 sided linedef, is that the problem? But this is what I want it for...anyhow, can someone explain?

__________________
You know, I never really updated this thing right here, so I thought i'd better put something in here, such as this annoying and stupid sentence. Yeehaw.

Old Post 12-02-02 11:56 #
mmnpsrsoskl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3626
Registered: 05-00



mmnpsrsoskl said:

Mind you this is on a 2 sided linedef, is that the problem? But this is what I want it for...anyhow, can someone explain?


I can't check right now, but I guess it is because you're using a 2-sided line.

__________________
this sig is in my pants | WIP - WADs In Progress: post your WADs!

Old Post 12-02-02 14:29 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00


Indeed, textures on the middle of a 2 sided line are drawn differently to how they are on a 1s line. They are drawn once, and do not tile. Moving them up and down will simply move the one texture higher or lower.

__________________
Meek

Old Post 12-02-02 19:57 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
mmnpsrsoskl
Spasmolytic


Posts: 1787
Registered: 06-01


Ah. I see.

That explains things :P

And presents a problem...I'm not really worried that it only tiles once, but that you can still see the texture even through the floor :(

__________________
You know, I never really updated this thing right here, so I thought i'd better put something in here, such as this annoying and stupid sentence. Yeehaw.

Old Post 12-03-02 00:39 #
mmnpsrsoskl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3626
Registered: 05-00



mmnpsrsoskl said:

And presents a problem...I'm not really worried that it only tiles once, but that you can still see the texture even through the floor :(


IIRC you can fix that problem easily: Create a new sector where you want the scrolling texture to be on and give this sector a different light level. The difference can be as low as 1 unit. The texture should not be shown in the floor then (it will be cut off).

__________________
this sig is in my pants | WIP - WADs In Progress: post your WADs!

Old Post 12-03-02 06:36 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
mmnpsrsoskl
Spasmolytic


Posts: 1787
Registered: 06-01


Thanks!

It worked :P

Now, I really need to get this thing working :P

I wonder why it does that?

__________________
You know, I never really updated this thing right here, so I thought i'd better put something in here, such as this annoying and stupid sentence. Yeehaw.

Old Post 12-03-02 10:50 #
mmnpsrsoskl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
SpammerMike
I should do as I said in this PM I sent to Julian or else I'll surely get banned.


Posts: 70
Registered: 12-02


If it's that hard, is it really worth it?
I'd say so. Those scrolling skulls own.

__________________
"Are you the one they call the Spamiard?" -- Lucius from "The Gladiator"

Old Post 12-05-02 06:15 #
SpammerMike is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Cyb


Posts: 3202
Registered: 07-02



mmnpsrsoskl said:
Thanks!

It worked :P

Now, I really need to get this thing working :P

I wonder why it does that?



That has to do with the way the Doom engine renders floors and ceilings. Way back when before the source release you always had to worry about something called a VPO which occured when too many different sectors were in view by the player (the limit was 128 I believe). Lee Killough, who programmed much of Boom and later MBF (which is what SMMU and now Eternity are based upon), figured out that for something to be a different visplane the sector properties could not match. So, two sectors next to each other with the same texture, light level and height are rendered as the same visplane by Doom. Also obviously a floor and a ceiling are two visplanes.

So, by changing the properties slightly of one of the sectors the 2s linedef is on, Doom now renders those as two different sectors and the 2s middle texture is treated as if it belongs in only one of those sectors, rather than belonging to both.

Of course I may be off, but I'm pretty sure that's what's going on.

- Cyb

Old Post 12-05-02 19:53 #
Cyb is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00


Ah, thanks Cyb.

I knew that 2s walls were drawn that way, and knew how to get the textures to cut off at floor/ceiling level, but didn't know why it worked.

Now I do. :-)

__________________
Meek

Old Post 12-05-02 22:43 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
mmnpsrsoskl
Spasmolytic


Posts: 1787
Registered: 06-01


Oh, ye olde VPO!

Why must you taunt me?

Thanks Cyb :)

__________________
You know, I never really updated this thing right here, so I thought i'd better put something in here, such as this annoying and stupid sentence. Yeehaw.

Old Post 12-06-02 11:23 #
mmnpsrsoskl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
The Heretic
chocolate!!111


Posts: 158
Registered: 05-02


never thought you would post a 'dumb' post bites :D!

__________________
Aye

Old Post 12-20-02 22:37 #
The Heretic is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 08:28. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Texture Scrolling Prob In ZDoom

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.