Hello,
I have two questions.
-
Do anyone know what’s causing the weird alpha using Billboards. I get some weird line or clip that is not transparent. I tried all various .dds and .png images including from different sources and some edited but I get the same problem.
-
How do I get a rotation of a specific point from terrain? So I can match up rock meshes to that proper align so I don’t get rocks in air on cliffs.
Thanks for everyone help so far. These two is bugging me.
Vivienne
i.imgur.com/Sy5D6Us.png
I tried this. Is it legit?
I’m trying to get the quaternion of a specific point using the spot in terrain.
Hello
Try this:
RockNode->SetRotation(Quaternion(Vector3::UP, terrain->GetNormal(Vector3(position_x,position_y,position_z))));
[quote=“franck22000”]Hello
Try this:
RockNode->SetRotation(Quaternion(Vector3::UP, terrain->GetNormal(Vector3(position_x,position_y,position_z))));[/quote]
It’s a beautiful thing for sure.
Happy New Years!
Now I just have to figure out the weird billboard issue …
The method seems to work for mostly smooth areas. It doesn’t work great for highly elevated areas it seems.
[video]https://www.youtube.com/watch?v=CrkF9NSDWkw&list=PLg3Q9upEQvPRAYaIqhImkUu1RBgSZA_N7&index=27[/video]