spamandeggs / directX_blender

import/export .x files in Blender 2.6
38 stars 35 forks source link

Vertex Colour #4

Open ribeena opened 10 years ago

ribeena commented 10 years ago

Hey there, I was wondering if there might be a version of your direct x importer that supports Vertex Colour?

The direct x exporter does for 2.69, which is good, but things would be easier if i could import the vertex colours too.

Also it'd be really cool if the alpha colour was saved to a vertex group so we could do direct x vertex alpha colours (though the exporter would need updating)

I had a little look at the code, but outside of php, python is quite foreign to me, :)

If you need a sample file let me know - and obviously if it's to hard i understand.

Thanks!

littleneo commented 10 years ago

Hi Ribeena,

Sorry I never worked a lot with vertex color in Blender so there's not implementation in the current script.. but this could be the occasion :)

The thing is I have never quite understand what was the point about vertex colors.. I personnaly work in GLSL for game dev. it has a fps cost for sure with nmaps, shaders and so on but it's what I know the best so far.

it would be kind if you can share some pointers about the goal of vertex color technics (I guess it's for game needs when there's a bunch of object ?) that way I can understand your motivation about your vertex-color-alpha-channel need ( I don't get it for now sorry :-/ :-) ) and adapt the script accordingly.

Yes an .x file would me help a lot, so I can dev. and test from it. actually I did not found a lot of .x file so far. mmm except in GTA4 but well :)

the hardest thing is about the delay... have a due date for your own related project ? Im very busy about a big blender game code these last months.. but yes a file would motivate me and help :)

regards and thanks for your mail,

Jerome France

----- Mail original ----- De: "ribeena" notifications@github.com À: "littleneo/directX_blender" directX_blender@noreply.github.com Envoyé: Dimanche 12 Janvier 2014 14:54:11 Objet: [directX_blender] Vertex Colour (#4)

Hey there, I was wondering if there might be a version of your direct x importer that supports Vertex Colour?

The direct x exporter does for 2.69, which is good, but things would be easier if i could import the vertex colours too.

Also it'd be really cool if the alpha colour was saved to a vertex group so we could do direct x vertex alpha colours (though the exporter would need updating)

I had a little look at the code, but outside of php, python is quite foreign to me, :)

If you need a sample file let me know - and obviously if it's to hard i understand.

Thanks!

— Reply to this email directly or view it on GitHub .

ribeena commented 10 years ago

Hey Jerome,Sorry for the late reply - been quite busy! I'm actually modding a game called 'Recettear' http://www.carpefulgur.com/recettear/ - i'm upgrading the models to be higher polygon counts, and the .x files it uses don't import directly, i have to do a bit of manual processing. They have reused a lot of textures so use vertex color to apply some shading to the textures, which they don't have on the images, and different to lighting. They use the alpha channel to make gradient transparencies from one point to another. All of recettear's .x files are easily accessed in the directory - no need to extract them etc :) The .x exporter supports exporting vertex color - so for the most part, with alot of manual processing in text editor, i've been able to change some stuff, :). Attached is a whole bunch of .x files, :) - i've mostly worked with the ones in "shop" folder.

Thanks for the reply! Cheers,Alex/Ribeena

Date: Thu, 23 Jan 2014 10:18:44 -0800 From: notifications@github.com To: directXblender@noreply.github.com CC: ribeena@hotmail.com Subject: Re: [directX_blender] Vertex Colour (#4)

Hi Ribeena,

Sorry I never worked a lot with vertex color in Blender so there's not implementation in the current script..

but this could be the occasion :)

The thing is I have never quite understand what was the point about vertex colors.. I personnaly work in GLSL for game dev. it has a fps cost for sure with nmaps, shaders and so on but it's what I know the best so far.

it would be kind if you can share some pointers about the goal of vertex color technics (I guess it's for game needs when there's a bunch of object ?) that way I can understand your motivation about your vertex-color-alpha-channel need ( I don't get it for now sorry :-/ :-) ) and adapt the script accordingly.

Yes an .x file would me help a lot, so I can dev. and test from it. actually I did not found a lot of .x file so far. mmm except in GTA4 but well :)

the hardest thing is about the delay... have a due date for your own related project ? Im very busy about a big blender game code these last months.. but yes a file would motivate me and help :)

regards and thanks for your mail,

Jerome

France

----- Mail original -----

De: "ribeena" notifications@github.com

À: "littleneo/directX_blender" directX_blender@noreply.github.com

Envoyé: Dimanche 12 Janvier 2014 14:54:11

Objet: [directX_blender] Vertex Colour (#4)

Hey there,

I was wondering if there might be a version of your direct x importer that supports Vertex Colour?

The direct x exporter does for 2.69, which is good, but things would be easier if i could import the vertex colours too.

Also it'd be really cool if the alpha colour was saved to a vertex group so we could do direct x vertex alpha colours (though the exporter would need updating)

I had a little look at the code, but outside of php, python is quite foreign to me, :)

If you need a sample file let me know - and obviously if it's to hard i understand.

Thanks!

Reply to this email directly or view it on GitHub .

— Reply to this email directly or view it on GitHub.