Re: [Maya2osg-users] osgpreview, UI and flags
Status: Alpha
Brought to you by:
jtaibo
From: Javier T. <jav...@gm...> - 2011-05-30 18:17:37
|
Hi Peter, I found some errors when trying to select the files with custom GLSL code from the browser: // Error: Object 'maya2osgUI_vertDeclareFile' not found. // Error: Object 'maya2osgUI_vertComputeFile' not found. // Error: Object 'maya2osgUI_fragDeclareFile' not found. // Error: Object 'maya2osgUI_fragComputeFile' not found. I like how is being organized the UI. I think it is much cleaner and easy to use. Great work! On Sun, May 29, 2011 at 9:48 PM, Peter Wrobel <pp...@cg...> wrote: > Hi all, > > answering to my own post, as most of the stuff is implemented. >> I would like to add an optionMenu to the preview command textfield, >> which changes the behavior of the command field, with these options: >> >> Mel: >> current behaviour >> >> Pyth: >> corresponding Python script > > not done, don`t know if required at all, will implement on request. > >> Exec: >> which would take an os command ( like "osgviewer --flags file" ) without >> the need of "exec" infront of it >> >> Flag: >> this would call osgpreview with flags entered inside the textfield, >> overriding those hardcoded in the export script >> >> Edit: ( maybe ) >> this would pop up a bigger window for editing text, in the case one of >> the above needs more space > > Same as "Pyth" > > Javier, you might want to test the behavior of the new options. Have > one suggestion to the preview command, that one should be able to pass > the count of lights as argument. This would enable GL_Lights up to 8 or > turn off GL_Lighting, if no light is present in the test scen. Silly me, > was searching quite long for an error, because I couldn't see my content > in the preview window. But I just had no Lights created. So with passing > 0 lights to the preview command would eliminte such an issue. The scene lighting set and some other issues are on my to-do list. I'll address it as soon as I have time. I suppose that I will add an export option to set whether we are exporting a model or a whole scene (see the Global Uniforms section in https://sourceforge.net/apps/mediawiki/maya2osg/index.php?title=Shading_Networks#Global_uniforms). An additional option would be to include a default lighting set when previewing. I think that with these two options we solve the lighting problem. > For the preview command I'm suggesting one more shelf Button, which does > the preview based on the settings in the Export Window ( without it > being opened of course ). The other preview shelf button should still > have default behavior. > What do you think ? It is OK for me. By the way. Talking about adding new shelf buttons... It would be really nice if anybody with some artistic skills (that excludes me absolutely) offers to create a cool set of icons :D > The preview command an pre/post export mel have annotations that explain > the usage of Variables, but you need to turn on Maya Options - Interface > - Help - Popup Help - Tooltips. Think I should activate it when opening > the UI, and restore window clos. Will do later. I can see the tooltips with current version (revision 204). > The Maya Export All / Selection Options Script has a Bug when cahnging > the export file type, couldn't fix this, is on todo list. > > Polygon Options and Polygon and Export UI Wiki is the next, then, > finally, skining. Great! -- Javier Taibo |