delayed load and PSCALE

   17866   28   2
User Avatar
Member
160 posts
Joined: 1月 2006
Offline
Hello.

How can i use “pscale” parameter with “mantra delayed load” geometry shader ?

I have a lot of points, but all points looks too big - how can i set “pscale” point attribute, on Delayed Load shader ? It possible ?
User Avatar
Member
257 posts
Joined: 11月 2007
Offline
You can delayed load instance. And instances can make use of your attributes.

There is a file at the bottom of this blog post that contains a setup for delayed load instancing:
http://www.peterclaes.be/blog/?p=34 [peterclaes.be]
Cg Supervisor | Effects Supervisor | Expert Technical Artist at Infinity Ward
https://www.linkedin.com/in/peter-claes-10a4854/ [www.linkedin.com]
User Avatar
Member
160 posts
Joined: 1月 2006
Offline
pclaes
You can delayed load instance. And instances can make use of your attributes.

There is a file at the bottom of this blog post that contains a setup for delayed load instancing:
http://www.peterclaes.be/blog/?p=34 [peterclaes.be]

a lot of thanks, pclaes
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
Is there a way to alter the pscale attribute on the delayed load object after it's been saved to disk?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
Anyone?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
789 posts
Joined: 4月 2020
Offline
i don't think you can do that out of the box. we wrote our own to be able to adjust scale (and v). if you have worked with the hdk before this is quit simple, based on this example:

http://www.sidefx.com/docs/hdk11.1/_v_r_a_y_2_v_r_a_y___demo_file_8_c-example.html [sidefx.com]

also, it is worth sending an rfe to sidefx about adding a cvex context to the delayed load, that would allow you to run some vex code when de file gets loaded by mantra allowing for this and many other things.


koen
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
Thanks for the feedback!

Unfortunatelly I don't have any experience with HDK but now would be a good time to start.

Any tips of how I could start would be nice and thank you very much for the example.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
31 posts
Joined: 11月 2006
Offline
Hey guys I did something like this:
http://bareya.net/index.php/2011/10/27/delayed-load-procedural-cvex-shader/ [bareya.net]
maybe it will be helpful for you
Cheers,
Piotr
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
Thanks man!

It seems exactly what I need! I'll let you know if it worked for me.

Again thanks for sharing this.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
I didn't find the .so file on your source files, can you send it?

Thanks.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
31 posts
Joined: 11月 2006
Offline
Hey I moved project to:
http://code.google.com/p/delayed-load-procedural-cvex/ [code.google.com]
There you will find compiled so file.
Cheers
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
Thanks man, I really need to start learning that.

But I get this error when I try to render your example:

mantra: Cannot allocate procedural ‘delayedloadcvex’ on object /obj/geo1

I am using houdini 11.0.733
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
31 posts
Joined: 11月 2006
Offline
it means that mantra can't find DSO,
your setup should look like this:

${HOME]/houdini11.0/VRAYprocedural
${HOME]/houdini11.0/dso/mantra/VRAY_DelayedLoadCVEX.so
${HOME}/houdini11.0/otls/VRAY_DelayedLoadCVEX.otl

let me know if you will have any problems.
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
Thank you very much for the help again.

Now I don't get more the error but I got black renders and nothing on alpha, still using your scene example file.

In the example file the “geo” node is using a vopsurface1 that's not existent on the shopnet so I am using a constant instead just to see if I can get something, even so nothing.

Correcting:

Even saving the files on the corrected places I am still getting the error.

I have both 11.1 and 11.0 installed could be this the problem even both of them having the files in the correct places?
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
31 posts
Joined: 11月 2006
Offline
Hey,
Hmm that is strange, did you try to recompile source code ?

svn checkout http://delayed-load-procedural-cvex.googlecode.com/svn/ [delayed-load-procedural-cvex.googlecode.com] delayed-load-procedural-cvex-read-only
cd delayed-load-procedural-cvex-read-only/trunk/source
make


I fixed problem with bounding box.

EDIT:
It's my fault!
Geometry is not included to example, so you have to go geo1 and bake geometry using ROP! Because Delayed Load can't find bgeo file.
I am sorry, I have to fix it!

EDIT2:
fixed!

Cheers!

Attachments:
last.tar.gz (162.5 KB)

User Avatar
Member
951 posts
Joined: 4月 2008
Offline
I am still getting error but I think it's because I am using Houdini 11.0.733 and your dso is compiled for 11.0.701, can be that the problem?

If it is if you give me directions I can try to compile to my version, anyway thanks for the help again.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
31 posts
Joined: 11月 2006
Offline
no worries!
first you have to download latest version:

svn checkout http://delayed-load-procedural-cvex.googlecode.com/svn/ [delayed-load-procedural-cvex.googlecode.com] delayed-load-procedural-cvex-read-only

then go to dir:
cd delayed-load-procedural-cvex-read-only/trunk/source

and compile!
make

let me know how's going
cheers!
User Avatar
Member
14 posts
Joined: 9月 2011
Offline
What I did was to take one one of the delayed load sequences, drop in a pointsop and dial in a good pscale.
That single was about 3 mil points, so hou handled it just fine.

Then I added that same pointsop to each and used a georop to write out
Only a few frames of all 5 delayed load sequences again. More render tests and scale tweaks followed… Finally I wrote out all the frames of all the seq.

I believe I also added a color attribute as well.

Kinda the long way around, but it worked.
User Avatar
Member
951 posts
Joined: 4月 2008
Offline
bareya
no worries!
first you have to download latest version:

svn checkout http://delayed-load-procedural-cvex.googlecode.com/svn/ [delayed-load-procedural-cvex.googlecode.com] delayed-load-procedural-cvex-read-only

then go to dir:
cd delayed-load-procedural-cvex-read-only/trunk/source

and compile!
make

let me know how's going
cheers!

Thanks for the help, sorry the delay.

But I am a little confused I guess I forgot to mention that I have no experience in programing, shame on me. ops:

All this code and directories should I do it on phyton shell, houdini shell or any other shell?

Thanks.
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Member
31 posts
Joined: 11月 2006
Offline
Hey
These commands are Linux Shell commands
if you don't have tool called svn you have to install it
Cheers!
Piotr
  • Quick Links