APEX for Foliage Generation

   2247   9   5
User Avatar
Member
1 posts
Joined: June 2016
Offline



Hey there! Here is a little background on this project:

I used to work on Project Pegasus, where I worked on foliage tooling with George and Tilman. At that time we thought about using APEX for the foliage tooling, but decided not to look into it. Now that I have some free time, I have immersed myself in the world of APEX and I absolutely love it!

For those who are not familiar with APEX (as I was and probably still am), APEX stands for 'All-Purpose EXecution'. What you can do with it is vaguely similar to PDG in that you can design the operation you want to be done in advance. This is where the delayed evaluation of APEX comes into play, which is currently best documented for APEX rigging. When we talk about an operation here, you can imagine that a polyextrude is an operation as well as using a merge SOP. I have not touched the rigging side yet. I think APEX is capable of much more and can be used in many other areas, for example foliage generation!



Above you can see how these nodes generate an APEX nodegraph



Here you can see how the APEX graph looks like after it goes into the "solver" and the final operations get appended



A bit more context: 1 node adds 1 operation to the APEX graph
Edited by FeikePostmes - Jan. 8, 2024 11:18:22

Attachments:
image_03.png (50.3 KB)
apex_foliage.png (1.5 MB)
image_02.png (213.9 KB)
image_01.png (286.7 KB)

User Avatar
Member
9 posts
Joined: Aug. 2015
Offline
Not sure why anyone dont make any commments,i would love to see a tutorial about other uses of Apex.

Cool work Feike!!!
User Avatar
Member
25 posts
Joined: Nov. 2017
Offline
Hey Jorge, we are hard at work on the system, and will be sharing a tonne of info in the near future
User Avatar
Staff
4 posts
Joined: May 2024
Offline
Exciting stuff, looking forward to seeing this use-case in action
User Avatar
Member
96 posts
Joined: July 2019
Online
You guys are rock; keep it up! As much as I'd like to test the foliage with delayed evaluation, I'd like to see tutorials and examples of APEX usage in a non-rigging environment.
User Avatar
Member
25 posts
Joined: Nov. 2017
Offline
We should have lots of that as well
User Avatar
Member
21 posts
Joined: Sept. 2021
Offline
same here, want to see more subscribed and waiting
User Avatar
Member
25 posts
Joined: Nov. 2017
Offline
Given the interest, I thought i'd share a glimpse of some apex utilities we have, which may give some insight into how we are working with it. In this video I demonstrate the auto-apex-from-sops node and apex-swap-inplace which are two utilities that allow us to work more quickly with Apex for our use-case.

Attachments:
2024-07-13 12-19-24.mp4 (10.4 MB)

User Avatar
Member
96 posts
Joined: July 2019
Online
Those utility tools are awesome; they look like they should be part of the standard Apex toolkit.
User Avatar
Member
25 posts
Joined: Nov. 2017
Offline
We're still discovering all the tools/utilities made by sidefx to work with apex. For example, I made the auto-apex-from-sops before discovering that the invokegraph natively can already do the conversion. Buuut, it is useful to have a version which performs the conversion dynamically instead of on demand.

Also I think with apexscript, a lot these utilities would be pretty quick and easy, but since the documentation is still WIP, we're leaning more on vex and sops based approaches in our tools.
  • Quick Links