cbhacks / CrashEdit

Unofficial Crash Bandicoot 1/2/3 Level Editor
https://www.cbhacks.com/tools/crashedit/
Other
137 stars 26 forks source link

Importing scenery support #117

Open warenhuis opened 8 years ago

warenhuis commented 8 years ago

This is an important feature for customising levels, with the following requirements:

NetyashaRoozi commented 8 years ago

I think full model export for scenery will come first or should, We still can't rip crash 1-3 scenery with vertex shading and textures

warenhuis commented 8 years ago

You can rip Crash 1 scenery with CrashUtils (it is not very accurate with colors and UV's unfortunately). untitled7

I was already working on texture and vertex colors. The scenery format is very straight-forward, except for the texture indexes. There are a lot of double-layered parts in the geometry that support low-res and hi-res texture samples at the same time. There is also something in the animationinfo that determines the distance at which samples are visible etc.. I've found that animated textures make up about 60% of some of the scenery models (even with only 1 'page' in the 'flipbook').

I've learned a lot of new things about the texturing and I need to figure some things out in the texture referencing and exporting techniques before the ripping becomes accurate.

I might need to split the low-res and hi-res portions of the scenery (seperate export), as well as the 8-bit and 4-bit texturesheets, as there is a lot of overlap between those. I will certainly have to rewrite some documentation about the animationinfo's.

ManDude commented 8 years ago

Crash 3 doesn't have a dedicated scenery polygon format made for LoD so they just stacked it all up in the same place.