Hi SESI,
Is it possible to have an OTL which contains encrypted VEX code only?
Is it possible to generate one using vcc with a flag like the -v flag? Or can one generate it from the vfl source?
Arno Zinke has submitted an encrypted .vex shader for his hair shader on odforce and it'd be great to be able to generate an OTL from if, or ask him to generate it from the vfl source.
http://odforce.net/forum/index.php?showtopic=2465&pid=15751&st=0&#entry15751 [odforce.net]
Thanks SESI,
Jason
OTLs containing encrypted VEX
6064 3 1- jason_iversen
- Member
- 12397 posts
- Joined: July 2005
- Offline
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
- RickW
- Member
- 141 posts
- Joined: July 2005
- Offline
- jason_iversen
- Member
- 12397 posts
- Joined: July 2005
- Offline
RickW
I just downloaded that file and was wondering what the heck was going on in there since it didn't look like standard Vex syntax :shock:
Yeah, it's encrypted
Ever since the introduction of OTLs, my VEX_PATH has fallen into disarray… happily too
Jason Iversen, Technology Supervisor & FX Pipeline/R+D Lead @ Weta FX
also, http://www.odforce.net [www.odforce.net]
also, http://www.odforce.net [www.odforce.net]
- mark
- Staff
- 2587 posts
- Joined: July 2005
- Offline
jason_iversen
Yeah, it's encrypted
Ever since the introduction of OTLs, my VEX_PATH has fallen into disarray… happily too
Boy, I haven't tested crypted VEX in a long time….
My initial trials show that it's possible to create the OTL. It just doesn't seem possible to use it (houdini hangs). Houdini has no problems loading the crypted VEX from disk, so it must be something to do with the OTL. I'll have a deeper look into this. Of course, it could be my build machine. I'm attaching the script I used to create the OTL here.
Creating it isn't a problem, it's trying to use the OTL.
#!/bin/csh -f
if (-d contents) then
echo Found existing contents directory
exit
endif
cat << ENDCAT > crypted.vfl
sop
crypted()
{
P += noise(P*3);
}
ENDCAT
vcc -c -t 1 -T 1 -l crypted.otl crypted.vfl
mkdir contents
hotl -x contents crypted.otl
cd contents/Sop_1crypted
rm VflCode
grep -v VflCode Sections.list > /tmp/sections
cp /tmp/sections Sections.list
rm /tmp/sections
cd ../..
hotl -c contents crypted.otl
rm -rf contents
-
- Quick Links