woof icon indicating copy to clipboard operation
woof copied to clipboard

Weird voxel rotation

Open khades opened this issue 6 months ago • 14 comments

lul.webm

Voxel items rotates towards you and rotate when you look left or right.

Woof version - latest master.

khades avatar Dec 15 '23 19:12 khades

https://www.doomworld.com/forum/post/2731928 oh i see

khades avatar Dec 15 '23 22:12 khades

Perhaps we should tweak this item rotation. @fabiangreffrath What do you think?

rfomin avatar Dec 16 '23 06:12 rfomin

I also found it a bit strange at first, but was okay with the explanation that sprites would look just the same, i.e. they will also always face the player. If there's another option that looks more natural, I'm all open for it.

fabiangreffrath avatar Dec 16 '23 08:12 fabiangreffrath

As an optional feature this would actually be quite cool. While we are at the topic: Are constantly rotating voxels (Blood/Quake style) via definition file supported as well? For pickup sprites it's very useful since it avoids the "player facing problem" entirely.

NightFright2k19 avatar Dec 16 '23 10:12 NightFright2k19

Another promising idea that was once expressed somwhere was to align map things with the closest linedef, so that the front face of the thing is always perpendicular to said line. However, this concept instantly fails e.g. for a map thing in the exact center of a square.

fabiangreffrath avatar Jan 02 '24 13:01 fabiangreffrath

Another promising idea that was once expressed somwhere was to align map things with the closest linedef, so that the front face of the thing is always perpendicular to said line. However, this concept instantly fails e.g. for a map thing in the exact center of a square.

It might be worth experimenting with.

I like the current implementation, but it looks like it needs some tweaking so it doesn't look too clunky. Maybe stop the rotation near the viewpoint.

rfomin avatar Jan 02 '24 14:01 rfomin

Yes, or only rotate half the angle or something similar.

fabiangreffrath avatar Jan 02 '24 14:01 fabiangreffrath

Voxel items rotates towards you and rotate when you look left or right.

Silly request, but could you record the same video with sprites instead of voxels? What occurs to you?

fabiangreffrath avatar Jan 11 '24 10:01 fabiangreffrath

I wonder if the voxel models would benefit from being rendered in their own space, not relative to the player's point of view. Apply the trick of pulling the camera (in the model's space) way back and using a narrow FOV. Then only render the models straight on. That is, keep the billboard look and don't tilt the model when it's above or below the player. Basically, it will look like a 2D sprite except with full rotations. Maybe something to suggest to the original author.

voxeltest

ceski-1 avatar Jan 19 '24 05:01 ceski-1

Do you think this mod could work on Woof?

https://www.moddb.com/mods/voxel-doom-ii/addons/voxel-doom-ii-with-parallax-textures

samo790 avatar Jan 31 '24 00:01 samo790

Do you think this mod could work on Woof?

Not sure what the meaning of parallax textures is, here the original work: https://www.moddb.com/mods/voxel-doom-ii/addons/voxel-doomii-v2-1 Yes, it will work, this feature was designed with this mod in mind.

rfomin avatar Jan 31 '24 02:01 rfomin

@rfomin See this video in action: https://m.youtube.com/watch?v=2UYGVVcZpD0&pp=ygUVUGFyYWxsYXggdGV4dHVyZSBkb29t

samo790 avatar Jan 31 '24 12:01 samo790

@rfomin See this video in action: https://m.youtube.com/watch?v=2UYGVVcZpD0&pp=ygUVUGFyYWxsYXggdGV4dHVyZSBkb29t

This is done using shaders and the GZDoom material system, so it's not practical to support this in software render. We only support models in .kvx format.

rfomin avatar Feb 01 '24 15:02 rfomin

This doesn't seem like an issue with the source port, moreso just the mod.

snekyo avatar Feb 07 '24 22:02 snekyo