points as sprites rendering

   13031   7   3
User Avatar
Member
277 posts
Joined: July 2006
Offline
Hi!
I've got a problem when rendering points as sprites.
I've got a lot of points scattered from grid.
In the objects->Render->Geometry tab I've set “Procedural Shader” to “/shop/vm_geo_Sprite1” shader, which is of type: “Mantra Sprite Procedural”.

to these points I've added 3 attributes: spriterot spritescale and spriteshop
spriterot spritescale - they both are working - are rotating andscaling the sprites, but, when I'm rendering the scene - these sprites are white, and
attribute spriteshop is set to String: “/shop/v_layered1”, where v_layered1 is material with Mandril.pic.

How to render them with this texture? Am I making something wrong?
User Avatar
Member
277 posts
Joined: July 2006
Offline
I found partial answer - everything work good, when I create material with my “VOP VEX SURFACE SOP” connected to “Surface Shader” and my “Mantra Sprite Procedural” connected to “Geometry Shader”
- then, after aplying this material I can see sprites with texture!

But Is there any method to make this effect without assigning this material to object?
only with (as I said before) setting:
the objects->Render->Geometry tab-> “Procedural Shader” to “/shop/vm_geo_Sprite1” shader, which is of type: “Mantra Sprite Procedural”?
User Avatar
Member
8581 posts
Joined: July 2007
Offline
just include spriteshop in attribute list on sprite procedural

or

you can directly use your shader in object material slot and keep your procedural on object as well (not as a part of material)
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
277 posts
Joined: July 2006
Offline
Thank you for your's reply, but I cannot have it working
I've attahced my hip file, I would be very thankfull if you would see what I'm making wrong
Thank you

Attachments:
error_sprites.hipnc (175.1 KB)

User Avatar
Member
31 posts
Joined:
Offline
Hi Danilo,

I saw your last scene, and I think you have just forgotten to put /shop/v_layered1 in the material tab of your geo1 object.


Cheers,

Emanuele
www.leleberti.com

Lead Crowd TD @ DNeg London
________________
User Avatar
Member
277 posts
Joined: July 2006
Offline
ahhh ok
sorry my mistake
thank you!
User Avatar
Member
8581 posts
Joined: July 2007
Offline
i think i made mistake in my previous post

the method 1 should be:

create point attribute “shop_vm_surface” with the string value “/shop/v_layered1” and also include “shop_vm_surface” in attributes of the sprite procedural shader
with this method you do not need anything in material slot of the object
(“spriteshop” seems to be only for viewports)

the method 2 is obviously working fine and i use it preferably. Use method 1 only when you need control over surface shader per particle
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
277 posts
Joined: July 2006
Offline
thank you!

That was what i was looking for!
I thought, that this is not possible
  • Quick Links