Question about texpages

Improving the artwork in Warzone2100 - not for mod discussions
Puhdoo
Trained
Trained
Posts: 45
Joined: 20 Sep 2009, 17:54

Re: Question about texpages

Post by Puhdoo »

ok I just saw that for pie2-definition...
Polygons n...
on each line blablabla ... INTEGER... I've got floats there still :shock:

next try follows :lol2:
Puhdoo
Trained
Trained
Posts: 45
Joined: 20 Sep 2009, 17:54

Re: Question about texpages

Post by Puhdoo »

yep my pie-file is bad...
in the polygon-information there follows the #points, always 3 in my file, thats ok..
but the U/V coordinate-part was with 0.xxxxx values, thats why it just took the top left pixel of my texpage...
sounds reasonnable, I'm just going to edit and check :)
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Question about texpages

Post by Berg »

Puhdoo wrote:but the U/V coordinate-part was with 0.xxxxx values
the remedy 0.xxxxx values multiplies by 256
The pie 2 format does not use floating point 1.0 to 0.0 dimensions it uses exact position x y co-ords on a 256 by 256 image if your image is larger the game still only uses a 256x256 co-ords..
Puhdoo
Trained
Trained
Posts: 45
Joined: 20 Sep 2009, 17:54

Re: Question about texpages

Post by Puhdoo »

I got it! :P

WMIT still does a good job for getting the shape into PIE-format for me.
Then I re-calculated the UV-coords, that was faster than converting to PIE 2 directly,
because with obj2pie I lost some polygons, and had to adjust the size sometimes :annoyed:

I'll probably write a program to recalculate the UV-coords from 0.0-1.0 to 0-255, doing this manually is bad :geek:

The body looks terrible, anyway I'm going to integrate this into the research tree as a next step,
just to know how it works :)
Attachments
body1ingame.png
body1ingame.png (204.83 KiB) Viewed 6571 times
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: Question about texpages

Post by Jorzi »

Someone really needs to upload a windows binary of the latest WMIT for everyone to download, it supports pie 2 and a lot of other nice features. It may only be alpha software, but really, while berg's interface for obj2pie is good, it's still just obj2pie and the community needs more than that.

Therefore I beg anyone who can compile it for windows, give the power of WMIT to the people :bow2:
ImageImage
-insert deep philosophical statement here-
Puhdoo
Trained
Trained
Posts: 45
Joined: 20 Sep 2009, 17:54

Re: Question about texpages

Post by Puhdoo »

That would be great, I like WMIT :)

besides... I had to...
and it doesn't even look so bad, I mean it's still just 1 cube:
Attachments
body1ingame2.png
body1ingame2.png (275.4 KiB) Viewed 6565 times
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Question about texpages

Post by stiv »

I'll probably write a program to recalculate the UV-coords from 0.0-1.0 to 0-255, doing this manually is bad
Sounds like a job for a python script.
Puhdoo
Trained
Trained
Posts: 45
Joined: 20 Sep 2009, 17:54

Re: Question about texpages

Post by Puhdoo »

Heyhoo,

I was able to integrate my new light body into the research tree as a new item :)
Thanks for your help again, the docs about all the txt files and wrf is also very good.
Attachments
mod.wz
(90.15 KiB) Downloaded 293 times
User avatar
Shadow Wolf TJC
Regular
Regular
Posts: 1047
Joined: 16 Apr 2011, 05:12
Location: Raleigh, NC

Re: Question about texpages

Post by Shadow Wolf TJC »

Personally, while working on the new .pie models for my Warzone 2100: Contingency mod, I used a .txt editor like Wordpad to edit the .pie files directly. Through trial-and-error (and using WMIT to view my results), I eventually figured out how these .pie files are structured. It may not be the ideal method to work with, but it gets the job done.
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: Question about texpages

Post by Jorzi »

Hardcore artists model in notepad :D (you can do it with .obj files too)
Personally, I prefer blender, though :P
ImageImage
-insert deep philosophical statement here-
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Question about texpages

Post by stiv »

Through trial-and-error (and using WMIT to view my results), I eventually figured out how these .pie files are structured.
I admire your determination! Although, a lazy person would just look at the PIE format document on the wiki.
Post Reply