Rotated wall textures

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Rotated wall textures

Post by RockstarRaccoon »

Right now, if I want to have a texture for something like a support beam rotated, I have to go into GIMP and SLADE and do it manually. It would make the process a lot simpler if I could just do it from a UDMF field. How difficult would this be to implement? I'm not entirely sure how it would be done...
Gorman Frebmane
Posts: 116
Joined: Sat Jan 13, 2018 3:17 am

Re: Rotated wall textures

Post by Gorman Frebmane »

Indeed this feature would allow me to make sloped vents look more like actual vents.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: Rotated wall textures

Post by RockstarRaccoon »

Very good point. With Membrane, I've been experimenting with the workaround of having a spiral pattern to the vents, but that could work really well too. I was thinking this will be good for things like slanted support beams.
User avatar
Kinsie
Posts: 7399
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33
Contact:

Re: Rotated wall textures

Post by Kinsie »

This has been suggested a couple of times. As I understand it, it'd be a gargantuan pain in the butt to implement in the Software renderer.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Rotated wall textures

Post by Rachael »

Like with what Kinsie said, the software renderer renders wall textures and sprites by column, which is how textures are stored internally anyway, and does not have any concept of rotation. It's doable to implement something like this but it comes with some caveats:

1) We do not know the actual performance impact of it, it may be hugely significant
2) It will require rewriting a multitude of drawers. Take this list - then duplicate twice for having both a truecolour and 2 sets of drawers for the 8bit renderer since it has two blending techniques: swizzled and algebraic, and that's the number of drawers that have to be recalculated and tested.

... and that might not even be all of it.

So - my question is (@ anyone interested in coding this) - do you have some spare time for this or not? :)
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

Re: Rotated wall textures

Post by RockstarRaccoon »

Gee... I guess I'll have to see how difficult it is when I get around to the alignment stuff... I don't think I'll have the time or patience to implement it correctly in software though...

And you're sure all of those renderers will need ongoing support? Even the 8-bit one which makes it look like vanilla Doom?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Rotated wall textures

Post by Graf Zahl »

It's not only a gargantuan pain to implement in the software renderer but also requires some major changes to the hardware renderer as well. It's not something that can 'just' be plugged in. The entire wall renderer was written with the assumption that textures are unrotated.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Rotated wall textures

Post by Rachael »

RockstarRaccoon wrote:And you're sure all of those renderers will need ongoing support? Even the 8-bit one which makes it look like vanilla Doom?
The software renderer isn't being deprecated overnight just for your own convenience for crap like this. Don't even suggest it.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Rotated wall textures

Post by Graf Zahl »

But the software renderer does not support all engine features anyway - just remember sloped 3D floors. If it was doable to implement this in a simple fashion I wouldn't hesitate, but it actually requires a bit more work - in particular that'd be work I'd postpone until I got Vulkan running somewhat robustly.
User avatar
Rachael
Posts: 13530
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Rotated wall textures

Post by Rachael »

That's true, I misinterpreted what she was suggesting as a complete removal. The software renderer doesn't need a feature like this right away.
User avatar
zrrion the insect
Posts: 2411
Joined: Thu Jun 25, 2009 1:58 pm
Location: Time Station 1: Moon of Glendale

Re: Rotated wall textures

Post by zrrion the insect »

Would skewed textures, which would only involve offsetting columns, be easier to implement?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Rotated wall textures

Post by Graf Zahl »

No. For both some handling for texture matrices needs to be present. Currently that's only the case for flats.
User avatar
Nash
 
 
Posts: 17433
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Rotated wall textures

Post by Nash »

zrrion the insect wrote:Would skewed textures, which would only involve offsetting columns, be easier to implement?
That wouldn't even look good IMO... why settle for a cheap workaround when the engine would be better off doing rotation for real. :mrgreen:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Rotated wall textures

Post by Graf Zahl »

Sometimes skewed textures make sense - imagine the wall in a sloped corridor.
Gez
 
 
Posts: 17833
Joined: Fri Jul 06, 2007 3:22 pm

Re: Rotated wall textures

Post by Gez »

I remember there was a very old feature suggestion thread for skewing textures, so there was demand for that specifically. And it definitely can look better than rotated. Allow me to illustrate:

Image
Post Reply

Return to “Feature Suggestions [GZDoom]”