Voxels for hud - is it possible?

Moderator: GZDoom Developers

conradrdw
Posts: 11
Joined: Fri Feb 15, 2013 7:34 pm
Location: Ukraine

Voxels for hud - is it possible?

Post by conradrdw »

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?
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Voxels for hud - is it possible?

Post by randi »

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.
User avatar
RV-007
Posts: 1501
Joined: Fri Sep 02, 2011 9:00 pm
Location: Dying w/ civilization or living after it
Contact:

Re: Voxels for hud - is it possible?

Post by RV-007 »

Blame Legos Inc., lol.
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: Voxels for hud - is it possible?

Post by NeuralStunner »

randi wrote:I fail to see the attraction to this idea that keeps popping periodically.
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.

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.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Voxels for hud - is it possible?

Post by Nash »

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.
conradrdw
Posts: 11
Joined: Fri Feb 15, 2013 7:34 pm
Location: Ukraine

Re: Voxels for hud - is it possible?

Post by conradrdw »

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.

Image

Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Voxels for hud - is it possible?

Post by Graf Zahl »

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.
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Voxels for hud - is it possible?

Post by Snarboo »

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
conradrdw
Posts: 11
Joined: Fri Feb 15, 2013 7:34 pm
Location: Ukraine

Re: Voxels for hud - is it possible?

Post by conradrdw »

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.
User avatar
GFD
Posts: 347
Joined: Mon May 31, 2010 7:42 pm
Preferred Pronouns: He/Him
Location: Canada
Contact:

Re: Voxels for hud - is it possible?

Post by GFD »

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
User avatar
Zhs2
Posts: 1271
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
Contact:

Re: Voxels for hud - is it possible?

Post by Zhs2 »

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.
User avatar
Amuscaria
Posts: 6628
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: Voxels for hud - is it possible?

Post by Amuscaria »

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.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Voxels for hud - is it possible?

Post by Nash »

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...
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Voxels for hud - is it possible?

Post by Snarboo »

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.
mallo
Posts: 1112
Joined: Sat May 22, 2010 12:49 pm

Re: Voxels for hud - is it possible?

Post by mallo »

conradrdw wrote:I make all the objects in my project voxels.
Even monsters?
Voxel monsters look crappy when they change direction. :?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”