I first tried with DeepSpeek, Gemini, and Copilot in their free versions, but they only go so far. I couldn’t succeed with them.
Then I tried with ChatGPT — I managed to get a render, but afterwards it asked for payment, so I couldn’t continue.
Finally, I used Grok to generate the last edited version. I managed to build successfully, but again Grok asked for payment, so I couldn’t continue further.
Because the source code is old (around 2010), it’s hard for AI APIs to find.
I used the old SpeedTree 1.6 speedtreewrapper.cpp files together with the SpeedTree 4.1 sample .cpp files and headers. By feeding those into the AI, I could have succeeded.
So basically, by looking at the .cpp and .h files from version 4.1 samples, I updated version 1.6 without breaking its code structure. That way, the issue was solved.
Someone else had tried before too — I checked their project, but it was incomplete and didn’t render properly.
https://www.mediafire.com/folder/r4mrkd ... edtree_4.1
"The tree leaves move as if blown by the wind. You can adjust their speed from the code below in wrapper.cpp."
// Gentle rustle time
static float s_fLeafTime = 0.0f;
s_fLeafTime += 0.002f;
if (s_fLeafTime > 100000.0f)
s_fLeafTime = 0.0f;
Normally, at 1.6 you can go under the tree and see behind it, but that makes the tree lose its “forest” quality, so I didn’t use it.
When it becomes transparent, it doesn’t feel like a real tree anymore.
In the current state, the tree is not transparent.
I’ve added the source — it’s compilable.
"I don't use DevIL and JPEG; I use stb. If you're using JPEG or DevIL, there might be a JPEG incompatibility during the build."
You don't need to send the .dll to the client.


