Voxels for hud - is it possible?
Moderator: GZDoom Developers
-
- Posts: 11
- Joined: Fri Feb 15, 2013 7:34 pm
- Location: Ukraine
Voxels for hud - is it possible?
I have made a voxel for HUD, for my project, but it doesn't works in zdoom. I don't want to use gzdoom's openGL cause i like zdoom's software. is it possible to add voxel support for HUD sprites?
-
- Site Admin
- Posts: 7749
- Joined: Wed Jul 09, 2003 10:30 pm
Re: Voxels for hud - is it possible?
Of course it's possible, but seriously: Why? It doesn't offer any more flexibility than sprites do, and sprites will always look better. So why bother? I fail to see the attraction to this idea that keeps popping periodically.
-
- Posts: 1501
- Joined: Fri Sep 02, 2011 9:00 pm
- Location: Dying w/ civilization or living after it
Re: Voxels for hud - is it possible?
Blame Legos Inc., lol.
-
-
- Posts: 12328
- Joined: Tue Jul 21, 2009 12:04 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia with Vulkan support
- Location: capital N, capital S, no space
Re: Voxels for hud - is it possible?
I think the main thing is the 3D look that is achieved when the weapon moves around onscreen. It's really the closest thing anyone can get to viewmodels in a software renderer outside of Quake.randi wrote:I fail to see the attraction to this idea that keeps popping periodically.
An actual software model system (probably prerendering to sprites, which I think is what you've done for voxels) would be a nice thing to have. It'd have its own limitations but I could see it being useful.
-
-
- Posts: 17454
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Voxels for hud - is it possible?
Thing is, the voxel resolution/performance trade-off is just horrible. I tried making a huge voxel once (pretty much at the limits, 256^3?) and littering the map with it... only 10 copies of it on screen and it's already dunking the FPS down a lot... and this is on an i7 920 machine!
"Well duh, make the voxels smaller then"
Then it would look crappy.
"Well duh, make the voxels smaller then"
Then it would look crappy.
-
- Posts: 11
- Joined: Fri Feb 15, 2013 7:34 pm
- Location: Ukraine
Re: Voxels for hud - is it possible?
Because spawning this voxel as an object again and again in front of player takes much more performance then it could be, but anyway looka awfull when i start moving. Please, I know you can add this!
Of course it is not finished now so looking not the best, but anyway its much more interesting for me then sprites.
Of course it is not finished now so looking not the best, but anyway its much more interesting for me then sprites.
-
- Lead GZDoom+Raze Developer
- Posts: 49130
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Voxels for hud - is it possible?
Why even use voxels for that? There's absolutely no imaginable way how they could ever look good as HUD sprites. That they work in GZDoom is more an accident than intentional.
-
- Posts: 2599
- Joined: Tue Nov 29, 2005 4:37 am
Re: Voxels for hud - is it possible?
I actually find the aesthetic in those screenshots charming. Kinda makes me wonder what Quake would have been like had they gone with voxels. :p
-
- Posts: 11
- Joined: Fri Feb 15, 2013 7:34 pm
- Location: Ukraine
Re: Voxels for hud - is it possible?
I make all the objects in my project voxels. so i want a voxel hud too. I would be glad if this support is done.
-
- Posts: 347
- Joined: Mon May 31, 2010 7:42 pm
- Preferred Pronouns: He/Him
- Location: Canada
Re: Voxels for hud - is it possible?
I could see this looking good if used well; it is pretty charming, reminds me of Ace of Spades or that voxel Wolfenstein thing. Also might be easier for some people than trying to make sprites if they want to use a voxel model they've already made. +1
-
- Posts: 1285
- Joined: Fri Nov 07, 2008 3:29 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Location: Maryland, USA, but probably also in someone's mod somewhere
Re: Voxels for hud - is it possible?
Standing in with the approval train, whatever that's worth. Of course, centered weapons would probably be most preferable in the case of voxels (to cite the Quake mention up there), but why the heck not if it fits the graphical vision of your project, I say.
-
- Posts: 6634
- Joined: Mon Jul 26, 2004 12:59 pm
- Location: Growing from mycelium near you.
Re: Voxels for hud - is it possible?
I could be wrong, but what advantages does using this have over just sprites? Software render doesn't have dynamic lighting, so you're not going to save work on light your sprites. As far as I understand, animating voxels isn't like animating a 3D model where you animate a skeleton (i could be wrong about this as well) so you still need frames and therefore different voxel renders. Graphically, you'll never match the efficacy of voxel huds over sprites - if you want detail, you suffer major performance losses for rendering essentially thousands of pixel-sized sprites in tendem. If you wanted fast speed, you get an extremely low resolution comparable to that of classic Wolfenstein.
Also, the perspective at which you view the voxels is always going to be the same - from the first person. Given you have no lighting, no animation, and no graphical benefits from using this as is, if you just wanted a voxel looking graphic for aesthetic reasons, why not just take a screencapture of a voxel render and just use that as a sprite. If would be practically no different.
I'm not sure if an developer would spend the time at adding a feature that offers no real use outside what I imagine can only be an extremely narrow niche.
Also, the perspective at which you view the voxels is always going to be the same - from the first person. Given you have no lighting, no animation, and no graphical benefits from using this as is, if you just wanted a voxel looking graphic for aesthetic reasons, why not just take a screencapture of a voxel render and just use that as a sprite. If would be practically no different.
I'm not sure if an developer would spend the time at adding a feature that offers no real use outside what I imagine can only be an extremely narrow niche.
-
-
- Posts: 17454
- Joined: Mon Oct 27, 2003 12:07 am
- Location: Kuala Lumpur, Malaysia
Re: Voxels for hud - is it possible?
I understand what the OP wants in terms of aesthetical consistency (I've played his project before when he posted it in the Bugs forum, it is actually kind of cool; a lot of custom-made voxels) but unless someone is willing to code it, I think the only solution the OP has is to fake it with whatever method he is doing right now...
-
- Posts: 2599
- Joined: Tue Nov 29, 2005 4:37 am
Re: Voxels for hud - is it possible?
This seems like it would be a pittance to add, so redundant or not, I don't see why it shouldn't make it in with the caveat that it will look kinda weird or crappy to most people.
-
- Posts: 1112
- Joined: Sat May 22, 2010 12:49 pm
Re: Voxels for hud - is it possible?
Even monsters?conradrdw wrote:I make all the objects in my project voxels.
Voxel monsters look crappy when they change direction.