Back to the index page  
Log in to check your private messages
Multiple Floor/Ceiling Textures?

 
Post new topic   Reply to topic    ROTT editing and modding Forum Index » level editing/creating
View previous topic :: View next topic  
Author Message
Per-Scan

Joined: 12 Oct 2010
Posts: 337

PostPosted: Tue Oct 26, 2010 6:24 pm    Post subject: Multiple Floor/Ceiling Textures? Reply with quote
I'm quoting a fellow ROTTer from over at the 3DR forum. I haven't a clue but I thought that maybe someone here might have an opinion. This is his query:

"I'm not going into go into great detail on this one, since I just...don't know where to begin. I was wondering if anybody who's played with the ROTT source code knows of a way to implement multiple floor/ceiling textures? I know that the SDL codebase for Wolfenstein 3D has managed a method to add floor and ceiling textures, and I think a means of assigning different ones to the floor code plane so that more can be used.

Any ideas here?
"

Can anyone help here? Smile
View user's profile Send private message
dopefish7590

Joined: 06 Oct 2007
Posts: 324

PostPosted: Wed Oct 27, 2010 1:12 am    Post subject: Reply with quote
I'm not that familiar with ROTT level making, but in Wolfenstein, each tile of the map had a value for the type of floor. This was used for the sound that would alert guards. If a shot was fired and you were on the same floor type as a guard, it would "hear" it. This was later coded so that the different floor types would also render a floor and ceiling you can see this in mods like AReyeP's Spear: End of Density.

If the ROTT floor tile workings are the same, in theory... It shouldn't be that hard to code a hack.

Guess I should copypasta that to the original thread. Surprised
_________________
-Swim, swim, hungry
View user's profile Send private message
Darkhaven

Joined: 05 Nov 2010
Posts: 3
Location: New Orleans, LA

PostPosted: Fri Nov 05, 2010 2:41 am    Post subject: Reply with quote
Incorrect. In End of Destiny, different floor/ceiling textures were acheived by using the third map plane in the tilemaps which Wolfenstein used, which was unused in the original Wolf code. However, Rise of the Triad makes extensive and complete use of the third map plane for various features such as catwalks, object heights, and coordinates to link switches with other objects.

That isn't to say this isn't totally impossible; but it would require you to rewrite how floorcodes in ROTT function and come up with your own method of propagating sound between actors in the same vicinity as the player that doesn't rely on floorcodes. Either that, or you could come up with your own map format with a fourth map plane.
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Per-Scan

Joined: 12 Oct 2010
Posts: 337

PostPosted: Fri Nov 05, 2010 5:18 am    Post subject: Reply with quote
So you're saying that without a lot of new code it's not really possible?

I came up with an idea for a kludge: Instead of using, say, ceiling light sprites you replaced that sprite with one the same dimensions as the ceiling texture tile and placed that on the ceiling. It would fool the naked eye into thinking there was a different ceiling texture whereas, in actual fact, it's just another sprite... Do you think that's doable? I'm utterly unfamiliar with mapping (I'm taking my first foray this very day!) otherwise I would try it out myself! Smile
View user's profile Send private message
dopefish7590

Joined: 06 Oct 2007
Posts: 324

PostPosted: Fri Nov 05, 2010 7:04 am    Post subject: Reply with quote
Darkhaven wrote:
Incorrect. In End of Destiny, different floor/ceiling textures were acheived by using the third map plane in the tilemaps which Wolfenstein used, which was unused in the original Wolf code. However, Rise of the Triad makes extensive and complete use of the third map plane for various features such as catwalks, object heights, and coordinates to link switches with other objects.


Was it?

I just verified and the textures appear to be on the same pane and the sky seemed to be set via flags.

Changing floor textures is directly possible from this pane:


And the flags at the top corner also appear to be on the same layer:


Or am I missing something..?
_________________
-Swim, swim, hungry
View user's profile Send private message
Darkhaven

Joined: 05 Nov 2010
Posts: 3
Location: New Orleans, LA

PostPosted: Fri Nov 05, 2010 7:01 pm    Post subject: Reply with quote
Hm! Maybe I am indeed batshit insane. I could have sworn End of Destiny used the third map plane for... Something, at the least.

At any rate, there is really only one conceivable way I can figure that this could be achieved, and that would be to rewrite the way floorcodes are handled to make them reference texture combinations, and come up with one's own way to propagate sound that doesn't rely on floorcodes.
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
dopefish7590

Joined: 06 Oct 2007
Posts: 324

PostPosted: Sun Nov 07, 2010 3:22 am    Post subject: Reply with quote
Well, you could be correct... (That's why I asked you to fill me in if I was wrong)

But I'd imagine recoding the way the engine handles floorcodes to do more than just load an image as the floor wouldn't really be that small of a task considering that would also affect how the ceiling is handled.
_________________
-Swim, swim, hungry
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ROTT editing and modding Forum Index » level editing/creating All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group Web Hosting Directory
Xbox by Scott Stubblefield



Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com