Rotated wall textures

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

Moderator: Developers

Rotated wall textures

Postby RockstarRaccoon » Sat Jun 09, 2018 2:31 pm

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...
User avatar
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016

Re: Rotated wall textures

Postby Gorman Frebmane » Wed Jun 13, 2018 1:40 pm

Indeed this feature would allow me to make sloped vents look more like actual vents.
Gorman Frebmane
 
Joined: 13 Jan 2018

Re: Rotated wall textures

Postby RockstarRaccoon » Wed Jun 13, 2018 2:41 pm

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
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016

Re: Rotated wall textures

Postby Kinsie » Wed Jun 13, 2018 9:35 pm

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
Kinsie
A Concept Utterly Obsolete
 
Joined: 22 Oct 2004
Location: MAP33
Discord: Find Me...
Twitch ID: thekinsie

Re: Rotated wall textures

Postby Rachael » Wed Jun 13, 2018 9:51 pm

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
Rachael
QZDoom + Webmaster
 
Joined: 13 Jan 2004

Re: Rotated wall textures

Postby RockstarRaccoon » Thu Jun 14, 2018 1:07 am

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
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016

Re: Rotated wall textures

Postby Graf Zahl » Thu Jun 14, 2018 1:27 am

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
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Rotated wall textures

Postby Rachael » Thu Jun 14, 2018 5:02 am

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
Rachael
QZDoom + Webmaster
 
Joined: 13 Jan 2004

Re: Rotated wall textures

Postby Graf Zahl » Thu Jun 14, 2018 5:21 am

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
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Rotated wall textures

Postby Rachael » Thu Jun 14, 2018 5:22 am

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
Rachael
QZDoom + Webmaster
 
Joined: 13 Jan 2004

Re: Rotated wall textures

Postby zrrion the insect » Thu Jun 14, 2018 12:20 pm

Would skewed textures, which would only involve offsetting columns, be easier to implement?
User avatar
zrrion the insect
Like a fish in a child's hands.
 
Joined: 25 Jun 2009
Location: Time Station 1: Moon of Glendale

Re: Rotated wall textures

Postby Graf Zahl » Thu Jun 14, 2018 12:27 pm

No. For both some handling for texture matrices needs to be present. Currently that's only the case for flats.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Rotated wall textures

Postby Nash » Thu Jun 14, 2018 12:46 pm

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
Nash
Nash Muhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

Re: Rotated wall textures

Postby Graf Zahl » Thu Jun 14, 2018 12:49 pm

Sometimes skewed textures make sense - imagine the wall in a sloped corridor.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Rotated wall textures

Postby Gez » Thu Jun 14, 2018 3:41 pm

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
Gez
 
 
 
Joined: 06 Jul 2007

Next

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests