Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Fri Aug 08, 2003 12:47 am Post subject:
Using Flyby's Voxelizer
bullethead authorized me to post this excelent and quite simple tutorial about converting your 3d models to voxel with the Voxelizer script from Flyby. I should point out that this tutorial also works for Tiberian Sun.
(Btw, Sk8erkid also wrote something pretty cool about that in graphics forum some months ago)
Quote:
Tutorial Name: [RA2/YR] TUT on using flybys script with gmax to make voxels
Made by: bullethead
Difficulty: Easy
Extra info:
If you post this on any site please give credit where it is due, to me(bullethead).
"Now I recently had a talk with Flyby and he said his script didnt work with colours which basically makes it useless when you want to convert a 3d model to vxl format. So I did some experimenting(which didnt take long) and decided to make a tut on my findings. If you post this on any site please give credit where it is due, to me.
Materials needed:
1.Gmax or the renegade gmax expansion Renx(which you can aquire from the official renegade site)
2.Flybys Voxelizer script which you can get from Tibiriumsun.com
3.Xcc mixer
4.Vxl Editor
5.Microsoft Word
Alright here we go.
First make your 3d model in Gmax or Renx.
Make sure its of good size, not to small and not too big.
Then click on run script. and open Flybys voxelizer script.
You will want to click the pick object button then click what you are wanting to voxelize.
After that is done it gives you the coridinates and the poly count on the model.
Next click Voxelize. It takes awhile sometimes so hang in there.
After it is done click on the Gmax button. It will say renderer is not available and to copy and paste from the maxscript listener(F11).
So click F11 and it will bring up the txt file you need. Now you will notice that there are 5 numbers in each row, and after the numbers it says undefined. Here is an example from a model I have been working on:
That is where the problem is. The undefined should be a number representing the number from the unittem.pal. Like if you put 50 the you would get a dark grey colour on a section of the model. But since it says undefined, when you convert the txt to vxl it will only show a blue screen.
So here is what we do to fix that. Go to Microsoft word and open it. then click open file->then name of what you saved your txt too. Once that is opened click on edit->find->replace. In the Find What box type undefined But not with the underline I jsut underlined it so you could see it better. Then in the replace with box type in any number from 0 to 255. or from 16 to 191 cause some of the colours will be pink in game even though they arnt pink in vxl editor.
Now once you have entered the number you want click on REPLACE ALL. After it is done replacing the undefined with your number enterd click save. And it should look like this:
Now put your saved txt file in the RA2 directory if it isnt already. Open up xcc mixer then the RA2 directory. do the same in the middle panel. Click on your txt file and right click on it. then click on copy as vxl. And there you have it. You will see your vxl in one colour only but at least you will see it finally.
For finishing touches your gonna want to open it in Vxl editor and colour it the way you want.
I hope this has helped others that have the same problem that I did. updates will be done to this to make it alittle more clearer if it isnt already. Ill leave you by saying have fun."
A picture of the model he used for the conversion:
Omg, lol when was this tutorial made! I figured that out all by myself and this was already here or was this discovered after i did.. or mayeb they stole it from me lol im just kidding i dont htink someone would do that, if so i dont care. QUICK_EDIT
Im the one that wrote the tutorial cause Im fairly new to trying to make vxls from gmax or 3ds max. It was made a week ago to help people out that need the help. And nope I didnt steal it from ya. Shoot I didnt even think anyone else bothered using this script cause of the no colour thing. So I gave a crack at it. It only took me like 5 minutes to figure out what to do then another 5 to write the tutorial. QUICK_EDIT
some thing i noticed that i dont remember if you said in your tutorial is that if you dont click gmax export before goin gto the listener the #'s wont usually show up QUICK_EDIT
Well when you click on the export utton it says to press f11 to open up the listener window which has the numbers. Turalyon what are you having problems with. I can help ya out? QUICK_EDIT
when converting, i suggest that you dont have anyother major windows open (maybe like my documents) but no messangers on and not do anything while its converting (wich may take a while with complex voxels) and when i was first converting, if i would try and do other stuff, or minimize the gmax window from the top right corner it would freeze. SO you might just want to make sure you have a couple spare minutes when you are voxelizing QUICK_EDIT
are people actually using this program? i thought it was stopped really early in development and the other voxelizer has, by far, outripped it. QUICK_EDIT
after you converted your 3d model into a vxl go to the vxl texture tool.(see picture 1)
then save the blank texture.
open that texture up in MS paint or photoshop.
open that same texture up in a seperate place.
on one of them, magnafy it by 400% and on the other make it 400% bigger.
go to gmax and put your vxl in the front ,left ,top ,and bottom veiws, and then print the screen.
copy that in another window, then repet the last step but with the views being back,right,whatever,whatever views.
then you can copy and paste it to the one thats 400% bigger.
then reduce it back to its normal size and save it as a bmp.
then go back to the vxl texture tool and load the new texture and then iron out the kinks and you got your vxl _________________ Global Genocide Website QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum