March 761B - 1977 F1 carset - Texture Mapping

Here you can present your WIP or new cars and/or stuff you made for GP2
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

here's the tutorial. It covers just how to get the effect. We still need to find out how to have good control over verticies and test, test, test. Them we can make a decent tutorial covering all things. This one is meant just as starting point for you guys.
Attachments
tex.zip
(162.05 KiB) Downloaded 370 times
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
V12-Power
GP2 Star
Posts: 1051
Joined: 19.09.2006, 20:33
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by V12-Power »

I CAN'T BELIEVE IT!!!!!!!!!!! JUST FIXED THE BUG AAS MENTIONED WITH HELP OF THIS FANTASTIC TUTORIAL!!!!!!!!! THE FRONT OF THE SPORTSCAR LOOKS PERFECT NOW!!!!!!!!!!

THANK YOU VERY MUCH!!!!! \:D/ \:D/ \:D/ \:D/ \:D/ =D> =D> =D> =D> =D>
Visit my website: FK's sportscar project
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

Nice to see it have helped you!! :D

I've just forgotten to say in the tutorial the obvious thing. Save the carshape after everything is done, cause even if the Car Editor won't offer the functionality for us to edit these things, it patches GP2 with those informations when you export the shape.
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
User avatar
AAS
GP2 Star
Posts: 1069
Joined: 08.09.2006, 17:19
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by AAS »

rremedio wrote:here's the tutorial. It covers just how to get the effect. We still need to find out how to have good control over verticies and test, test, test. Them we can make a decent tutorial covering all things. This one is meant just as starting point for you guys.
Unbelievable :-k

=D> =D> =D> great work !



V12-Power wrote:THE FRONT OF THE SPORTSCAR LOOKS PERFECT NOW!!!!!!!!
Unbelievable :shock:

:lol: \:D/
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

I've been playing with those textures again and now I have better understanding on the verticies.

Take line 145 as in the picture on the tutorial.

We have args= 0 12 2 0 0 9 1 f6 fe 41 0 96 ff 0 80 5f 0 0 0 and verticies= 265 -266 65 -106 -32768 95

Well, it's something like this:
-The first argument seems to be always 0
-The second is 12 when it's getting a texture from the car bitmap; it's 97, 98 or 99 (and maybe more values) when it's getting a texture from damage.jam; there are other values (9,, 3f, 7c and others) which seems to get default textures or special parts of the bitmap which are usad for low detail areas of the car, like internal parts of the wings.
-The next two numbers are 0 0 in most of the cases, but they may be 80 0, or they may not be there. Still don't know what they do (changing a 0 0 to 80 0 made may gp2 crash in external view).
-Then come the verticies data, is always in pairs, in our case the pairs are (9 1) (f6 fe) (41 0) (96 ff) (0 80) (5f 0). Each pair is a vertex. You should read it as signed words (16-bit signed numbers, composed
of 2 bytes), and as little endian,
which means it's stored low byte first, high byte next. So the values
are this (0x is prefix for hexadecimal
number):

41 0 = 0x0041 = 65
9 1 = 0x0109 = 265 (not -265!)
96 ff = 0xff96 = -106 (not 106!)
f6 fe = 0xfef6 = -266
0 80 = 0x8000 = -32768 (Car Editor shows it right!)
5f 0 = 0x005f = 95

(By SDI)


(0 80) seems to be a command, not a vertex, as this vertex doesn't exist.

Changing vertex order I could rotate a texture! I think is very useful!

Another thing, In the tutorial there's a picture from the Hex Editor. The numbers stressed in blue, as I told, are the index to the bitmap part. Now I know you can just change that number to change the mapping for that poligon, which means faster editing and, maybe more important, you can use the same part of the bitmap more then one time! (edited: this works in the game but it won't be displayed in the car editor)
Last edited by rremedio on 22.01.2008, 01:13, edited 5 times in total.
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

I think it's how my March will look:

Image

Now I'll try to create a general carshape to make the carset. :D
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
V12-Power
GP2 Star
Posts: 1051
Joined: 19.09.2006, 20:33
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by V12-Power »

Maybe you could try to make the "front wing" a bit copped like the one on this screenshot:
Image
If it doesn't have too bad influences on the bitmap of course. I think this would look cool!

But in general the carshape looks already very nice, of course!!! =D>

Thank you again for encrypting everything. I played around with it a little bit, works good!
Visit my website: FK's sportscar project
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

V12-Power wrote:Maybe you could try to make the "front wing" a bit copped like the one on this screenshot:
Image
If it doesn't have too bad influences on the bitmap of course. I think this would look cool!

But in general the carshape looks already very nice, of course!!! =D>

Thank you again for encrypting everything. I played around with it a little bit, works good!
Yes. It's a question of chosing the car type to make the shape, becouse in the 70ies the cars were all too much diferent from each other.

This is the March:
Image

It's front wing can't be properly done in GP2, but is not in you Brabham style. But there are other cars which are. I have pictures from all cars and I'm thinking about the styles I'll use.

But your sugestion will probably be there, becouse there were several cars in that style.

Thanks for the advice and feedback!
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
User avatar
AAS
GP2 Star
Posts: 1069
Joined: 08.09.2006, 17:19
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by AAS »

rremedio wrote:I think it's how my March will look:

Image

Now I'll try to create a general carshape to make the carset. :D
Great work. Looks very good ! =D> =D> =D>
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

Thank you Andreas! It could be far better, but I stopped improving it to make a more general shape.

I've sent a mail to SDI to ask some info that may help us to do more things in the texture mapping. I still don't know if he'll be able to help, but he's already sent me some corrections on my post about the verticies and the hex number in Car Editor:

You should read it as signed words (16-bit signed numbers, composed
of 2 bytes), and as little endian,
which means it's stored low byte first, high byte next. So the values
are this (0x is prefix for hexadecimal
number):

41 0 = 0x0041 = 65
9 1 = 0x0109 = 265 (not -265!)
96 ff = 0xff96 = -106 (not 106!)
f6 fe = 0xfef6 = -266
0 80 = 0x8000 = -32768 (Car Editor shows it right!)
5f 0 = 0x005f = 95


I think it's much more clear now. And I'll update that post.
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
HF
GP2 Star
Posts: 1168
Joined: 08.09.2006, 16:14
Location: Germany
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by HF »

rremedio wrote:I think it's how my March will look:

Image

Now I'll try to create a general carshape to make the carset. :D
Looks damn cool for GP2. Remember we will be able to "build" a shape for every car with this extra mode....
- . -
V12-Power
GP2 Star
Posts: 1051
Joined: 19.09.2006, 20:33
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by V12-Power »

HF wrote:Remember we will be able to "build" a shape for every car with this extra mode....
What do you mean with this?
Visit my website: FK's sportscar project
User avatar
rremedio
GP2 Legend
Posts: 1524
Joined: 14.01.2007, 15:05

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by rremedio »

V12-Power wrote:
HF wrote:Remember we will be able to "build" a shape for every car with this extra mode....
What do you mean with this?
I don't understand, also...

GP2 still accepts the low nose and the hight nose shape only.
"The Fox provides for himself. but God provides for the Lion"
Image
Early 90s F1 forever!
HF
GP2 Star
Posts: 1168
Joined: 08.09.2006, 16:14
Location: Germany
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by HF »

HF wrote:
rremedio wrote:I think it's how my March will look:

Image

Now I'll try to create a general carshape to make the carset. :D
Looks damn cool for GP2. Remember we will be able to "build" a shape for every car with this extra mode....
I'm sorry, I wrote it in a hurry. Maybe it will be possible, with a bath or something like that, to use different shapes.
- . -
V12-Power
GP2 Star
Posts: 1051
Joined: 19.09.2006, 20:33
Contact:

Re: March 761B - 1977 F1 carset - Texture Mapping

Post by V12-Power »

HF wrote:Remember we will be able to "build" a shape for every car with this extra mode....
Okay, you meant: "Imagine if we would be able to use a shape for every car with this extra mode...." O:) Got it! :wink:
Visit my website: FK's sportscar project
Post Reply