-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello,
Ben Discoe wrote: .. > Here is a summary of what i did: > > 1. Changed default export from 'Selected' to the more commonly used 'All'. Good idea. > 2. Exposed the diffuse+ambient values of textured materials as a user option > in the GUI. Previously, it would fall to inappropriate OSG defaults. This > gives control to users, permitting such things as surfaces which are both > textured and lit. Objects can be textured and lit at the same time from Blender already, it would have been better to include the support for multi-material/multi-texture from the material editor. That would also permit supporting things like texture+lightmap exported directly from Blender. OSG supports multi-texturing as well, just the exporter is lacking in this regard. The only thing that remains is the ambient lighting - I do not have much use for that, though. BTW, how did you expose this to the user? I hope that you do not present the user with few hundreds of sliders if you are exporting a larger scene, as this has to be done per-object. > 3. Save the output path to the registry, so the user doesn't have to re-type > it every time. (The texture material values are also remembered in the > registry.) +1 - good idea. > 4. Write an ambient component for each material (equal to half the diffuse) > which is a better behavior than defaulting to OSG grey. Well, no - this is a bad idea, IMHO. I would rather export NO ambient lighting or set it to (0,0,0), since I didn't specify any in Blender. Otherwise you will get a surprise if you set the color to be some shade of e.g. blue and the object will look different (lighter) due to the contributing ambient lighting in OpenGL which you didn't have in Blender. > 5. Adjusted the indentation of the .osg output slightly, so that braces are > more aligned. Good idea, the generated code was quite a mess. Regards, Jan - -- Jan Ciger GPG public key: http://www.keyserver.net/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFE6xsDn11XseNj94gRAt8kAKCZC16wXCHgS6vs3TPv/3nULt5FIwCggOb+ QJW8hO3X39DYkxMnMVti8RM= =e760 -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
