Duke4.net Forums: Duke 3D Voxel Pack - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

  • 18 Pages +
  • « First
  • 16
  • 17
  • 18
  • You cannot start a new topic
  • You cannot reply to this topic

Duke 3D Voxel Pack

User is offline   t800 

  • 151

#511

View PostHendricks266, on 10 September 2016 - 11:38 AM, said:


Yes, that is the one. Thanks. :)

While we are at it, ReaperMan, how is current progress on shrinker? I mean it is the last remaining weapon to be voxelized, so it sticks out a bit.

AMC TC Walktrough < On hold indefinitely :(
You one ugly motherf*cker, say "Hasta la vista" to my little friend!
Download here new fixed version of SWP made by Hendricks266 (latest build: Beta 3)

This post has been edited by t800: 11 September 2016 - 02:54 AM

0

User is offline   ReaperMan 

  • 1,240

#512

I've just been too busy to work on this. But i will try to get this done when i got the free time.

This post has been edited by ReaperMan: 11 September 2016 - 12:18 PM

0

User is offline   HiPhish 

  • 7

#513

It has been a while since I have played Duke3D. Has something changed about voxel support in the engine? I have placed the voxel pack 1.1 ZIP inside the autoload directory, but voxels don't show up, only sprites. I have tried all three renderers: classic, polymost and polymer and I'm running on OS X.
0

User is offline   Drek 

  • 1,087

#514

It worked on my end. Tested a clean install of the latest eduke32 revision, 5875 with a fresh download of the voxel pack from the HRP site.

log;
Spoiler

0

User is offline   HiPhish 

  • 7

#515

Thanks, that gave me the right idea. The settings are now stored in ~/.eduke32 instead of ~/Library/Application Support/EDuke32, even though the latter is the proper location for OS X. After I moved both the Duke 3D GRP and my autoload directory over there it worked.
0

User is offline   HiPhish 

  • 7

#516

Sorry for the double-post, but this is a separate question for the modellers in this thread: do you have a proper voxel editor yet or are you still using bitmap strips? I'm asking because there is a voxel editor called MagicaVoxel which seems to be working pretty well.
https://ephtracy.github.io/

Its VOX format is incompatible with the Build engine, but I have taken a look at the specs and they seem pretty simple. I could write a convert to the VOX format of SLAB6 and from there you can then save it as whatever you want that the Build Engine understands. What language would you like the converter in? Keep in mind that I don't have a Windows machine, so if I write it in C you will have to compile it yourselves. I could also write it in Python, then you will have to install the Python interpreter but you will be able to run the source code directly instead of having to compile anything. Other languages I could write it in are C# (must be compiled) or Common Lisp (can be interpreted).

Are you interested?
1

User is offline   HiPhish 

  • 7

#517

Progress:

Posted Image

And just as I had finished this I see that MagicaVoxel already can export that format: File -> Export -> Slab. Well, now I feel like a complete idiot. But yeah, you can model in MagicaVoxel, export as SLAB6 voxels, open in SLAB6 and save as KVX.

You will still need the Duke Nukem 3D palette, but that is easy. It's a PNG image of a one row of pixels. Give me a day or two and I'll have it in that format.
2

User is offline   HiPhish 

  • 7

#518

Here is the palette, it was easier to get it than I thought.
Posted Image

Dump the image among the other palettes and then open it from inside MagicaVoxel. For anyone curious (and possibly future reference), here is the Python code for the conversion:
#!/usr/bin/env python3

# We will write the output in PPM format because it's a dead-simple image
# format. Use a converter like ImageMagick to convert it to PNG or whatever it
# is you want
f = open('PALETTE.DAT', 'rb')
g = open('palette.ppm', 'wb')

# Initialise the palette as an empty list
p = list()

# There are 256 colours in the palette
for i in range(0, 256):
    # Each colour is three bytes
    p.append(f.read(3))

# Write the PPM file header
g.write(b'P6 256 1 255 ')

# Now write the colour data
for c in p:
    # Treat every RGB value separately
    for v in c:
        # Each value needs to be scaled up by factor 4
        i = 4 * v
        g.write(i.to_bytes(1, byteorder='little', signed=False))

f.close()
g.close()

1

User is offline   Drek 

  • 1,087

#519

I had played around with MagicaVoxel once before, the palette was the biggest hold up, good work.

What are some pros-cons between SLAB6 and MagicaVoxel?
0

User is offline   HiPhish 

  • 7

#520

View PostDrek, on 07 October 2016 - 10:59 AM, said:

...

For starters, MagicaVoxel runs on system other than Windows, that's already a big deal for me. SLAB6 does run in Wine, but if I click any of the menu items the interface gets stuck, so I have to use the keyboard instead. I also find the interface of MagicaVoxel more usable and more responsive, but that could be just my opinion. I still don't find it to be perfect, but I prefer it over SLAB6. Just give it a try, make sure you set the palette first, then drag & drop a sprite PNG image into the main view and you can start building your model from that.

This post has been edited by HiPhish: 08 October 2016 - 01:24 AM

0

User is offline   DukeLover90s 

  • 2

#521

View PostHiPhish, on 08 October 2016 - 01:23 AM, said:

For starters, MagicaVoxel runs on system other than Windows, that's already a big deal for me. SLAB6 does run in Wine, but if I click any of the menu items the interface gets stuck, so I have to use the keyboard instead. I also find the interface of MagicaVoxel more usable and more responsive, but that could be just my opinion. I still don't find it to be perfect, but I prefer it over SLAB6. Just give it a try, make sure you set the palette first, then drag & drop a sprite PNG image into the main view and you can start building your model from that.


It really sounds like fun to make these. Duke 3d was the first game I ever modded. Back when it came out I made a few deathmatch levels and played with some folks over modem. Now I have Photoshop and 3ds Max skills learned from modding rfactor, but that became a way too time consuming and I had to put it away, however, I want to continue modding in some respect.

Making a voxel or two sounds like it could be pretty fun for me. I got renewed interest in some of the classic FPS games since I recently got a 144hz monitor. Duke 3d never felt better!

This post has been edited by DukeLover90s: 13 October 2016 - 07:09 PM

1

User is offline   HiPhish 

  • 7

#522

After working in MagicaVoxel for a while I have basically two complaints: 1) it is impossible to make a selection and move the voxels around and 2) there is no easy way of applying pixels from an image to the model.

Number 1 makes correcting mistakes really hard and number 2 means that in oder to properly map the pixels of the sprite 1:1 to the voxels I have to turn the raw pixel sprites of the tile into numbers displayed as text and then for every voxel manually pick the colour based on the pixel and paint every voxel manually. Here for example is the hydrant sprite:
                                                        131 139 133                                                     
                                                132 136 139 138 135 132 130                                             
                                            133 138 140 141 139 135 133 132 131                                         
                                        133 137 139 141 141 137 134 132 133 133 131                                     
                                    131 136 139 140 140 138 136 133 132 132 134 133 131                                 
                                131 133 136 137 138 137 137 134 133 133 131 132 132 132 130                             
                            133 135 137 140 144 141 140 138 136 135 134 133 133 133 133 131 130                         
                            133 136 138 140 142 141 140 138 136 135 133 134 133 132 131 131 130                         
                                130 131 132 133 134 135 135 134 133 132 132 131 130 129  34                             
                                    131 133 134 136 138 140 137 136 135 134 133 131 130                                 
                                    131 133 135 138 141 143 140 138 136 135 133 132 130                                 
                                    131 133 136 139 140 141 140 139 138 135 134 133 130                                 
            133 134 133 130         131 133 137 139 140 142 141 138 137 135 134 133 130         131 133 131             
        134 138 136 132 130 130 130 131 133  40 141 143 144 143 140 136 134 135 133 131 130 131 133 135 133 130         
        140 139 136 131 131 130 131 132  40 143 142 140 140 140 140 140 137 133 133 132 133 133 134 140 134 131         
    134 141 141 135 131 131 130 131 134 143 141 139 140 140 140 139 138 138 135 133 133 135 135 135 144 136 132 133     
134 137 144 140 133 130 132 131 133 139 142 139 139 139 140 139 139 138 138 138 132 131 133 133 136 141 137 132 134 132 
141 135 141 137 131 130 131 130 132 142 140 139 139 141 143 139 136 138 138 139 133 131 132 132 134 139 136 131 139 134 
134 132 138 134 130 130  35 130 131 142 139 139 137 138 140 136 134 137 138 138 133 130 130 131 132 138 134 130 133 135 
130 133 135 132  34 130  35  34 130 137 139 138 135 132  35  37 135 137 138 137 132  33  33 131 131 137 133 130 132 131 
    130 133 130  33  34 161  34 129 132 138 138 136 133 132 133 136 137 137 134 131  33 130 130 131 135 132 131 131     
        131  34  34 132  34  33 129  35 134 137 137 135  40 136 137 137 133  35  33 129 130 131 131 133 132 130         
        130 161 132 132 130  34 130 131 130 132 135 136  37  39 134 132 130  33 130 131 132 131 130 131 131 129         
            131 134 132 129          35 131 131 130 130 129 129 129 130  35 131  34 129     129 130 130  34             
                                     35 132 133 132 131 131 131  36 132 132  35  34 129                                 
                                    131  38 135 134 134 133 133 134 133  37 131  35 129                                 
                                    131  37  39 136  39 135 135 136 133 132  35 130 129                                 
                                     36  38 135  38 135 136 137 135 133 131  35  34 129                                 
                            130 133  41 138 141 143 141  47 139 138  42 136  39  37  35 130 129                         
                            130  36  39  43 139 140 141 140 138 137 136  40 134  37  35 130 129                         

At least with blocky models I could have extruded parts of the image, but the hydrant is round and it was easier to sculpt it first and then colour it later. I have only painted one side yet however.

EDIT: This thing is the sort of reason why programs should have an interface for plugins. The basic shape is there in the tile, so "pushing" it agains the model where the first voxel of every layer picks up that colour should be simple enough. I can't type much these due to an injury, but it would be worth investigating if it is possible to apply that sort of modification to the voxel file.

This post has been edited by HiPhish: 14 October 2016 - 11:38 AM

0

User is offline   Jimmy 

  • Busted Nut
  • 3,652

#523

Don't know if this will help you or anybody else, but originally the hydrant was supposed to be a 2 frame 3D object. The second frame was available in one of the public betas/pre-release sharewares. You can use these frames to make a perfect translation of the originally intended object.

Posted Image

So many asses, so little time. Only a tight one can stop me on the dime. I'm a lover of every kind. The best surprises always sneak up from behind. I'm an Ass-man.
0

User is offline   HiPhish 

  • 7

#524

I don't think that's useful. Notice how the highlight is on two different spots along the hydrant: first it is right on the valve (or whatever you call that thing where the water comes out), and then between two of them. It's like the light is coming out of the observer's eyes. I was thinking of painting the front of the hydrant to be exactly like the sprite, the back a mirror of it and then make up the rest. I still won't make sense to have two highlight on opposite sides, but it's better than having to highlights at a 45 angle between them.
0

User is offline   Jimmy 

  • Busted Nut
  • 3,652

#525

You'd have to convert it to a four frame, or even 8 frame, rotation to get it exactly like the original intention I think. Duke follows "top left lighting" just like most 2.5D games and classical paintings in general. I think you'll get the idea, trying to arrange the 3D-ness in my head is confusing. I think ReaperMan could probably see what I'm getting at.

Posted Image - Posted Image

So many asses, so little time. Only a tight one can stop me on the dime. I'm a lover of every kind. The best surprises always sneak up from behind. I'm an Ass-man.

This post has been edited by Jimmy Gnosis: 15 October 2016 - 04:23 PM

0

User is offline   HiPhish 

  • 7

#526

So you mean having more than one model (with same shape but different colour) and change it based on the angle Duke is looking at it? Sounds like too much work and I think it would be jarring to have the highlight jump all of the sudden while you are looking at a 3D object. But when I'm done someone else can continue from there if they want to.
0

User is offline   Jimmy 

  • Busted Nut
  • 3,652

#527

You can use 3D frames to make voxels with the program Strip2Vox.

So many asses, so little time. Only a tight one can stop me on the dime. I'm a lover of every kind. The best surprises always sneak up from behind. I'm an Ass-man.
0

User is offline   ReaperMan 

  • 1,240

#528

I get what your getting at Jimmy. Also as far as I'm concerned i do most of my construction for voxels with Photoshop and Strip2Vox. Although its limited and not exactly what a want. I wish there was a tool that did what Strip2Vox did but with more options as well. Like I could take a square image and then like a circle and tell the program to just make me a cylinder or sphere with these materials. Its just a pain to do by hand.
0

User is offline   Tea Monster 

  • Polymancer
  • 1,516

#529



Also, have you looked at that magicavoxel thing that HiPhish posted earlier?

This post has been edited by Tea Monster: 30 November 2016 - 01:22 AM

0

#530

I can feel the voxelness crushing throw my vains :wub: :nuke:

This post has been edited by Duke Fan - Kobi Shapiro: 08 March 2017 - 07:30 AM

0

Share this topic:


  • 18 Pages +
  • « First
  • 16
  • 17
  • 18
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners and all comments are owned by their posters. Yes, our forum uses cookies. © 2004-2017 Duke4.net and Voidpoint, LLC

Enter your sign in name and password


Sign in options