View Full Version : displacement real time
04-09-2003, 09:10 AM
Yeah! Finally I arrived to 100 posts. I'm very happy.:thumbsup: :bounce:
...I've got a question for all XSI's fanatic user, How can I see a displacement map in the views applied, without a render region? (like Lightwave)
I see the http://www.sukio.de/XSI/Geo_Displace/Geo_Displace.htm link but I don't want a script to do this, I want to do it by hand and I dont' understant too much the guy's script.
04-10-2003, 01:21 AM
AFAIK it's not possible in XSI, at least not in the same sense as LW. In LW the displacement map is used to move the vertices of the mesh itself, which is why you can see the displacement in the viewports. The equivalent of this in XSI would be the push paint tool.
The displacement in XSI, on the other hand, works at the micro polygon level, and is applied only at render time. This is why you can set Geom Approx. of the displacement different from that of the surface / subdivision. In fact you can take a single-polygon grid and get ultra detailed displacement on it.
What the script does is mimic the behavior of LW by reading a map and moving vertices, based on the pixel value.
04-10-2003, 08:37 AM
Yes, I know it, but the script can't use more function that there aren't in xsi, so I think that the procedure that the script do I can to do by hand, or no?
04-10-2003, 06:17 PM
See the problem is that XSI doesn't allow you to change the values of weight maps from the rendertree. You can read in the values using a map_lookup_color node but there's no way to actually plug a texture into a weight map, or at least none that i know of.
What the script seems to be doing is creating a high poly grid, an empty weight map, and then copying the pixel values of the selected image clip into it, one pixel at a time. The weight map is then used in a push deformer to get the displacement like effect.
It's the copying of the pixels that can't be done without a script... the rest can be done by hand.
04-11-2003, 08:04 AM
Oh, thanks 1000, now I've understand. But for curiosity, are you the creator of this script or are you a programmer that understand it?
04-11-2003, 05:18 PM
No it's not my script, but i'm trying to learn some scripting under XSI... still a beginner at it though :)
01-14-2006, 08:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.