View previous topic :: View next topic |
Author |
Message |
luthobu
Joined: 10 Sep 2010 Posts: 7
|
|
Back to top |
|
|
craouette Site Admin
Joined: 26 Apr 2004 Posts: 652 Location: luxembourg
|
Posted: Fri Sep 10, 2010 7:26 am Post subject: |
|
|
I think so... A3D is coming with its own scripting language, and some of the exporter are written in that language. I had a quick look at the DOF file format, and I don't see any reason to not being able to write an exporter for DOF.
I can give it a try if you want, but I will need: sample files and a program that can load DOF file and tell me if the generated files are correct or not...
Craouette |
|
Back to top |
|
|
luthobu
Joined: 10 Sep 2010 Posts: 7
|
|
Back to top |
|
|
craouette Site Admin
Joined: 26 Apr 2004 Posts: 652 Location: luxembourg
|
Posted: Fri Nov 05, 2010 12:31 pm Post subject: |
|
|
Can you try this file and tell me if it is ok?
test.dof
generated in A3D, with the new script I just finished... Sorry for the time I took, but I used the occasion to update the scripting language in order to support the new material system and also enhance the export functionalities...
craouette |
|
Back to top |
|
|
craouette Site Admin
Joined: 26 Apr 2004 Posts: 652 Location: luxembourg
|
Posted: Fri Nov 05, 2010 1:08 pm Post subject: |
|
|
I have 2 questions:
If there is a texture, the MCOL diffuse value should be set to 000? because in the modeler, the texture seems to be added on top of the diffuse color...
The 4 values in the MCOL, are ARGB, RGBA, BGRA, ABGR?
Craouette |
|
Back to top |
|
|
luthobu
Joined: 10 Sep 2010 Posts: 7
|
Posted: Fri Nov 05, 2010 11:16 pm Post subject: |
|
|
craouette wrote: | Can you try this file and tell me if it is ok?
test.dof
craouette |
Thanks, tried it with Racers modeler and it loaded just fine (image). Looked very good too. The report generator even gave out some important info on the model (report). I also ran an optimize and normals tuner with the result of loosing one defined texture and all normals disappeared (image), but that must be a modeler bug an not related to the dof itself. I still need to load the model into Racer (add it to a track) in order to see if it really behaves as it should, but from what I can see in modeler, it is excellent
PS: no problem about taking your time, there is no rush, and the wait is often rewarded, as seems to be the case here as well! _________________ --
Luthobu
Last edited by luthobu on Fri Nov 05, 2010 11:35 pm; edited 3 times in total |
|
Back to top |
|
|
luthobu
Joined: 10 Sep 2010 Posts: 7
|
Posted: Fri Nov 05, 2010 11:20 pm Post subject: |
|
|
craouette wrote: | I have 2 questions:
If there is a texture, the MCOL diffuse value should be set to 000? because in the modeler, the texture seems to be added on top of the diffuse color...
The 4 values in the MCOL, are ARGB, RGBA, BGRA, ABGR?
Craouette |
Diffuse should be set to 000, in fact, all such values (diffuse, emission, shine +++) should be null as these are tuned by either CG shaders or standard shaders and whatever is in the dof is discarded. Don't know about the MCOL values.. but I looked up the DOF specs on Ruuds site, and it seems the values are actually present in the dof!
Code: |
# MCOL; a color chunk, containing:
float ambient[4];
float diffuse[4];
float specular[4];
float emission[4];
float shininess;
|
These values are visible in modeler (as seen in the image), but when optimized they are discarded, and as I mentioned, overrided by tracks shaders. That's all I can tell at the moment.. _________________ --
Luthobu |
|
Back to top |
|
|
craouette Site Admin
Joined: 26 Apr 2004 Posts: 652 Location: luxembourg
|
Posted: Fri Nov 05, 2010 11:59 pm Post subject: |
|
|
cool.
the image is missing...
I fixed a few thinks with the textures... and it is displayed correctly in modeler now.
Will post the new version of A3D with the DOF exporter in the coming days...
Craouette |
|
Back to top |
|
|
luthobu
Joined: 10 Sep 2010 Posts: 7
|
Posted: Sun Jul 15, 2012 12:20 pm Post subject: |
|
|
How time flies! Am testing the latest version (2012-06-18) with wine on Ubuntu 1204LTS
(my windows laptop needs replacement RAM), and it seems stable. Will try to make some
objects/tracks for Racer and see if it works. Have also promoted it at the Racer forum.
Thanks for all your hard work! :D _________________ --
Luthobu |
|
Back to top |
|
|
|