Shader release: Per Object anti-aliasing

42 views
Skip to first unread message

Amaan Akram

unread,
Apr 1, 2010, 10:03:07 AM4/1/10
to XSI List
Hello,

I've just uploaded a shader that allows you to set per-object anti-aliasing/sampling with Mental Ray. This has been written because I can't seem to find the equivalent from Ctrl.Studios.

Softimage 2010+ only, Win32/64.

If it doesn't work, please see the readme included in the package.

amaan

Harry Bardak

unread,
Apr 2, 2010, 6:49:06 AM4/2/10
to soft...@listproc.autodesk.com
Thanks amaan ! That should have been by default within XSI ! 

does it support also rasterizer sampling parameters ?
 

Harry Bardak
TD / Compositor.

Http://www.harrybardak.co.uk/
+44 781 661 4147




Date: Thu, 1 Apr 2010 15:03:07 +0100
Subject: Shader release: Per Object anti-aliasing
From: xsi...@warpedspace.org
To: soft...@listproc.autodesk.com


Hotmail: Trusted email with Microsoft’s powerful SPAM protection. Sign up now.

Amaan Akram

unread,
Apr 2, 2010, 7:08:04 AM4/2/10
to soft...@listproc.autodesk.com
Hi Harry,

I totally agree that this should be in there by default, and it is very easy to implement as well.

I will add rasterizer support too. If you think of anything else, please let me know.

amaan

Andy Nicholas

unread,
Apr 2, 2010, 8:34:51 AM4/2/10
to soft...@listproc.autodesk.com
Wow, nice one Amaan. I can try compiling that for you on Linux if you like?

Andy


> Hi Harry,
>
> I totally agree that this should be in there by default, and it is very
> easy
> to implement as well.
>
> I will add rasterizer support too. If you think of anything else, please
> let
> me know.
>
> amaan
>
> On 2 April 2010 11:49, Harry Bardak <hb_xsima...@hotmail.com> wrote:
>
>> Thanks amaan ! That should have been by default within XSI !
>>
>> does it support also rasterizer sampling parameters ?
>>
>>
>> Harry Bardak
>> TD / Compositor.
>>
>> Http://www.harrybardak.co.uk/
>> +44 781 661 4147
>>
>>
>>

>> ------------------------------


>> Date: Thu, 1 Apr 2010 15:03:07 +0100
>> Subject: Shader release: Per Object anti-aliasing
>> From: xsi...@warpedspace.org
>> To: soft...@listproc.autodesk.com
>>
>>
>> Hello,
>>
>> I've just uploaded a shader that allows you to set per-object
>> anti-aliasing/sampling with Mental Ray. This has been written because I
>> can't seem to find the equivalent from Ctrl.Studios.
>>
>> http://www.warpedspace.org/plugins/objSampling/objSampling.zip
>> Softimage 2010+ only, Win32/64.
>>
>> If it doesn't work, please see the readme included in the package.
>>
>> amaan
>>

>> ------------------------------
>> Hotmail: Trusted email with Microsoftï¿œs powerful SPAM protection. Sign
>> up
>> now. <https://signup.live.com/signup.aspx?id=60969>
>>
>


Amaan Akram

unread,
Apr 3, 2010, 10:37:14 AM4/3/10
to an...@andynicholas.com, soft...@listproc.autodesk.com
Thanks, Andy. I'll pop the source across to you for linux.

Harry, Rasterizer support has been added. Please do take a moment to test it out. 

I've also edited the SPDL to allow for animation of the sampling parameters. This could be used to link, say, an object's distance from camera to anti-aliasing samples, which isn't possible with current implementation in Softimage.


amaan

>> Hotmail: Trusted email with Microsoft s powerful SPAM protection. Sign
>> up
>> now. <https://signup.live.com/signup.aspx?id=60969>
>>
>



Harry Bardak

unread,
Apr 4, 2010, 1:08:08 PM4/4/10
to soft...@listproc.autodesk.com, an...@andynicholas.com
Just tried and the shader can't be found.
I have checked that the DLL is found via the plugin manager.
I am under Vista SP1. 

Did you use any special library to compile it ? 



Harry Bardak
TD / Compositor.

Http://www.harrybardak.co.uk/
+44 781 661 4147




Date: Sat, 3 Apr 2010 15:37:14 +0100
Subject: Re: Shader release: Per Object anti-aliasing
From: xsi...@warpedspace.org
To: an...@andynicholas.com; soft...@listproc.autodesk.com


Hotmail: Powerful Free email with security by Microsoft. Get it now.

Amaan Akram

unread,
Apr 4, 2010, 2:01:49 PM4/4/10
to soft...@listproc.autodesk.com
no special library is required. The reason the dll is not being found is because of one or both of the following:

a) the microsoft redistributalbes required for this shader to work have not been installed
b) you may have the 32-bit dll in the 64-bit folder or vice-versa. This happens quite a bit because Softimage doesn't detect the dll version correctly when installing SPDLs. Note that this happens even when the plugin manager is able to find the dll. One way to fix it is to manually copy the dlls across from my zip file in to the User/Applications/bin folder

hope that fixes the installation issue.

amaan

guillaume laforge

unread,
Apr 4, 2010, 2:03:36 PM4/4/10
to soft...@listproc.autodesk.com
dll build from debug mode maybe ?

1/2

Guillaume

Amaan Akram

unread,
Apr 4, 2010, 3:08:34 PM4/4/10
to soft...@listproc.autodesk.com
it's definitely a Release build, and I think it is likely to be a case of Softimage not installing the right dll in the right folder, or the Microsoft Redistributables issue. Th incorrect dll install issue only happens when I try to ship both 32-bit and 64-bit dll's together in nt-x86 and nt-x86-64 sub-folders. I'll package them independently from now on.

amaan

Morten Bartholdy

unread,
Apr 7, 2010, 4:22:00 AM4/7/10
to soft...@listproc.autodesk.com
Thanks for sharing Amaan - this will be very useful.

Morten Bartholdy
3D & VFX Supervisor

----- Original Message -----
From: "Amaan Akram" <xsi...@warpedspace.org>
To: "XSI List" <soft...@listproc.autodesk.com>
Sent: Thursday, April 01, 2010 4:03 PM
Subject: Shader release: Per Object anti-aliasing

Harry Bardak

unread,
Apr 8, 2010, 7:20:55 AM4/8/10
to soft...@listproc.autodesk.com
I have tried to swap dll between 32 and 64 bits version. No sucess.
I am sure I got some library missing.

Can you point me to a link for the Microsoft Redistributables are so I can test it ?



Harry Bardak
TD / Compositor.

Http://www.harrybardak.co.uk/
+44 781 661 4147




Date: Sun, 4 Apr 2010 20:08:34 +0100

Subject: Re: Shader release: Per Object anti-aliasing
From: xsi...@warpedspace.org

Hotmail: Free, trusted and rich email service. Get it now.

Amaan Akram

unread,
Apr 8, 2010, 7:40:27 AM4/8/10
to soft...@listproc.autodesk.com
Hi Harry,

Assuming you are on x64, please install this

followed by (scroll down for download links)

hope this solves the missing libraries issue

thanks for testing.
amaan

Harry Bardak

unread,
Apr 8, 2010, 10:24:26 AM4/8/10
to soft...@listproc.autodesk.com
Thanks it does work now.
However when I switch to rasterizer it seams that XSI get confuse as soon as I switch on Scene-Wide Sampling.
Switching it off doesn't solve it and the global settings does'nt influence the render anymore.

When being in scanline/raytracing everything seams to behave as expected !



Harry Bardak
TD / Compositor.

Http://www.harrybardak.co.uk/
+44 781 661 4147




Date: Thu, 8 Apr 2010 12:40:27 +0100

Hotmail: Trusted email with powerful SPAM protection. Sign up now.

Amaan Akram

unread,
Apr 8, 2010, 10:58:29 AM4/8/10
to soft...@listproc.autodesk.com
Thanks, Harry. 

>XSI get confuse as soon as I switch on Scene-Wide Sampling
Scene-wide Sampling should set the rasterizer samples for all objects except the one you have got selected in the Objects List. If Scene-wide is unchecked, your objects should pick up the shading samples from the Render Options PPG. That's the theory, at least :)

I'll check
amaan
Reply all
Reply to author
Forward
0 new messages