Randomized Tiled Textures

Moderator: GZDoom Developers

Post Reply
User avatar
Smedis2
Posts: 16
Joined: Fri Jul 01, 2016 6:45 pm
Contact:

Randomized Tiled Textures

Post by Smedis2 »

Inspired by this in specific:
https://www.youtube.com/watch?v=NNv17T02WlY

Just a silly idea, but it would be interesting and slightly useful. Randomized tiles to make stuff like floors and ceilings look less repetitive and video-game-y without using gigantic textures.

TILEDEF

Code: Select all

tile MYTEX1 //comma and number indicate chance of appearing
MYTEX1, 128
MYTEX2, 128
User avatar
Uni-000
Posts: 24
Joined: Sat Apr 01, 2017 5:23 pm

Re: Randomized .txt files as graphics in the GZedDoom

Post by Uni-000 »

Ooh! Seems reasonable, but I suppose moving sectors will have to wait, maybe we can be like Quake and just have them move without Rotation for now.

But still, this would be Nice as well!
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: Randomized Tiled Textures

Post by m8f »

I believe this is already doable with ZScript access to getting/setting textures: https://github.com/coelckers/gzdoom/blo ... ata.zs#L72
One would iterate over Sides in Level, check if a texture id corresponds to a texture that one wants to be randomized, and sometimes replace it with other variant.

Actually, I would love to see this in action. Code should be simple enough, the main problem here is assets, somebody has to draw them.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Randomized Tiled Textures

Post by Graf Zahl »

This is way out of scope for an engine feature. Especially since scripting it is not too hard, even in ACS.
User avatar
Tormentor667
Posts: 13533
Joined: Wed Jul 16, 2003 3:52 am
Contact:

Re: Randomized Tiled Textures

Post by Tormentor667 »

How would this be scriptable?
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: Randomized Tiled Textures

Post by Matt »

I'm guessing through this (with "pos" being "floor" or "ceiling")
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Randomized Tiled Textures

Post by Graf Zahl »

Tormentor667 wrote:How would this be scriptable?

Obviously you need to tile the sector yourself. Without that it simply cannot ever work. And once you have your tiled sectors it's a simple case of using ACS or ZScript to set the textures you like.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”