Any way to calculate volume ?
- cheeseburger
- Posts: 108
- Joined: 20 Oct 2011, 10:56
Any way to calculate volume ?
Hi,
I need to calculate the volume of a hill that I made from a grid. Is there any way to calculate it's volume ?
I need to calculate the volume of a hill that I made from a grid. Is there any way to calculate it's volume ?
Re: Any way to calculate volume ?
self.Volume will give you the current volume of any mesh
to ge the volume of a hill (assuming you have displaced it) you could also get the area of each polygon (self.polygonarea) and multiply that by however much units you displace the damn thing...
hope it helps
to ge the volume of a hill (assuming you have displaced it) you could also get the area of each polygon (self.polygonarea) and multiply that by however much units you displace the damn thing...
hope it helps
Gustavo Eggert Boehs
Blog: http://www.gustavoeb.com.br/
Blog: http://www.gustavoeb.com.br/
- cheeseburger
- Posts: 108
- Joined: 20 Oct 2011, 10:56
Re: Any way to calculate volume ?
Hi gustavoeb, Thanks for the reply. Would you mind spelling it out for me, I'm not so great with ICE. (Just the self.Volume) Thanks
Re: Any way to calculate volume ?
I think you need to close hill mesh to have volume.(Edit i was wrong about this. A grid works, if deformed it is probably imagining the ground level in most lower point and assumes a ground plane there)
Then with a get data node and put it self.volume , if you go to attribute list is the last one. Note that scale doesn't seem to be taken in account, just moved points.
here is an example of a default cube which is 8 units per side so volume 8*8*8=512 , i move the point a bit and gave that slight increased volume.
Then with a get data node and put it self.volume , if you go to attribute list is the last one. Note that scale doesn't seem to be taken in account, just moved points.
here is an example of a default cube which is 8 units per side so volume 8*8*8=512 , i move the point a bit and gave that slight increased volume.
Re: Any way to calculate volume ?
sorry cheeseburger, here is how it is done... by the way, nice nickname
edit: I forgot to comment the final node, "get set sum" it will get the values for every polygon and sum them all... and that's it!
edit: I forgot to comment the final node, "get set sum" it will get the values for every polygon and sum them all... and that's it!
Gustavo Eggert Boehs
Blog: http://www.gustavoeb.com.br/
Blog: http://www.gustavoeb.com.br/
- cheeseburger
- Posts: 108
- Joined: 20 Oct 2011, 10:56
Re: Any way to calculate volume ?
Thank you so much gustavoeb and Bullit. Very cool stuff.
I tried matching ICE trees to your images and it appears I'm doing something wrong with the "Set Data" node. It's red. When I double click it, it has "Reference" slots with Explorer or pick choices. What should I be plugging in there ? (real noob, but very keen)
I tried matching ICE trees to your images and it appears I'm doing something wrong with the "Set Data" node. It's red. When I double click it, it has "Reference" slots with Explorer or pick choices. What should I be plugging in there ? (real noob, but very keen)
Re: Any way to calculate volume ?
You have to do some basic tutorials, in how to get attributes. You can't dive in Ice without doing some basic tutorials.
http://www.si-community.com/community/v ... 74&start=0
http://www.si-community.com/community/v ... 74&start=0
- cheeseburger
- Posts: 108
- Joined: 20 Oct 2011, 10:56
Re: Any way to calculate volume ?
Cheers Bullit !
That's so inspiring. Particularly the LOD set level of detail to camera distance ...omg.
One thing ... In your examples and in gustavoeb's example I put in the preceeding node's name after self and they both work ! Is that the rule of thumb regarding "set data" or was I just lucky.
Awesome stuff. I'm definitely going to put in some ICE time. I'll never understand Autodesk's decision. ICE is just brilliant. And so are you guys ! thanks for the help
That's so inspiring. Particularly the LOD set level of detail to camera distance ...omg.
One thing ... In your examples and in gustavoeb's example I put in the preceeding node's name after self and they both work ! Is that the rule of thumb regarding "set data" or was I just lucky.
Awesome stuff. I'm definitely going to put in some ICE time. I'll never understand Autodesk's decision. ICE is just brilliant. And so are you guys ! thanks for the help
Re: Any way to calculate volume ?
If you put any name that ICE doesn't recognize that means you are creating a new attribute. A common way is to write self.tmp to have an attribute called tmp. But usually people use a more descritive word or phrase.
Get a get data node, then use the explorer in that get data node if you go to the object or point cloud that has the ice tree you see the attribute list. May blue squares with respective name
If you make a set data node with self.tmp then the TMP attribute will appear in that list.
If instead you write to attribute that already exists, like color, means you are changing the color. So a set data with attribute self.color means you are changing the color because this attribute already exists by default.
http://softimage.wiki.softimage.com/xsi ... m#Rjn61166
What ICE has good is that what you'll learn here will make you understand the guts of 3D applications.
Get a get data node, then use the explorer in that get data node if you go to the object or point cloud that has the ice tree you see the attribute list. May blue squares with respective name
If you make a set data node with self.tmp then the TMP attribute will appear in that list.
If instead you write to attribute that already exists, like color, means you are changing the color. So a set data with attribute self.color means you are changing the color because this attribute already exists by default.
http://softimage.wiki.softimage.com/xsi ... m#Rjn61166
What ICE has good is that what you'll learn here will make you understand the guts of 3D applications.
Last edited by Bullit on 11 Mar 2014, 02:03, edited 1 time in total.
- cheeseburger
- Posts: 108
- Joined: 20 Oct 2011, 10:56
Re: Any way to calculate volume ?
Very cool ......Thanks
Re: Any way to calculate volume ?
Gustavo can you check your PM, i don't think the volume is correct
- cheeseburger
- Posts: 108
- Joined: 20 Oct 2011, 10:56
Re: Any way to calculate volume ?
Hey Guys, just some feedback ... I had better luck all round with Bullit's solution, at least for I wanted to do. By the way Thanks again both of you for some great inspiration and for giving me a workable scenario
Who is online
Users browsing this forum: No registered users and 43 guests