New feature for LuXSI

Discussion related to the 'LuXSI' exporter plugin for Softimage XSI.

Moderators: Ratow, coordinators

New feature for LuXSI

Postby povmaniaco » Sat May 08, 2010 12:59 am

My first code for Luxsi
Code: Select all
//----/ new feature; exported ortographic camera /---->
   CString vProj=L"";
   if (c.GetParameterValue(CString(L"proj"))==1) {vProj=L"perspective" ;}
   else { vProj=L"orthographic";}
   //----/ end /---->

   CVector3 new_pos = convertMatrix(gt.GetTranslation());
   CVector3 new_pos_ci = convertMatrix(ci_gt.GetTranslation());
   // olded cam definitions is /----/  get x   get-z      get y //----/ and working correct.. /---->
   f << "LookAt " << CString(new_pos.GetX()).GetAsciiString() << " " <<CString(new_pos.GetY()).GetAsciiString() << " " << CString(new_pos.GetZ()).GetAsciiString() << "\n";
   f << "       "<< CString(new_pos_ci.GetX()).GetAsciiString() << " " <<CString(new_pos_ci.GetY()).GetAsciiString() << " " << CString(new_pos_ci.GetZ()).GetAsciiString()  <<"\n";
   f << "       0 0 1 \n"; //<< CString(up.GetZ()).GetAsciiString() << "\n"; //----/ fixed problem
   
       f << "Camera \"" << vProj.GetAsciiString() <<"\" \"float fov\" [" << vfov << "] \"float lensradius\" ["<< CString(vLensr).GetAsciiString()  <<"] \"float focaldistance\" ["<< CString(vFdist).GetAsciiString() <<"]";
   f << "\n\n";
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: New feature for LuXSI

Postby miga » Sat May 08, 2010 3:26 pm

thanks will put that in and your name too!
miga
Developer
 
Posts: 235
Joined: Mon Oct 15, 2007 6:48 am

Re: New feature for LuXSI

Postby povmaniaco » Fri May 14, 2010 8:26 pm

More advanced for LuXSI.... bumpmap imagemap!!
P.D. cylindrical projection not work....
Attachments
luxsi_bump.png
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: New feature for LuXSI

Postby povmaniaco » Tue Jul 06, 2010 10:55 pm

my modification of code for bumpmap image_map.. (inspired of luxblend)

Code: Select all
if ((bool)vTexture.GetParameterValue(L"bump_inuse")!=false) { vNorm=true;
               vFileBump = vImgClip.GetFileName().GetAsciiString();
               } else { vText=true; //f << "// vText is ON \n";
               }
            
               if (vText){
               f << "\nTexture \"Kd-"<< sname << "\" \"color\" \"imagemap\" \n";
               f << "   \"string filename\" [\"" << replace(vFileName.GetAsText().GetAsciiString()) << "\"] \n";
               f << "   \"string wrap\" [\"repeat\"] \n";
               f << "   \"string filtertype\" [\"bilinear\"] \n";
               f << "   \"string mapping\" [\"uv\"] \n";
               f << "   \"float vscale\" [-1.0] \"float uscale\" [1.0] \n";
               shaderString += L"  \"texture Kd\" [\"Kd-"+ CString(m.GetName()) +L"\"]\n";
               vText=true;
               }
               if (vNorm){
                  f << "\nTexture \""<< sname << "::bumpmap:amount""\" \"float\" \"imagemap\" \n";
                  f << "  \"string wrap\" [\"repeat\"] \n";
                  f << "  \"string chanel\" [\"mean\"] \n"; // not working..??
                  f << "   \"string filename\" [\"" << replace(vFileBump.GetAsciiString()) << "\"] \n";
                  f << "   \"string filtertype\" [\"bilinear\"] \n";
                  f << "   \"string mapping\" [\"uv\"] \n";
                  f << "  \"float vscale\" [-1.0] \"float uscale\" [1.0] \n";
                  f << " Texture \""<< sname << "::bumpmap""\" \"float\" \"mix\" \"texture amount\"  [\""<< sname << "::bumpmap:amount\"] \"float tex1\" [0.0] \"float tex2\" [0.05] \n";
                  shaderString += L"  \"texture bumpmap\" [\""+ CString(m.GetName()) +L"::bumpmap\"]\n";
               }

P.D. Me voy de vacaciones!!!!
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: New feature for LuXSI

Postby patro » Fri Jul 09, 2010 7:52 am

hi povmaniaco,

I made some icons for luxrender and smallLuxGPU...
it's my independent project and no one asked for!
please could you check this thread.... and tell me if some extension for your exporter are missing?

viewtopic.php?f=26&t=4106

thank you in advance!

patro
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: New feature for LuXSI

Postby povmaniaco » Sun Jul 25, 2010 1:07 pm

Thank You Patro. Good work. Pardon to respond so late, I am on vacation. but with a lot of work and little time.
Greetings.
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: New feature for LuXSI

Postby povmaniaco » Thu Jul 29, 2010 1:03 am

Created DLL files for lux_shader, and .vcproj files from VC2008 express edition. Are not black image into XSI and not warning message "Not asociated dll..."
Files .vcproj, .spdl, .cpp an .h =================> \users\user\Autodesk\Softimage_x.xx\Application\spdl.
Files .dll ======================> \users\user\Autodesk\Softimage_7.5\Application\bin\nt-x86.
Grettings.
Attachments
dll_shader.7z
(25.11 KiB) Downloaded 41 times
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: New feature for LuXSI

Postby patro » Fri Aug 13, 2010 8:53 am

hi all,

since a few days I've started a new thread "LuxRender official feature request thread" in general discussion:
viewtopic.php?f=13&t=4373

well... I want only inform you about...
exporter developer are the best one, that know which are the feature that at time are missing or just not supported in LuxRender...
so please participate and don't hesitate to post a request!
Let's grow more LuxRender ;)

thank you in advance!
User avatar
patro
 
Posts: 1798
Joined: Fri Feb 29, 2008 9:06 pm
Location: mount Etna

Re: New feature for LuXSI

Postby povmaniaco » Thu Oct 14, 2010 2:19 pm

I have read some comment it has more than enough Luxsi that maybe doesn't work correctly with the last versions of Luxrender.
I am almost using Luxsi every day and it is functional, like in previous versions. Maybe need to upgrade some things, but it works... :)
Greetings...
Attachments
susi_lux.png
luxsi_lux_07.png
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Re: New feature for LuXSI

Postby povmaniaco » Fri Oct 29, 2010 12:48 am

New upgrades for Luxsi;
- new option "Export smooth meshes"
- corrected; before (" x, y, z = x, - z, y") and ("up" = 0, 0, 1"), now; ("x, y, z = x, y, z") and ("up" = 0, 1, 0")
Code: Select all
CVector3 new_pos = gt.GetTranslation();
    CVector3 new_pos_ci = ci_gt.GetTranslation();

    // are not need "CString" type, CVector3 is a double precision floating point x,y,z coordinates.
    //f << "LookAt " << CString(new_pos.GetX()).GetAsciiString() << " " <<CString(-new_pos.GetZ()).GetAsciiString() << " " << CString(new_pos.GetY()).GetAsciiString() << "\n";
    f << "LookAt " << new_pos.GetX() << " " << new_pos.GetY() << " " << new_pos.GetZ() << "\n";
    f << "       "<< new_pos_ci.GetX() << " " << new_pos_ci.GetY() << " " << new_pos_ci.GetZ() <<"\n";
    f << "       0 1 0 \n";
    f << "Camera \"" << vProj.GetAsciiString() <<"\" \"float fov\" [" << vfov << "] \"float lensradius\" ["<< CString(vLensr).GetAsciiString()  <<"] \"float focaldistance\" ["<< CString(vFdist).GetAsciiString() <<"]";
    f << "\n\n";
}


-"UV map" works now in a correct way.
The video from Vimeo...
http://www.vimeo.com/16303750
Greetings...
User avatar
povmaniaco
Developer
 
Posts: 161
Joined: Tue Sep 01, 2009 1:27 pm
Location: Barcelona, Spain

Next

Return to LuXSI (Softimage XSI exporter)

Who is online

Users browsing this forum: No registered users and 0 guests