Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird voxel rotation #1332

Open
khades opened this issue Dec 15, 2023 · 14 comments
Open

Weird voxel rotation #1332

khades opened this issue Dec 15, 2023 · 14 comments

Comments

@khades
Copy link

khades commented Dec 15, 2023

lul.webm

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

Woof version - latest master.

@khades
Copy link
Author

khades commented Dec 15, 2023

@khades khades closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
@rfomin
Copy link
Collaborator

rfomin commented Dec 16, 2023

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

@khades khades reopened this Dec 16, 2023
@fabiangreffrath
Copy link
Owner

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.

@NightFright2k19
Copy link

NightFright2k19 commented Dec 16, 2023

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.

@fabiangreffrath
Copy link
Owner

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.

@rfomin
Copy link
Collaborator

rfomin commented Jan 2, 2024

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.

@fabiangreffrath
Copy link
Owner

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

@fabiangreffrath
Copy link
Owner

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?

@ceski-1
Copy link
Collaborator

ceski-1 commented Jan 19, 2024

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

@samo790
Copy link

samo790 commented Jan 31, 2024

Do you think this mod could work on Woof?

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

@rfomin
Copy link
Collaborator

rfomin commented Jan 31, 2024

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.

@samo790
Copy link

samo790 commented Jan 31, 2024

@rfomin
Copy link
Collaborator

rfomin commented Feb 1, 2024

@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.

@snekyo
Copy link

snekyo commented Feb 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants